LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2005, 09:14 AM   #1
issey
Member
 
Registered: Mar 2005
Location: Maldives
Distribution: debian, freeBSD, openBSD, ubuntu, opensuse
Posts: 78

Rep: Reputation: 15
Exclamation apache && php help needed


hey linux lovers....help me

i installed apache2 from source installation using the following command..

./configure --prefix=/usr/local/apache2 --enable-module=so

and php5 ::

./configure --with-apxs2=/usr/local/apache2/bin/apxs

and configured the httpd.conf as :::

LoadModule php5_module libexec/libphp5.so

and added

AddType application/x-httpd-php .php

and started the service with the command
/usr/local/apache2/bin/apachectl start

and it displayes an error msg saying cannot load /usr/local/apache2/libexec/libphp5.so into server: /usr/local/apache2/libexec/libphp5.so: cannot open shared object file no such file or directory...

and when php files are opend in browser the get downloaded and cannot be viewd...

where did i go wrong????

Thanks in Advance:::
 
Old 03-29-2005, 09:26 AM   #2
issey
Member
 
Registered: Mar 2005
Location: Maldives
Distribution: debian, freeBSD, openBSD, ubuntu, opensuse
Posts: 78

Original Poster
Rep: Reputation: 15
anybody to help me....
 
Old 03-29-2005, 10:04 AM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
The error might be because you don't have libphp5.so in the path that you think it is. Try
#locate libphp5.so

and see where it is...
 
Old 03-30-2005, 06:58 AM   #4
issey
Member
 
Registered: Mar 2005
Location: Maldives
Distribution: debian, freeBSD, openBSD, ubuntu, opensuse
Posts: 78

Original Poster
Rep: Reputation: 15
exatly to where do i need to place it..???
 
Old 03-30-2005, 09:36 AM   #5
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
and it displayes an error msg saying cannot load /usr/local/apache2/libexec/libphp5.so into server: /usr/local/apache2/libexec/libphp5.so: cannot open shared object file no such file or directory
Apache is looking for libphp5.so in /usr/local/apache2/libexec. Locate libphp5.so and modify the path in Apache configuration file (httdp.conf).

See if that works...
 
Old 03-30-2005, 11:28 AM   #6
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
1) Did you run make install when you compiled php? If so, do what tuxrules has told you:
Code:
locate libphp5.so
You will get output similar to this:
Code:
/usr/lib/libphp5.so
/usr/lib/apache2/modules/libphp5.so
Now pick any one of those and copy it to ServerRoot/libexec/, where ServerRoot is the directory apache2 is installed (you can find it in the /etc/httpd.conf under directive ServerRoot. In your case, it seems to be /usr/local/apache2/)

That should solve it.
Oh, and verify you are not using apache 2.0.52, it doesn't work with php5. Been fuzzling my head for months when php refused to read the config file. Use 2.0.53 instead, it works perfectly.


Last edited by atom; 04-07-2005 at 07:24 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware guide for AMP Apache MySQL & PHP xushi Slackware 35 05-11-2006 11:18 AM
ISS & ASP/.NET or Apache & PHP fuelinjection General 3 12-06-2005 07:41 AM
Apache & php & mod_dav Byenary Linux - Software 1 07-09-2005 01:26 PM
From RedHat9 to FreeBSD (Apache 2 & Mysql & PHP 4) guardian653 *BSD 5 12-11-2003 05:31 PM
Apache & PHP & Mysql thomas050682 Linux - Networking 5 03-03-2003 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration