Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74486 - apache1 + mod_php5 = some problem
Summary: apache1 + mod_php5 = some problem
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-15 05:55 UTC by Sergiy Borodych
Modified: 2005-05-22 04:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergiy Borodych 2004-12-15 05:55:38 UTC
I have installed apache1 (net-www/apache-1.3.33) on my machine (~x86)
After installing php5 + mod_php5 (dev-php/mod_php-5.0.2)
I make 
#ebuild /var/db/pkg/dev-php/mod_php-5.0.2/mod_php-5.0.2.ebuild config

# /etc/init.d/apache start
 * Starting apache ...
Syntax error on line 62 of /etc/apache/conf/apache.conf:
Cannot load /etc/apache/extramodules/libphp5.so into server: /etc/apache/extramodules/libphp5.so: cannot open shared object file: No such file or directory                                                                                       

Fix is
#ln -s /usr/lib/apache/libphp5.so /etc/apache/extramodules/libphp5.so

but php pages show as sources
In
/etc/apache/conf/addon-modules/mod_php.conf
only
<IfModule mod_php4.c>
directive exists
I added <IfModule mod_php5.c> section
and all works fine

maybe this problems need fix in ebuild ?
Comment 1 Steph L 2005-01-02 15:40:14 UTC
Same goes on ppc for dev-php/mod_php-5.0.3 ! 

We have to make sure to have : 
LoadModule php5_module              /usr/lib/apache/libphp5.so
in apache.conf instead of : 
LoadModule php5_module    extramodules/libphp5.so

There is another stuff at the end of emerge that creates a small problem :
no mod_php5.conf : 
...
* Setting extension_dir in php.ini
* Securing fopen wrappers
* Setting correct include_path
* Adding extra symlink to Apache extramodules for PHP
* Installing a Apache config for PHP (mod_php5.conf)
  install: ne peut 
Comment 2 Steph L 2005-01-02 15:40:14 UTC
Same goes on ppc for dev-php/mod_php-5.0.3 ! 

We have to make sure to have : 
LoadModule php5_module              /usr/lib/apache/libphp5.so
in apache.conf instead of : 
LoadModule php5_module    extramodules/libphp5.so

There is another stuff at the end of emerge that creates a small problem :
no mod_php5.conf : 
...
* Setting extension_dir in php.ini
* Securing fopen wrappers
* Setting correct include_path
* Adding extra symlink to Apache extramodules for PHP
* Installing a Apache config for PHP (mod_php5.conf)
  install: ne peut évaluer     `/usr/portage/dev-php/mod_php/files/mod_php5.conf': Aucun fichier ou
    répertoire de ce type

The bug is easy to fix : in the ebuild change : 
doins ${FILESDIR}/mod_php5.conf
with 
doins ${FILESDIR}/mod_php.conf

The dirty work around I used at the time (before studying the ebuild) was : 
cd /etc/apache/conf/addon-modules
curl -o mod_php.conf http://gentoo.kems.net/gentoo-x86-portage/dev-php/mod_php/files/70_mod_php5.conf

Clearly fixing the ebuild would be better
Comment 3 CJ Kucera 2005-01-19 10:55:15 UTC
This is happening for me as well.
Comment 4 Benedikt Böhm (RETIRED) gentoo-dev 2005-01-19 11:20:30 UTC
This seems to be a php problem, not an apache one, though there are new (masked) apache ebuilds in portage and the mod_*'s maintainers where encouraged to switch to the new apache-module.eclass, so this should be fixed soon...
Comment 5 Stuart Herbert (RETIRED) gentoo-dev 2005-05-22 04:43:45 UTC
Please re-test with mod_php-5.0.4.