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

Your name:

Reply:


Posted by Joshie Surber on 09/09/06 21:21

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_core_5_installation_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>
>
>
> [..]

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация