Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 17351

Summary: Apache/PHP missing symlink from /usr/sbin/apxs2 to /usr/sbin/apxs
Product: Gentoo Linux Reporter: Dion Sayles <gentoo>
Component: New packagesAssignee: Donny Davies (RETIRED) <woodchip>
Status: RESOLVED WORKSFORME    
Severity: normal CC: php-bugs
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dion Sayles 2003-03-12 02:04:48 UTC
When emerging apache like the docs Code Listing 8.1:  The emerge fails due to a missing 
/usr/sbin entry:  apxs.  This is fixable by adding a symbolic link from apxs to apxs2.
Comment 1 Dion Sayles 2003-03-12 02:18:02 UTC
Update, this is in the mod_php build.  After creating the symlink to apxs the following 
error message shows up: 
 
Configuring SAPI modules 
checking for AOLserver support... no 
checking for Apache 1.x module support via DSO through APXS... configure: error: You 
have enabled Apache 1.3 support while your server is Apache 2.  Please use the 
appropiate switch --with-apxs2 
 
!!! ERROR: dev-php/mod_php-4.3.1-r1 failed. 
!!! Function src_compile, Line 219, Exitcode 1 
!!! bad ./configure 
Comment 2 Troy Dack 2003-03-13 16:37:03 UTC
Try this:

    USE="apache2" emerge mod_php

and don't have the symlink
Comment 3 Dion Sayles 2003-03-13 20:28:08 UTC
Adding apache2 to the USE variable helped.  Then I ran into the same problem as bug 
16910.  After adjusting the mod_php ebuild script mod_php-4.3.1.ebuild, I emerged 
again and it defaults to the -r1.ebuild.  I then had to emerge the proper ebuild and it 
finally worked. 
 
Thanks for the help and bugzilla.... :) 
Comment 4 Donny Davies (RETIRED) gentoo-dev 2003-03-22 15:52:56 UTC
:\