Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-14-2006, 06:43 PM
|
#1
|
LQ Newbie
Registered: Oct 2004
Location: Michigan
Distribution: SuSe, Fedora Core
Posts: 15
Rep:
|
Apache2 + php5 won't load
I am running the newest versions of php5 and apache 2.2 as of April 13th, 2006. I installed php after apache was up and running. When I try to start apache with the php module I get the following error.
root@Server:# /usr/local/httpd/bin/apachectl -k start
httpd: Syntax error on line 54 of /usr/local/httpd/conf/httpd.conf: API module structure `php5_module' in file /usr/libexec/apache/libphp5.so is garbled - perhaps this is not an Apache module DSO?
From what I could gather from google php is not support apache 2.2 yet? Surely there are people with Apache 2.2 who are running php support. Does anyone have any idea on how to fix this?
|
|
|
04-14-2006, 06:55 PM
|
#2
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
How did you configure PHP?
|
|
|
04-14-2006, 06:58 PM
|
#3
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
When you build PHP5, the build went ok? What configure command did you use?
Given how new Apache 2.2 is, I would be patient and wait for things like PHP to catch up.
Also, see if there is any Apache 2.0 backward compatibility at the DSO level in Apache 2.2. That might help.
Peace...
|
|
|
04-17-2006, 10:42 AM
|
#4
|
LQ Newbie
Registered: Oct 2004
Location: Michigan
Distribution: SuSe, Fedora Core
Posts: 15
Original Poster
Rep:
|
Quote:
Originally Posted by mdarby
How did you configure PHP?
|
I just did a standard ./configure, make, make install. I havent been able to find any information to point me to any kind of options that might fix the problem.
|
|
|
04-17-2006, 02:11 PM
|
#5
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
Quote:
Originally Posted by mustangfanatic
I just did a standard ./configure, make, make install. I havent been able to find any information to point me to any kind of options that might fix the problem.
|
I'm surprised compiling PHP5 as an Apache 2.2 DSO would result in the problem you're getting.
You didn't get any messages or anything from APXS when building PHP5?
Peace...
|
|
|
04-17-2006, 07:03 PM
|
#6
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
Try compiling PHP5 with the --with-apxs2 option
As an example, here is my PHP configure string:
Code:
./configure --with-zlib=/usr/ --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-gd \
--with-jpeg-dir=/usr/lib --with-bz2 --enable-gd-native-ttf --with-freetype-dir=/usr/X11R6/lib/X11/fonts/local/ --with-openssl
|
|
|
04-17-2006, 07:17 PM
|
#7
|
Member
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595
Rep:
|
Quote:
Originally Posted by mdarby
Try compiling PHP5 with the --with-apxs2 option
|
Exactly.  I figured he had done that already and not tried to reuse an existing Apache 2.0 PHP DSO. We'll find out soon enough.
Peace...
|
|
|
04-18-2006, 01:22 AM
|
#8
|
Member
Registered: Jul 2005
Location: California
Distribution: Slackware 11.0, Fedora Core 5
Posts: 80
Rep:
|
Quote:
Originally Posted by mdarby
Try compiling PHP5 with the --with-apxs2 option
As an example, here is my PHP configure string:
Code:
./configure --with-zlib=/usr/ --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-gd \
--with-jpeg-dir=/usr/lib --with-bz2 --enable-gd-native-ttf --with-freetype-dir=/usr/X11R6/lib/X11/fonts/local/ --with-openssl
|
Ok I'll give it a shot when I'm at work tommorrow 
|
|
|
04-19-2006, 11:35 AM
|
#9
|
Member
Registered: Jul 2005
Location: California
Distribution: Slackware 11.0, Fedora Core 5
Posts: 80
Rep:
|
I did the configure with apxs2 support. It even put the loadmodule in my httpd.conf file for me. Apache now starts without errors. I assumed that means that php is installed properly but I don't think that it is. When I browse to the install script for phpBB forums it doesn't load it right. I just see the text file. How can I check for sure to see if php is installed properly?
*EDIT*
Solution: PHP install didn't add the following line, which once added fixed the problem. Thanks for the help everyone!
AddType application/x-httpd-php .php .phtml
Last edited by mustangfanatic01; 04-19-2006 at 11:52 AM.
|
|
|
04-19-2006, 12:45 PM
|
#10
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Create a php file with this:
PHP Code:
<?php echo phpinfo; ?>
|
|
|
All times are GMT -5. The time now is 03:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|