[warn] module php5_module is already loaded

Discussion in 'Server Operation' started by satimis, Jun 18, 2008.

  1. satimis

    satimis New Member

    Hi folks,


    Ubuntu 7.04 server amd64


    $ sudo /etc/init.d/apache2 restart
    Code:
     * Forcing reload of web server (apache2)...                                    [Wed Jun 18 18:01:49 2008] [warn] module php5_module is already loaded, skipping
    [Wed Jun 18 18:01:59 2008] [warn] module php5_module is already loaded, skipping
                                                                             [ OK ]
    

    $ cat /etc/apache2/httpd.conf | grep php5
    Code:
    LoadModule php5_module modules/libphp5.so
    

    $ cat /etc/apache2/httpd.conf | grep LoadModule
    Code:
    LoadModule php5_module modules/libphp5.so
    
    Only one line there.


    $ sudo find / -name *.conf
    Code:
    /usr/lib/vmware-mui/apache/conf/httpd.conf
    /usr/lib/vmware-mui/src/apache/conf/httpd.conf
    /usr/local/src/vmware-mui-distrib-1.0.4-56528/mui/apache/conf/httpd.conf
    /usr/local/src/vmware-mui-distrib-1.0.4-56528/mui/src/apache/conf/httpd.conf
    /home/satimis/ShareData/Ubuntu_704_Server_Work/httpd.conf
    /home/satimis/ShareData/Ubuntu_704_server/httpd.conf
    /home/satimis/httpd.conf
    /etc/apache2/httpd.conf
    

    I suppose Apache starts twice.


    VMware server is running on this box with Ubuntu as host OS and CentOS as guest OS.


    Please advise how to fix this problem? TIA


    B.R.
    satimis
     
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the output of
    Code:
    ls -la /etc/apache2/mods-enabled/
    ?
     
  3. satimis

    satimis New Member

    Hi falko,


    Problem already solved by comment out following line on /etc/apache2/httpd.conf
    Code:
    #LoadModule php5_module modules/libphp5.so
    
    It just comes to my knowledge that Apche2 doesn't use this file. Now it uses /etc/apache2/apache.conf

    However I can't delete it. Otherwise apaches won't start. It seems to me Apache2 need 2 config files. Why? TIA


    $ sudo ls -la /etc/apache2/mods-enabled/
    Code:
    Password:
    total 8
    drwxr-xr-x 2 root root 4096 2008-01-08 00:26 .
    drwxr-xr-x 8 root root 4096 2008-06-19 10:06 ..
    lrwxrwxrwx 1 root root   28 2007-09-06 23:10 alias.load -> ../mods-available/alias.load
    lrwxrwxrwx 1 root root   33 2007-09-06 23:10 auth_basic.load -> ../mods-available/auth_basic.l
    oad
    lrwxrwxrwx 1 root root   33 2007-09-06 23:10 authn_file.load -> ../mods-available/authn_file.l
    oad
    lrwxrwxrwx 1 root root   36 2007-09-06 23:10 authz_default.load -> ../mods-available/authz_def
    ault.load
    lrwxrwxrwx 1 root root   38 2007-09-06 23:10 authz_groupfile.load -> ../mods-available/authz_g
    roupfile.load
    lrwxrwxrwx 1 root root   33 2007-09-06 23:10 authz_host.load -> ../mods-available/authz_host.l
    oad
    lrwxrwxrwx 1 root root   33 2007-09-06 23:10 authz_user.load -> ../mods-available/authz_user.l
    oad
    lrwxrwxrwx 1 root root   32 2007-09-06 23:10 autoindex.load -> ../mods-available/autoindex.loa
    d
    lrwxrwxrwx 1 root root   26 2007-09-06 23:10 cgi.load -> ../mods-available/cgi.load
    lrwxrwxrwx 1 root root   29 2008-01-05 22:37 dav_fs.conf -> ../mods-available/dav_fs.conf
    lrwxrwxrwx 1 root root   29 2008-01-05 22:37 dav_fs.load -> ../mods-available/dav_fs.load
    lrwxrwxrwx 1 root root   26 2007-11-28 06:05 dav.load -> ../mods-available/dav.load
    lrwxrwxrwx 1 root root   31 2008-01-06 22:49 dav_lock.load -> ../mods-available/dav_lock.load
    lrwxrwxrwx 1 root root   30 2007-11-28 06:05 dav_svn.conf -> ../mods-available/dav_svn.conf
    lrwxrwxrwx 1 root root   30 2007-11-28 06:05 dav_svn.load -> ../mods-available/dav_svn.load
    lrwxrwxrwx 1 root root   26 2007-09-06 23:10 dir.conf -> ../mods-available/dir.conf
    lrwxrwxrwx 1 root root   26 2007-09-06 23:10 dir.load -> ../mods-available/dir.load
    lrwxrwxrwx 1 root root   26 2007-09-06 23:10 env.load -> ../mods-available/env.load
    lrwxrwxrwx 1 root root   30 2007-10-26 22:06 include.load -> ../mods-available/include.load
    lrwxrwxrwx 1 root root   27 2007-09-06 23:10 mime.load -> ../mods-available/mime.load
    lrwxrwxrwx 1 root root   34 2007-09-06 23:10 negotiation.load -> ../mods-available/negotiation
    .load
    lrwxrwxrwx 1 root root   27 2007-12-01 13:05 php5.conf -> ../mods-available/php5.conf
    lrwxrwxrwx 1 root root   27 2007-12-01 13:05 php5.load -> ../mods-available/php5.load
    lrwxrwxrwx 1 root root   28 2008-01-05 22:22 proxy.conf -> ../mods-available/proxy.conf
    lrwxrwxrwx 1 root root   28 2008-01-05 22:22 proxy.load -> ../mods-available/proxy.load
    lrwxrwxrwx 1 root root   30 2007-10-26 22:05 rewrite.load -> ../mods-available/rewrite.load
    lrwxrwxrwx 1 root root   31 2007-09-06 23:10 setenvif.load -> ../mods-available/setenvif.load
    lrwxrwxrwx 1 root root   26 2007-10-26 22:04 ssl.conf -> ../mods-available/ssl.conf
    lrwxrwxrwx 1 root root   26 2007-10-26 22:04 ssl.load -> ../mods-available/ssl.load
    lrwxrwxrwx 1 root root   29 2007-09-06 23:10 status.load -> ../mods-available/status.load
    lrwxrwxrwx 1 root root   29 2007-10-26 22:05 suexec.load -> ../mods-available/suexec.load
    
    B.R.
    satimis
     
  4. falko

    falko Super Moderator ISPConfig Developer

    It's /etc/apache2/apache2.conf.

    For backwards compatibility. httpd.conf can stay empty, but it must exist.
     
  5. satimis

    satimis New Member

    Yes, you're correct. Sorry for my typing mistake.


    Noted with thanks


    Edit:
    A side question; Why httpd.conf must remain even it is an empty file?


    B.R.
    satimis
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Because it is referenced in /etc/apache2/apache2.conf. If you remove the reference from /etc/apache2/apache2.conf, you can delete httpd.conf.
     
  7. satimis

    satimis New Member

    $ cat /etc/apache2/apache2.conf | grep httpd.conf
    Code:
    Include /etc/apache2/httpd.conf
    

    Thanks


    satimis
     

Share This Page