droythorne Posted February 24, 2009 Share Posted February 24, 2009 Hi, I really appreciate someone's help with my PHP 5.2.8 install. I have successfully installed Apache2 and MySQL, and the ./configure and make of PHP have passed by without incident. Every time I run make install I get the result... Installing PHP SAPI module: apache2handler /usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' libphp5.la /usr/lib/apache2/modules /usr/share/apr-1.0/build/libtool --mode=install cp libphp5.la /usr/lib/apache2/modules/ cp .libs/libphp5.so /usr/lib/apache2/modules/libphp5.so cp .libs/libphp5.lai /usr/lib/apache2/modules/libphp5.la libtool: install: warning: remember to run `libtool --finish /usr/src/php-5.2.8/libs' chmod 644 /usr/lib/apache2/modules/libphp5.so apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file.. apxs:Error: At least one `LoadModule' directive already has to exist.. make: *** [install-sapi] Error 1 I have tried inserting dummy LoadModule lines in /etc/apache2/apache2.conf like this # Include module configuration: Include /etc/apache2/mods-enabled/*.load Include /etc/apache2/mods-enabled/*.conf # Dummy LoadModule directive to aid module installations #LoadModule dummy_module /usr/lib/apache2/modules/mod_dummy.so # Include all the user configurations: # Include /etc/apache2/httpd.conf # Include ports listing Include /etc/apache2/ports.conf and the dummy LoadModule directive to an otherwise empty /etc/apache2/httpd.conf file. I have tried creating a symlink of http.conf to apache2.conf (simultaneously commenting out the http.conf include directive in apache2.conf); but to no avail. Anybody any ideas, I'd be very grateful. I should also point out that I'm a complete beginner here, the current extent of my knowledge coming mainly from "PHP and MySQL for Dummies" ! Kind regards, Dan Quote Link to comment https://forums.phpfreaks.com/topic/146714-mysql-5131-php-528-apache-228-on-ubuntu-hardy-loadmodule-directive/ Share on other sites More sharing options...
trq Posted February 24, 2009 Share Posted February 24, 2009 Any particular reason your installing from source instead of using apt-get? Quote Link to comment https://forums.phpfreaks.com/topic/146714-mysql-5131-php-528-apache-228-on-ubuntu-hardy-loadmodule-directive/#findComment-770627 Share on other sites More sharing options...
droythorne Posted February 25, 2009 Author Share Posted February 25, 2009 In hindsight, it appears not, but now I'm at this stage, can I just install following the directions contained here (https://help.ubuntu.com/community/ApacheMySQLPHP) ? Quote Link to comment https://forums.phpfreaks.com/topic/146714-mysql-5131-php-528-apache-228-on-ubuntu-hardy-loadmodule-directive/#findComment-770990 Share on other sites More sharing options...
trq Posted February 26, 2009 Share Posted February 26, 2009 In hindsight, it appears not, but now I'm at this stage, can I just install following the directions contained here (https://help.ubuntu.com/community/ApacheMySQLPHP) ? Yes but I would remove what you have manually installed first. Quote Link to comment https://forums.phpfreaks.com/topic/146714-mysql-5131-php-528-apache-228-on-ubuntu-hardy-loadmodule-directive/#findComment-771487 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.