Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.