473,387 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

(Second try) I installed PHP from an RPM, but Apache isn't processingthe PHP pages! What's going on?

I did a mistake with the files name (http.conf ==> httpd.conf). See at
the end.
================================================== =============================
I installed PHP from an RPM, but Apache isn't processing the PHP pages!
What's going on here?
Somebody can help me ? If I do /usr/sbin/apachectl extendedstatus
command, I got this.
================================================== =============================

* * *

Apache Server Status for noname.com

Server Version: Apache-AdvancedExtranetServer/2.0.44 (Mandrake
Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 mod_ssl/2.0.44
OpenSSL/0.9.7a PHP/4.3.1

Server Built: Mar 4 2003 21:21:03
__________________________________________________ _______________

Current Time: dimanche, 21-sep-2003 21:56:22 EDT
Restart Time: dimanche, 21-sep-2003 19:13:15 EDT
Parent Server Generation: 0
Server uptime: 2 hours 43 minutes 6 seconds
1 requests currently being processed, 5 idle workers

__W___............................................ ..............
.................................................. ...............
.................................................. ...............
.................................................. ...............

Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process

################################################## ############################
Apache Server Status for noname.com

Server Version: Apache-AdvancedExtranetServer/1.3.27 (Mandrake
Linux/5mdk) mod_perl/1.27
Server Built: Feb 19 2003 22:32:42
__________________________________________________ _______________

Current Time: dimanche, 21-sep-2003 21:56:22 EDT
Restart Time: dimanche, 21-sep-2003 19:13:09 EDT
Parent Server Generation: 0
Server uptime: 2 hours 43 minutes 13 seconds
1 requests currently being processed, 3 idle servers
_W__.............................................. ..............
.................................................. ...............
.................................................. ...............
.................................................. ...............

Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"L" Logging, "G" Gracefully finishing, "." Open slot with no current
process

################################################## ############################

* * *
================================================== =============================
Into my httpd.conf, I have that
================================================== =============================
#<IfDefine HAVE_PHP4>
LoadModule php4_module /usr/lib/apache2-extramodules-2.0.44/mod_php4.so
LoadModule php4_module /usr/lib/apache-extramodules/libphp4.so

#</IfDefine>

....

#<IfDefine HAVE_PHP4>
</IfDefine>
#<IfDefine HAVE_PHP4>
AddModule mod_php.c
AddModule mod_php3.c
AddModule mod_php4.c

#</IfDefine>

....

AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps

I tried
/usr/sbin/apachectl restart and /etc/rc.d/init.d/httpd restart commande
but when I open php info page (<?Php phpinfo(); ?>) is not working. I
install rpm from Mandrake disk 2.

I noticed than I got httpd2.conf file into the same directory than
httpd.conf. If I take off httpd2.conf file, I get a error message. But
If I do the same thing with httpd.conf I get nothing (no error
message).I have no http.conf.

Probably a bad configuration but I am a newbies...

Thanks

Jean-Louis

P.S. If possible sent me your answer at jl****@sympatico.ca

Jul 17 '05 #1
3 2287
Jean-Louis Vill wrote:
I tried
/usr/sbin/apachectl restart and /etc/rc.d/init.d/httpd restart commande
but when I open php info page (<?Php phpinfo(); ?>) is not working. I
install rpm from Mandrake disk 2.

I noticed than I got httpd2.conf file into the same directory than
httpd.conf. If I take off httpd2.conf file, I get a error message. But
If I do the same thing with httpd.conf I get nothing (no error
message).I have no http.conf.

httpd2.conf is correct. I don't know why Mandrake does this, but that's
how it is on my system and it works fine.


--
Sugapablo
------------------------------------
http://www.sugapablo.com <--music
http://www.sugapablo.net <--personal

Jul 17 '05 #2
Sugapablo wrote:
Jean-Louis Vill wrote:
I tried
/usr/sbin/apachectl restart and /etc/rc.d/init.d/httpd restart
commande but when I open php info page (<?Php phpinfo(); ?>) is not
working. I install rpm from Mandrake disk 2.

I noticed than I got httpd2.conf file into the same directory than
httpd.conf. If I take off httpd2.conf file, I get a error message. But
If I do the same thing with httpd.conf I get nothing (no error
message).I have no http.conf.


httpd2.conf is correct. I don't know why Mandrake does this, but that's
how it is on my system and it works fine.

Hi Sugapablo,
Ok, I know that httpd2.conf is used by Apache, but I
try to put this lines :

LoadModule php4_module /usr/lib/apache2-extramodules-2.0.44/mod_php4.so
LoadModule php4_module /usr/lib/apache-extramodules/libphp4.so

AddModule mod_php.c
AddModule mod_php3.c
AddModule mod_php4.c

I got errors. Have you this line into your httpd2.conf ?

Jul 17 '05 #3
Eurêka!
I didn't know that I should put my Php page in the server directory
(/www/http).

It's working!

Bye guys!

JL
Jean-Louis Vill wrote:
Sugapablo wrote:
Jean-Louis Vill wrote:
I tried
/usr/sbin/apachectl restart and /etc/rc.d/init.d/httpd restart
commande but when I open php info page (<?Php phpinfo(); ?>) is not
working. I install rpm from Mandrake disk 2.

I noticed than I got httpd2.conf file into the same directory than
httpd.conf. If I take off httpd2.conf file, I get a error message.
But If I do the same thing with httpd.conf I get nothing (no error
message).I have no http.conf.



httpd2.conf is correct. I don't know why Mandrake does this, but
that's how it is on my system and it works fine.

Hi Sugapablo,
Ok, I know that httpd2.conf is used by Apache, but I
try to put this lines :

LoadModule php4_module /usr/lib/apache2-extramodules-2.0.44/mod_php4.so
LoadModule php4_module /usr/lib/apache-extramodules/libphp4.so

AddModule mod_php.c
AddModule mod_php3.c
AddModule mod_php4.c

I got errors. Have you this line into your httpd2.conf ?


Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dave | last post by:
Hello, I have a very urgent problem! The situation is i have an rh 7.1 box, i know it's not mine though, that has apache 1.3.27 on it in the form of what i presume is an rpm, it's actually on a...
2
by: millrace | last post by:
helloo i'm crying out for some apache ownership help please :) i've got a problem with some directly-web-accessible and not-directly-web-accessible scripts that i've written to run in apache....
1
by: olegkon | last post by:
Hi, I am trying to create 2 separate environments (dev and test) on one powerful Unix server which has 2 network cards, 2 IP addresses, 2 server names... Using Apache 2.0.43 and Tomcat...
56
by: Anonymous, quoting Philip Ronan | last post by:
Subject: Warning: robots.txt unreliable in Apache servers From: Philip Ronan <invalid@invalid.invalid> Newsgroups: alt.internet.search-engines Message-ID: <BF89BF33.39FDF%invalid@invalid.invalid>...
1
by: Sam Carleton | last post by:
Is it possible to have apache host an asp.net app on a windows server? If so, how? Sam
15
by: mariosp | last post by:
I would like to request more information for the installation and configuration of Apache in windows 2003 and I would like to know which is better IIS or apache in Windows 2003 Server ...
4
by: a8736d53 | last post by:
Is it possible to install PHP on a stand alone WinME computer, and have the .php files work exactly like they do on an Internet server?
9
by: davids58 | last post by:
I installed Apache 2.2.3 per the instructions in the book I'm reading 'AJAX and PHP' by Darie et al. After installation, I confirmed that the server was working. I then installed MySQL and PHP....
1
by: arijit001 | last post by:
I want to redirect requests to asp.net pages from apache to IIS. Is there any way I can do it? Without using MONO. The Apache is running under Linux. While the ASP.Net pages are hosted under IIS....
0
by: bowtie | last post by:
i would like to develop an intranet for a local company as a project at college and would like to use html and asp,and for the web server i would like to use apache,but i need assistance on how to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.