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

Can't get Apache to run PHP inside html from localhost - works fine from /var/ww/html

I had a look at the stantonfinley fedora core 5 instructions and robooted
but to no avail.
PHP scripts work fine from var/www/html whether the suffix is .php or .htm
but not from localhost.

I did what is suggested from this point and rebooted but no bloody luck.
If someone could throw an clue this way it'd be appreciated and thanked in
advance.

http://www.stanton-finley.net/fedora...ion_notes.html

<quote>
If you wish to enable support to serve web pages from user's home
directories as well comment (add a "#" in front of) "UserDir disable" so
that it reads "#UserDir disable" and uncomment "#UserDir public_html" so
that it reads "UserDir public_html". Then uncomment and edit the control
access stanza for user directories below it so that it looks something
like this: <Directory /home/*/public_html>
AllowOverride Options FileInfo AuthConfig Limit Options Indexes
Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews <Limit
GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Allow from all
</LimitExcept>
</Directory>
[..]
Sep 9 '06 #1
2 2746
Open your /etc/httpd/httpd.conf, grep for php, and uncomment the lines
LoadModule and AddModule for PHP. It sounds like this should fix it.
Also, make sure you are using http://localhost and not file://localhost
-- file:// URLs are not parsed.

Frel wrote:
I had a look at the stantonfinley fedora core 5 instructions and robooted
but to no avail.
PHP scripts work fine from var/www/html whether the suffix is .php or .htm
but not from localhost.

I did what is suggested from this point and rebooted but no bloody luck.
If someone could throw an clue this way it'd be appreciated and thanked in
advance.

http://www.stanton-finley.net/fedora...ion_notes.html

<quote>
If you wish to enable support to serve web pages from user's home
directories as well comment (add a "#" in front of) "UserDir disable" so
that it reads "#UserDir disable" and uncomment "#UserDir public_html" so
that it reads "UserDir public_html". Then uncomment and edit the control
access stanza for user directories below it so that it looks something
like this: <Directory /home/*/public_html>
AllowOverride Options FileInfo AuthConfig Limit Options Indexes
Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews <Limit
GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Allow from all
</LimitExcept>
</Directory>
[..]
Sep 9 '06 #2
On Sat, 09 Sep 2006 14:21:51 -0700, Joshie Surber wrote:
Open your /etc/httpd/httpd.conf, grep for php, and uncomment the lines
LoadModule and AddModule for PHP.
All LoadModule entries were already uncommented. No "AddModule" for PHP
found.

It sounds like this should fix it.
Also, make sure you are using http://localhost and not file://localhost
-- file:// URLs are not parsed.
This brings up what is in in var/www which I don't have a problem with.
Frel wrote:
>I had a look at the stantonfinley fedora core 5 instructions and
robooted but to no avail.
PHP scripts work fine from var/www/html whether the suffix is .php or
.htm but not from localhost.

I did what is suggested from this point and rebooted but no bloody
luck. If someone could throw an clue this way it'd be appreciated and
thanked in advance.

http://www.stanton-finley.net/fedora...ion_notes.html

<quote>
If you wish to enable support to serve web pages from user's home
directories as well comment (add a "#" in front of) "UserDir disable"
so that it reads "#UserDir disable" and uncomment "#UserDir
public_html" so that it reads "UserDir public_html". Then uncomment and
edit the control access stanza for user directories below it so that it
looks something like this: <Directory /home/*/public_html>
AllowOverride Options FileInfo AuthConfig Limit Options Indexes
Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Allow from all
</LimitExcept>
</Directory>
[..]
Sep 10 '06 #3

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

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
7
by: Alexandr Molochnikov | last post by:
Hello, I've spent a few days trying to get Apache and Tomcat work together via JK module. First I followed the following HOWTO link: http://www.johnturner.com/howto/winxp-howto.html and...
11
by: gregsands | last post by:
Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54 Apache is running fine and ive made all the changes to the pnp.ini file and Apache config file, restarted Apache but all I get...
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
10
by: 7stud | last post by:
I'm trying to get Apache set up on my system so I can use mod_python. I installed Apache 2.2.4 according to the following instructions: ...
2
by: furrypop | last post by:
Hi, I'm trying to get the Perl SOAP::Lite examples to work on a Windows PC, running Apache 2.2.4. Apache is definitely serving CGI scripts, as I've tested a dummy Hello World thing. I'm also...
0
by: phil469 | last post by:
I'm having an issue when trying to read a file in a user's homedir from a cgi script. I have a virtual host section in my httpd.conf file which I'll include. The cgi script is a very basic script...
5
by: Brian | last post by:
Hi I have a problem in opening url using 'file'. I searched many other discussion groups and tried suggestions, but could not resolve this problem. e.g <?php $myfile =...
8
lifeisgreat20009
by: lifeisgreat20009 | last post by:
What might be the possible cause ? I have created a website using struts framework, jsp In my transaction page the money is not getting transferred.. When I hit the submit button in my...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
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...
0
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,...
0
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...

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.