Apache+php+mysql on linux(slackware)

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 2
Joined: Sat Jul 03, 2004 12:15 pm
Location: Bulgaria

Apache+php+mysql on linux(slackware)

Postby jmut » Sat Jul 03, 2004 12:29 pm

Well, I have read a lot of documentation and forums concerning this but I dont get how to fix my problem :(. Please help.
I am a beginner in Slackware and by default I had apache , php 4.3.3 and MySQL 4.0.15a installed. I removed apache cause I wanted to install newer version (2.0.49) I installed it with default options in usr/local/apache2.
These are the modules installed.
Compiled in modules:
* core.c
* mod_access.c
* mod_auth.c
* mod_include.c
* mod_log_config.c
* mod_env.c
* mod_setenvif.c
* prefork.c
* http_core.c
* mod_mime.c
* mod_status.c
* mod_autoindex.c
* mod_asis.c
* mod_cgi.c
* mod_negotiation.c
* mod_dir.c
* mod_imap.c
* mod_actions.c
* mod_userdir.c
* mod_alias.c
* mod_so.c
Now that the apache is up and running I want to add php support. I added a few lines in httpd.conf:
LoadModule php4_module /usr/libexec/libphp4.so
AddType application/x-httpd-php .php
I copied my php.ini (was there by default) to /usr/local/apache2/lib (not sure why exactly there-read in a doc page)
After all this the following error occurs when I start the apache:
"Syntax error on line 231 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/libexec/libphp4.so into server: libmm.so.13: cannot open shared object file: No such file or directory"
btw line 231 is: LoadModule php4_module /usr/libexec/libphp4.so
I suppose I need to add one more module mod_php4.c (again read it in a doc somewhere) but in the apache's documentation there is no such module and anyway I donno how to add a module.
So I donno what the problem is? What is more I want to run MySQL as well (also installed by default with the OS).
Someone, please help me fix this problem and tell me how to check if everything is running smoothly.
Thanks in advance.

P.S Yes, libphp4.so is located in /usr/libexec/ owned by root with 755 rights.

User avatar
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby ruturajv » Sun Jul 04, 2004 7:55 pm

hey dude...!
you need to compile php as well with apache..
It is not windows.. that you just let the apache config know where can it find php...!
Try to compile php with apache..
and Apache 1.3.x version is much stable with php than the 2x version

Return to “PHP Installation”

Who is online

Users browsing this forum: No registered users and 3 guests