473,385 Members | 1,727 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,385 software developers and data experts.

configuring php & apache webserver

Hello All,

Unable to run php files on Linux . php-4.2.2 is
preinstalled on RHL 9 .Whenever I run a .php file in the
webbrowser(Mozilla) the HTML source code of the file is being
displayed instead of the output .

I did all the elementary diagnosis stated in the FAQ's like ....

1) $php -i (enter)

This command results in pagefule of HTML code (This indicates php is
working properly).

2)Inserted the following in httpd.conf file ....

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php .php

3)php4 module "libphp4.so" is seen under /etc/httpd/modules

4)$apachectl configtest (enter)
syntax ok (output)
According to the www.php.net/manual/installation_FAQ if "$php -i"
results in loads of HTML code & if HTML source is displayed when the
".php" is run in the webbrowser then it indicates that php is working
properly and the problem lies with the webserver configuration .

There is one thing which is bit confusing ...... according to install
manual "php.ini" file should be placed under /usr/local/lib ,but i
found the file under /etc .

According to FAQ if file is under different location (other than
default location ) then following line has to be added ..

--with-config-file-scan-dir=PATH

But even after adding the line there is no change !
Is the problem with the Apache Webserver or php . Where can I find
php configuration file & can I make changes to it once it is installed
.. I could not find any php directory where such config file could be
found .

contents of /var/log/httpd/error_log
------------------------------------
[Sat Mar 06 06:47:25 2004] [notice] Digest: generating secret for
digest authentication ...
[Sat Mar 06 06:47:25 2004] [notice] Digest: done
[Sat Mar 06 06:47:26 2004] [notice] Apache/2.0.40 (Red Hat Linux)
configured -- resuming normal operations
[Sat Mar 06 07:55:05 2004] [error] [client 202.223.68.1] Directory
index forbidden by rule: /var/www/html/

Sorry for such a lengthy query ........ its just an effort to give a
complete picture .

Plz help me out ..I'm posting this after going through the available
FAQ's on the net .
Thx in advance .

Regards
Vikram.
Jul 17 '05 #1
0 1713

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

Similar topics

1
by: Ken | last post by:
First time I have installed mysql. I have not been able to connect to the server/database with a new php installation. I have installed IIS. Do I need this for mysql? The php works fine. ...
2
by: gruddo | last post by:
Hi this is my first post. I have two webservers. I can run php code fine on one but not the other. Both webservers can read files only one can write. I have looked around at other posts and they...
2
by: Anakim Border | last post by:
App servers such as quixote, webware and skunkweb (just to name a few) offer a clean environment to develop Python webapps. I have some problems, however, understanding their security model. My...
6
by: bettina | last post by:
I downloaded and installed apache_2.0.54-win32-x86-no_ssl.msi By running bin\Apache -k install I receive th following message: <OS 10048>Normalerweise darf jede Socketadresse <Protokoll,...
15
by: Dino Vliet | last post by:
Hi folks, probably this is a question you've heard so many times but I wasn't able to find a solution to it. I'm using a shell script to create a textfile for me. It looks like...
1
by: Anthony Smith | last post by:
I thought I could just use the --enable-soap when I configure php, but that does not seem to work. I was looking for it to create a php_soap.so but i dont see it. I get this when I try and access...
3
by: joe jacob | last post by:
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added <Directory...
0
by: Mohamed Muneer Selim | last post by:
I have found an application named "webmin", of course it has adifferent naming under Linux, that I don't know which is better to use, that manages webservers I don't know how good is this or how to...
3
by: brundlefly76 | last post by:
I am using the apache-perl webserver in Feisty (an Apache 1.3 with mod_perl enabled), which works fine, but I cannot figure out how to install php5 into this webserver as well. Here's some stuff...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...

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.