Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10585 - mod_php-4.2.3-r1 (Update)
Summary: mod_php-4.2.3-r1 (Update)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Donny Davies (RETIRED)
URL:
Whiteboard:
Keywords:
: 10299 11046 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-11 09:28 UTC by Rendhalver (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
3 users (show)

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


Attachments
mod_php ebuild (mod_php-4.2.3-r1.ebuild,8.11 KB, text/plain)
2002-11-11 09:32 UTC, Rendhalver (RETIRED)
Details
fixed ebuild (mod_php-4.2.3-r1.ebuild,7.96 KB, text/plain)
2002-12-04 04:26 UTC, Rendhalver (RETIRED)
Details
php conf file for apache2 (50_mod_php.conf,256 bytes, text/plain)
2002-12-04 05:52 UTC, Rendhalver (RETIRED)
Details
php config file (50_mod_php.conf,248 bytes, text/plain)
2002-12-04 06:08 UTC, Rendhalver (RETIRED)
Details
revised revised php config file (50_mod_php.conf,248 bytes, text/plain)
2002-12-05 20:30 UTC, Rendhalver (RETIRED)
Details
the real php config file for apache (50_mod_php.conf,264 bytes, text/plain)
2002-12-06 09:53 UTC, Rendhalver (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rendhalver (RETIRED) gentoo-dev 2002-11-11 09:28:25 UTC
hi all
i just worked out a fix for building mod_php with apache2

i noticed there is already a fix for mod_php that checks the version of apache
installed.
http://bugs.gentoo.org/show_bug.cgi?id=10299

this should intergrate with my fix
this is also my first ebuild hack so please tell me if im doing it wrong
Comment 1 Rendhalver (RETIRED) gentoo-dev 2002-11-11 09:32:47 UTC
Created attachment 5577 [details]
mod_php ebuild 

fix to build mod_php with apache 2 if it is installed
Comment 2 Paul Slinski 2002-12-03 15:22:19 UTC
That fix does not work on my 1.4 box. Fails with (apache2 in use flags): 

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 module support via DSO through APXS... 

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/lib/apache2/bin/apxs follows:
./configure: line 3707: /usr/lib/apache2/bin/apxs: No such file or directory
configure: error: Aborting

!!! ERROR: dev-php/mod_php-4.2.3 failed.
!!! Function src_compile, Line 201, Exitcode 1
!!! bad ./configure
Comment 3 Rendhalver (RETIRED) gentoo-dev 2002-12-04 04:23:43 UTC
the install prefix for apache was changed and apxs was renamed to apxs2

the atached ebuild fixes the problem
Comment 4 Rendhalver (RETIRED) gentoo-dev 2002-12-04 04:26:26 UTC
Created attachment 6186 [details]
fixed ebuild

obsoletes previous ebuild
Comment 5 Rendhalver (RETIRED) gentoo-dev 2002-12-04 05:52:29 UTC
Created attachment 6187 [details]
php conf file for apache2

this goes in the files directory
Comment 6 Rendhalver (RETIRED) gentoo-dev 2002-12-04 06:08:18 UTC
Created attachment 6188 [details]
php config file

use this one instead got the module path wrong
Comment 7 morck 2002-12-05 15:47:40 UTC
hi all
i've just tried this new ebuild ... it compiles fine, but when i try to start
apache2 ("/etc/init.d/apache2 start") i get this error:

 * Starting apache2...
Syntax error on line 3 of /etc/apache2/conf/modules.d/50_mod_php.conf:
Can't locate API module structure `php_module' in file
/etc/apache2/extramodules/libphp4.so: /usr/lib/libapr.so.0: undefined symbol:
php_module                                                                     
                                                                

Comment 8 Ryan Phillips (RETIRED) gentoo-dev 2002-12-05 15:58:37 UTC
*** Bug 11046 has been marked as a duplicate of this bug. ***
Comment 9 Rendhalver (RETIRED) gentoo-dev 2002-12-05 20:30:52 UTC
Created attachment 6243 [details]
revised revised php config file

ok i stuffed up again

this is the real config file this time ( this one doesn.t brea apache startup )


copy this over the top of 50_mod_php.conf in /etc/apache2/conf/modules.d/ and
restart apache
Comment 10 morck 2002-12-06 08:52:37 UTC
still getting the same error!

btw, what is the difference between the new one
http://bugs.gentoo.org/showattachment.cgi?attach_id=6243

and the old one ???
http://bugs.gentoo.org/showattachment.cgi?attach_id=6188
Comment 11 Rendhalver (RETIRED) gentoo-dev 2002-12-06 09:52:35 UTC
crap sorry dude i attached the wrong file

this one is the one i start apache with so it works
Comment 12 Rendhalver (RETIRED) gentoo-dev 2002-12-06 09:53:55 UTC
Created attachment 6250 [details]
the real php config file for apache
Comment 13 Martin Holzer (RETIRED) gentoo-dev 2002-12-15 09:22:57 UTC
same as #10299
Comment 14 SpanKY gentoo-dev 2002-12-15 10:11:53 UTC
*** Bug 10299 has been marked as a duplicate of this bug. ***
Comment 15 Donny Davies (RETIRED) gentoo-dev 2002-12-15 11:05:42 UTC
a mod_php ebuild which works with apache2 is in now.

add 'apache2' to USE for this one :\