Question:
I can't run my PHP "hello script" The Apache can't find it.?
Roland
2007-04-17 14:18:14 UTC
I am running mysql/apache/php fine. Apache is running fine.
I am using Fedora 6 and I save the file in my desktop.
Should I save my php script in the apache folder? If yes where
is the folder located & its name? If a root permission is required
to save how do I manage that. Thanks guys.
Five answers:
anonymous
2007-04-17 16:23:08 UTC
You need to save it into whatever directory that is setup to execute scripts. Usually it defaults to the htdocs in apache. You need to be sure that you properly configured your apache and you php configuration files.



Check out http://www.php.net website for some more detailed help.
Daniel B
2007-04-17 16:29:11 UTC
"Save the file and close notepad. To test your work so far, create a folder called public_html in your root directory (c:\) and place an index.php file in this directory containing the following PHP code:







You will also need to restart your web server. There should be a shortcut in your start menu to do so under the Apache folder that was created when you installed Apache. If everything is OK then you should be able to bring up the index.php file with by visiting http://localhost/index.php in your web browser. "



go to this link, walks you through it

http://tools.devshed.com/c/a/Web-Development/Turning-Your-Windows-PC-Into-An-Apache-Web-Server/
marcinko
2016-12-04 10:11:10 UTC
I loved the films, actual had the right sense to them. That being stated, lots of the most suitable novels do examine like historic previous or family contributors timber. that's stated as progression. once you advance an entire international and each and each little ingredient of that international, it may no longer continuously be interesting, even if it has its objective. the in straightforward words reason the books seem that puzzling is once you're having to keep this all instantly; that and the actual undeniable actuality that maximum persons won't be able to take a seat down nonetheless for more beneficial than 5-10 minutes at a time to envision, lol.
Atif Majid
2007-04-18 06:42:18 UTC
Try to late "httpd.conf" file. This file contains the configurations of Apache. Open it and search for "DocumentRoot". This parameter must be pointing to some directory like "/usr/local/abc". Now close this httpd.conf file and go to that directory which has been set in document root. In that directory, create another directory like "test" and put the php file inside this "test" directory. Now u can run it as "http://localhost/test/yourfile.php"
anonymous
2007-04-17 21:46:20 UTC
For Fedora 6 it will be using apache2 if you installed off the RPM



the conf is in /etc/httpd/conf.d and similar folders there might be a config file called php.conf in there in which the below could be used.. if not



use /etc/httpd/conf/httpd.conf for the below





You need to make sure you have an AddType Application or AddHander



AddHandler application/x-httpd-php .php

AddHandler application/x-httpd-php-source .phps



Make sure those are there... if not place them in there it can also read



AddType application/x-httpd-php .php

AddType application/x-httpd-php-source .phps





restart your web server through

service httpd restart

or /etc/init.d/httpd restart



place a file in

var/www/html



if the default place



test your PHP



with







this will give you a php info



hope it helps





Blue chip hosting staff

http://www.bluechiphosting.com


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...