Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: PHP5 modules not loading in Apache

  1. #11
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: PHP5 modules not loading in Apache

    Also which MPM implementation are you using? PHP requires prefork, worker will not do. Look in /var/log/apache2/error_log to see which one is in use. Or do:

    Code:
    rpm -qa 'apache2*'
    If apache2-worker is there but not apache2-prefork, that's a problem.

  2. #12

    Default Re: PHP5 modules not loading in Apache

    Output of phpinfo():

    ---------------------
    Loaded modules:
    core prefork http_core mod_so mod_authz_host mod_actions mod_alias mod_auth_basic mod_authz_groupfile mod_authn_file mod_authz_user mod_autoindex mod_cgi mod_dir mod_include mod_log_config mod_mime mod_negotiation mod_setenvif mod_status mod_userdir mod_asis mod_imagemap mod_authz_default mod_php5
    ---------------------

    Is the last item, "mod_php5," indicate that apache2-mod_php5 module is corrected loaded? If so, why the following message

    Module "apache2-mod_php5" is not installed, ignoring.

    keeps showing up whenever I start/restart apache2?

  3. #13

    Default Re: PHP5 modules not loading in Apache

    Response of rpm -qa 'apache2*'

    ----------------
    apache2-devel-2.2.8-28.1
    apache2-mod_php5-5.2.6-0.4
    apache2-example-pages-2.2.8-28.1
    apache2-prefork-2.2.8-28.1
    apache2-doc-2.2.8-28.1
    apache2-utils-2.2.8-28.1
    apache2-mod_perl-2.0.3.99-46.1
    apache2-2.2.8-28.1
    apache2-mod_python-3.3.1-123.1
    ----------------

    There is apache2-prefork, but not apache2-worker. Is this OK?
    Thanks.

  4. #14
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: PHP5 modules not loading in Apache

    Quote Originally Posted by yltang View Post
    Output of phpinfo():

    ---------------------
    Loaded modules:
    core prefork http_core mod_so mod_authz_host mod_actions mod_alias mod_auth_basic mod_authz_groupfile mod_authn_file mod_authz_user mod_autoindex mod_cgi mod_dir mod_include mod_log_config mod_mime mod_negotiation mod_setenvif mod_status mod_userdir mod_asis mod_imagemap mod_authz_default mod_php5
    ---------------------

    Is the last item, "mod_php5," indicate that apache2-mod_php5 module is corrected loaded?
    Yes, PHP should be working, and of course, that page you just ran is PHP.

    If so, why the following message

    Module "apache2-mod_php5" is not installed, ignoring.

    keeps showing up whenever I start/restart apache2?
    My guess is that you somehow managed to insert the long name "apache2-mod_php5" into the list of modules to load and of course there is no such long name so you get this warning. You'll have to look inside the files generated by the apache2 init script in /etc/apache2/sysconfig.d/ to see how this extra name got in there. Or put up with this warning.

  5. #15

    Default Re: PHP5 modules not loading in Apache

    ken_yap:
    Thanks a lot. The APACHE_MODULES in /etc/sysconfig/apache2 are as follows:

    APACHE_MODULES="authz_host actions alias auth_basic authz_groupfile authn_file authz_user autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imagemap authz_default apache2-mod_php5 php5"

    Yes, there is the item "apache2-mod_php5"!! I must have erroneously added it. So, all I have to do is just to remove it? (By the way, my php actually works fine.)

  6. #16
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: PHP5 modules not loading in Apache

    Yes, just edit out the wrong name.

  7. #17

    Default Re: PHP5 modules not loading in Apache

    Thanks a million, ken_yap.

  8. #18
    Join Date
    Jul 2008
    Location
    Athens
    Posts
    275

    Default Re: PHP5 modules not loading in Apache

    Obviously the "apache2-mod_php5" is 'loaded' because a configuration file tells apache to do so. Try the following:

    Code:
    cd /etc/apache2/
    grep -i "apache2-mod_php5" *.conf
    It should tell you which configuration file contains the line that loads it. Edit the file and delete that line.

    I suspect (but I do not know for sure) that you may try to do the following:

    Code:
    a2dismod apache2-mod_php5

  9. #19

    Default Re: PHP5 modules not loading in Apache

    I am having similar issue.

    I have 2 version of Linux running in my data center. One is a test box with ORacle Linux (xampp from apachefriend) and the server have more PHP module compared to this new box (SUSE/LAMPP). The problem is the PHP script to upload a document is not working in the new SUSE box. Upon investigation I found that many of the PHP modules that are installed in xampp(oracle linux) is not installed in Suse.

    Both are running PHP 5.3. Here is a comparative list of modules. XX means the module is not present in SUSE linux. Can anyone help how to install the PHP Modules that are absent in SUSE??

    Thanks in advance


    not present mod_autoindex

    core xx
    prefork xx
    http_core xx
    mod_so xx
    mod_authn_file xx
    mod_authn_dbm
    mod_authn_anon
    mod_authn_dbd
    mod_authn_default
    mod_authz_host xx
    mod_authz_groupfile xx
    mod_authz_user xx
    mod_authz_dbm
    mod_authz_owner
    mod_authnz_ldap
    mod_authz_default xx
    mod_auth_basic xx
    mod_auth_digest
    mod_file_cache
    mod_cache
    mod_disk_cache
    mod_mem_cache
    mod_bucketeer
    mod_dumpio
    mod_echo
    mod_case_filter
    mod_case_filter_in
    mod_ext_filter
    mod_include xx
    mod_filter
    mod_charset_lite
    mod_deflate util_ldap
    mod_log_config xx
    mod_logio
    mod_env
    mod_mime_magic
    mod_cern_meta
    mod_expires
    mod_headers
    mod_ident
    mod_usertrack
    mod_unique_id
    mod_setenvif xx
    mod_proxy
    mod_proxy_connect
    mod_proxy_ftp
    mod_proxy_http
    mod_proxy_ajp
    mod_proxy_balancer
    mod_mime xx
    mod_dav
    mod_status xx
    mod_autoindex
    mod_asis xx
    mod_info
    mod_suexec
    mod_cgi xx
    mod_cgid
    mod_dav_fs
    mod_vhost_alias
    mod_negotiation xx
    mod_dir xx
    mod_imagemap xx
    mod_actions xx
    mod_speling
    mod_userdir xx
    mod_alias xx
    mod_rewrite xx
    mod_apreq2
    mod_ssl xx
    mod_php5 xx
    mod_perl

    ===================

  10. #20

    Default Re: PHP5 modules not loading in Apache

    websoul67 wrote:
    > I am having similar issue.
    >
    > I have 2 version of Linux running in my data center. One is a test box
    > with ORacle Linux (xampp from apachefriend) and the server have more PHP
    > module compared to this new box (SUSE/LAMPP). The problem is the PHP
    > script to upload a document is not working in the new SUSE box. Upon
    > investigation I found that many of the PHP modules that are installed in
    > xampp(oracle linux) is not installed in Suse.
    >
    > Both are running PHP 5.3. Here is a comparative list of modules. XX
    > means the module is not present in SUSE linux. Can anyone help how to
    > install the PHP Modules that are absent in SUSE??
    >
    > Thanks in advance
    >
    > not present mod_autoindex
    >
    > core xx
    > prefork xx
    > http_core xx
    > mod_so xx
    > mod_authn_file xx
    > mod_authn_dbm
    > mod_authn_anon
    > mod_authn_dbd
    > mod_authn_default
    > mod_authz_host xx
    > mod_authz_groupfile xx
    > mod_authz_user xx
    > mod_authz_dbm
    > mod_authz_owner
    > mod_authnz_ldap
    > mod_authz_default xx
    > mod_auth_basic xx
    > mod_auth_digest
    > mod_file_cache
    > mod_cache
    > mod_disk_cache
    > mod_mem_cache
    > mod_bucketeer
    > mod_dumpio
    > mod_echo
    > mod_case_filter
    > mod_case_filter_in
    > mod_ext_filter
    > mod_include xx
    > mod_filter
    > mod_charset_lite
    > mod_deflate util_ldap
    > mod_log_config xx
    > mod_logio
    > mod_env
    > mod_mime_magic
    > mod_cern_meta
    > mod_expires
    > mod_headers
    > mod_ident
    > mod_usertrack
    > mod_unique_id
    > mod_setenvif xx
    > mod_proxy
    > mod_proxy_connect
    > mod_proxy_ftp
    > mod_proxy_http
    > mod_proxy_ajp
    > mod_proxy_balancer
    > mod_mime xx
    > mod_dav
    > mod_status xx
    > mod_autoindex
    > mod_asis xx
    > mod_info
    > mod_suexec
    > mod_cgi xx
    > mod_cgid
    > mod_dav_fs
    > mod_vhost_alias
    > mod_negotiation xx
    > mod_dir xx
    > mod_imagemap xx
    > mod_actions xx
    > mod_speling
    > mod_userdir xx
    > mod_alias xx
    > mod_rewrite xx
    > mod_apreq2
    > mod_ssl xx
    > mod_php5 xx
    > mod_perl
    >
    > ===================
    >
    >


    That looks like a list of Apache modules, not PHP modules. Please tell
    us more about what you have installed and how, and what command you used
    to produce that list. Have you read the opensuse manual? And/or googled
    for install/configuration how-to?

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •