473,770 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

(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-AdvancedExtrane tServer/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-AdvancedExtrane tServer/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****@sympatic o.ca

Jul 17 '05 #1
3 2314
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
1801
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 vps system. Apache was built with dso support as well as php4 which was also installed, then mhash was to be added. A source version of php4.3.4 was downloaded and installed with mhash support, and now not only does this not work, but apache is no...
2
1558
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. looking at the net, i guess it's an old problem, but my isp isn't running phpsuexec. therefore apache is creating files as 'nobody'. however, when i ftp files onto the server they are owned by myuid. but
1
4063
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 4.1.29/JBoss 3.0.7, mod_jk 2.0.43 on Solaris 9, Intranet environment, Cocoon apps.
56
3634
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> Date: Sat, 29 Oct 2005 23:07:46 GMT Hi, I recently discovered that robots.txt files aren't necessarily any use on Apache servers.
1
1411
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
3857
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 Regards, Marios
4
1332
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
13689
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. After configuring the system per the book's instructions, I now find that the Apache server won't start. How do I start to troubleshoot this problem? I haven't a clue at this point. Any help would be greatly appreciated. TIA,
1
997
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. My point is to display the asp.net pages through Apache. Request should go to Apache.. Apache forwards the call to IIS... IIS throws the result to Apache.. and Apache throws the output to the browser. Thanks in advance..
0
1592
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 use apache on serving the pages i.e how do i link the web pages to apache and also how to make other clients access these pages .
0
9618
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10259
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.