474,040 Members | 49,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(Mozi lla) 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 1747

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

Similar topics

1
2216
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. I can run scripts,etc. When I try mysql_connect ("localhost","mysql_user", mysql_password") or
2
3607
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 point at not giving permissions to the apache user. I have chmod 777 the directory /var/www/html and the subdirectory test
2
1609
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 objective is to host webapps from different people on a single Linux server; because of that, I want to be sure that one webapp cannot interfere with another. My first attempt at privilege separation went through users & groups. Unfortunately...
6
2461
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, Netzwerkadresse oder Anschluss> nur jeweils einmal verwendet werden. : make_sock could not bind to no listening sockets available, shutting down Unable to open logs Any Idea?
15
2533
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 #!/usr/local/bin/bash psql -c "select foo from bar;" -d database1 -t psql -c "\q" -d database1 exit 0
1
4260
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 the page: Fatal error: Class 'soapclient' not found in /home/as411161/apache/htdocs/index4.php on line 3 If I run php from a command line, things work fine.
3
4956
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 "D:/softwares/Apache2.2/htdocs"> AddHandler mod_python .py PythonHandler mptest PythonDebug On </Directory>
0
1805
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 run the webservers, I'm trying to get a ruby webserver I couldn't make it run properly, actually it doesn't want to run rather than everything seems alright and I don't know how to check rails, still it doesn't want to run also freeride, it seems...
3
2591
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 I have tried from the docs and googling: sudo apt-get install php5 This seemed to only work for apache 2. sudo apt-get install libapache-mod-php5
0
10536
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
10335
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11137
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
10301
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...
0
7861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6647
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6824
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5404
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
3
3963
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.