LinuxQuestions.org
Review your favorite Linux distribution.
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 03-25-2003, 03:12 PM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
PHP install: httpsd.conf not found?


I tried to install PHP4 as a loadable apache module, configuring it as follows:
./configure --with-apxs --with-pgsql --enable-mbstring --enable-mbregex

The configuration seemed to be OK, though I could not clearly find out from the PHP manual what is that --with-apxs option on the command line.
When running make install, however, I got the following error:
apxs:Error: Config file /usr/local/etc/apache/httpsd.conf not found

I simply want to install PHP as a loadable apache module, with pgsql support. Do I need the --with-apxs option for that?
If so, do I need to reconfigure or worse: recompile apache in order that I can install PHP correctly?

Last edited by J_Szucs; 03-25-2003 at 03:19 PM.
 
Old 03-25-2003, 03:27 PM   #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
what did ./configure --help tell you about that option?
 
Old 03-25-2003, 04:11 PM   #3
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Here it is:
--with-apxs[FILE]: Build shared Apache 1.x module. FILE is the optional pathname to the Apache apxs tool; defaults to apxs.

This is all ./configure --help provides, and the same short information is in the PHP manual.
Not much for a green newbie.

The problem is that I have to do manual configuration on this machine.
On an other machine I have SuSe, which did the configuration for me. PHP is working well there. However I could not find any file or directory there with name 'apxs' or https.conf, so that machine did not give me the clue how to configure this one manually.
 
Old 03-25-2003, 10:42 PM   #4
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Now I found apxs in /usr/local/sbin, and think that PHP found it, too. It is clear now that it is a tool needed to compile the PHP apache module.
The only thing that i do not know is why httpsd.conf is missing and how can I get one.

(It was not me who installed apache on this production server, and would prefer to avoid recompiling it, if possible. I could not even find the apache sources on the server)
 
Old 03-26-2003, 02:14 AM   #5
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Now I created httpsd.conf and compiled php with success. (Things improve from day to day, it may even happen that I will have php running in a month...)

So, I also added the LoadModule statement in httpd.conf, together with the type declaration line.

However, when I put a .php file (being actually a html page, only) in my html doc directory, it is simply downloaded as a text file by the clients.
If I put it elsewhere, the clients get an error 'page not found'.

What did I do wrong?
How can I check if the php module is actually loaded when that .php file is requested?
 
Old 03-26-2003, 02:29 AM   #6
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
Problem solved:
The php module was actually not loaded since there was a ClearModules statement following the AddModules statement in the httpd.conf file.
So I had to insert an AddModule mod_php4.c line into httpd.conf.
 
  


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
xml2-config not found, can't install php snip128 Linux - Newbie 12 09-29-2011 03:32 PM
apache2 complains 'sysconfig.d/include.conf' not found tacca Linux - Software 1 03-24-2011 09:23 AM
cannot found /etc/inetd.conf windefault Linux - Newbie 3 11-18-2004 11:02 AM
anaconda post-install error - resolv.conf not found anamika Linux - Distributions 3 09-19-2002 03:37 PM
httpsd.conf for SecureWeb caudleg Linux - Software 7 12-28-2000 08:29 AM


All times are GMT -5. The time now is 02:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration