Git Product home page Git Product logo

Comments (4)

chrodriguez avatar chrodriguez commented on August 28, 2024

Hi @delmicio, I can't understand what is your issue. Which image are you using? As you can see in this line:

LoadModule rewrite_module modules/mod_rewrite.so

mod_rewrite is already loaded

from docker-php-5.3-alpine.

delmicio avatar delmicio commented on August 28, 2024

@chrodriguez I've improved the comment with better information. What am I missing?

from docker-php-5.3-alpine.

delmicio avatar delmicio commented on August 28, 2024

With a simple docker-compose file like this:

version: "2"

services:
  php:
    image: cespi/php-5.3:apache
    ports:
      - "80:80"
    volumes:
      - .:/var/www/html

and having a index.php with apache_get_modules() it return a the list and mod_rewrite is not there:

array (
  0 => 'core',
  1 => 'mod_so',
  2 => 'http_core',
  3 => 'mod_authn_file',
  4 => 'mod_authn_core',
  5 => 'mod_authz_host',
  6 => 'mod_authz_groupfile',
  7 => 'mod_authz_user',
  8 => 'mod_authz_core',
  9 => 'mod_access_compat',
  10 => 'mod_auth_basic',
  11 => 'mod_reqtimeout',
  12 => 'mod_filter',
  13 => 'mod_mime',
  14 => 'mod_log_config',
  15 => 'mod_env',
  16 => 'mod_headers',
  17 => 'mod_setenvif',
  18 => 'mod_version',
  19 => 'prefork',
  20 => 'mod_unixd',
  21 => 'mod_status',
  22 => 'mod_autoindex',
  23 => 'mod_dir',
  24 => 'mod_alias',
  25 => 'mod_negotiation',
  26 => 'mod_php5',
)

this is what the console show:

Creating network "app_default" with the default driver
Creating app_php_1
Attaching to app_php_1
php_1  | AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.18.0.2. Set the 'ServerName' directive globally to suppress this message
php_1  | AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.18.0.2. Set the 'ServerName' directive globally to suppress this message
php_1  | Failed loading /usr/local/IonCube/ioncube_loader_lin_5.3.so:  Error loading shared library /usr/local/IonCube/ioncube_loader_lin_5.3.so: No such file or directory
php_1  | Failed loading /usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so:  Error loading shared library /usr/local/Zend/lib/Guard-5.5.0/php-5.3.x/ZendGuardLoader.so: No such file or directory
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so' - Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so' - Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so' - Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so' - Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20090626/timezonedb.so: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so' - Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so: No such file or directory in Unknown on line 0
php_1  | PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/htscanner.so' - Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20090626/htscanner.so: No such file or directory in Unknown on line 0
php_1  | [Tue Jun 06 16:16:54.931034 2017] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.23 (Unix) configured -- resuming normal operations
php_1  | [Tue Jun 06 16:16:54.931067 2017] [core:notice] [pid 1] AH00094: Command line: 'httpd -D FOREGROUND'

look at the line where it says

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/htscanner.so' - Error loading shared library /usr/local/lib/php/extensions/no-debug-non-zts-20090626/htscanner.so: No such file or directory in Unknown on line 0

from docker-php-5.3-alpine.

chrodriguez avatar chrodriguez commented on August 28, 2024

I've just rebuild the apache image. Please, consider pulling the image again. After integrating this with a travis , I've changed image naming based on a latest suffix. That's why the image didn't reflect the change, but cespi/php-5.3:apache-latest already had the mod_rewrite enabled.

The other problem you posted, seems to be a dependency not satisfied. You can use the other image (a bigger one) that includes multiple modules, and perhaps, add your own needs cespi/php-5.3:modules-apache-latest

from docker-php-5.3-alpine.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.