Jump to content

MySQL 5.1.31, PHP 5.2.8, Apache 2.2.8 on Ubuntu Hardy - LoadModule directive


Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.