LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2003, 03:33 AM   #1
p0rky
LQ Newbie
 
Registered: May 2003
Distribution: RedHat 9.0
Posts: 15

Rep: Reputation: 0
Apche & PHP


I installed apache, installed php, but it asks me to save the .php file everytime i try to go to a .php extension on my website, and when i put, LoadModule php4_module modules/libphp4.so , in to httpd.conf it gives me the error

Syntax error on line 233 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: cannot open shared object file: No such file or directory

when i try to start/restart/stop apache, any ideas?
 
Old 05-31-2003, 03:53 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Looks like you didn't build the support in for php. Have a look at http://lamps.efactory.de/e-lamps-2-0.shtml for more detailed info. You can probably ignore the openssl and mod_ssl if you don't want to build that.

Here's a part of the configs I used for my php and apache builds.

*** php-4.3.2 ***
./configure \
--with-apache=../apache_1.3.27 \
--with-gettext \
--with-xml \
--with-mysql=/usr/local/mysql \
--enable-sockets \
--enable-track-vars

*** apache-1.3.27 ***
./configure \
--prefix=/usr/local/apache \
--enable-module=so \
--sbindir=/usr/sbin \
--libexecdir=/usr/libexec

Note that the path to the apache source is relative to the directories I was building in. You may want to use an absolute directory location if you've got your junk spread around.
 
Old 05-31-2003, 03:58 AM   #3
p0rky
LQ Newbie
 
Registered: May 2003
Distribution: RedHat 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
How would I do it with apache2? the same thing or what? Kinda new to this so sorry if im being a pest
 
Old 05-31-2003, 04:01 AM   #4
p0rky
LQ Newbie
 
Registered: May 2003
Distribution: RedHat 9.0
Posts: 15

Original Poster
Rep: Reputation: 0
nevermind, i just need to learn how to read websites
 
Old 05-31-2003, 04:19 AM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Hehheh. yeah. read first, ask questions later.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apche not found Echo Kilo Linux - Software 3 05-31-2005 03:03 PM
trouble installing apche jaganpjames Linux - Newbie 1 08-30-2004 10:55 AM
Can't connect to Apche with https - locally it's OK abapdr Linux - Software 2 05-26-2004 04:37 AM
need apache manual, apche already installed.. wordthief Linux - Newbie 1 08-31-2003 12:41 PM
linus + ftp + apche markmchugh Linux - General 1 03-29-2001 08:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration