View previous topic :: View next topic |
Author |
Message |
nlubin -
Joined: 11 Apr 2006 Posts: 6
|
Posted: Tue Apr 11, 2006 5:09 pm Post subject: Can't Run PHP file, Please Help |
|
|
Hello,
I set up Abyss, PHP and MySQL as per the tutorials and double checked my work. And I did as it said. Now when I created and put a PHP file into htdocs, either nothing happens or i get a 404 error.
I'm very new at this and would appreciate any help offered.
Thank you in advance,
Neil |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Apr 11, 2006 5:11 pm Post subject: |
|
|
Double check you have installed PHP properly. Go to www.abyssunderground.co.uk/tutorials-php.php and follow the instructions there.
Make a script with
Code: | <?php phpinfo(); ?> |
in it to make sure PHP is working properly. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
nlubin -
Joined: 11 Apr 2006 Posts: 6
|
Posted: Tue Apr 11, 2006 6:01 pm Post subject: Thank You For Responding |
|
|
I reviewed the PHP tutorial that you sent and I set it up correctly. I then used the script you provided and saved it in htdocs, then ran it and i got a 404 error, just like before.
Neil |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Apr 11, 2006 6:02 pm Post subject: |
|
|
Are you sure you htdocs is pointing to the place you think it is? If youve changed it in abyss then it wont be in the normal htdocs folder. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
nlubin -
Joined: 11 Apr 2006 Posts: 6
|
Posted: Tue Apr 11, 2006 6:11 pm Post subject: Thanks Again |
|
|
As far as i know its pointing the right way. I'm new to Abyss, so how would i verify this? I don't recall having changed anything re: htdocs.
Neil |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Apr 11, 2006 6:15 pm Post subject: |
|
|
Check in the console, under general options that you see it points to "c:\Program Files\Abyss Web Server\htdocs". If it doesnt thats why. If it does then I cant understand why it wont work.
Are you saving your files as file.php? Make sure they are not file.php.txt. Its a common mistake. An easy fix is to resave the file but put the filename in double quotes. You can turn off an option in folder options to stop it putting .txt at the end. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
nlubin -
Joined: 11 Apr 2006 Posts: 6
|
Posted: Tue Apr 11, 2006 6:35 pm Post subject: In Response |
|
|
Under server configuration it says C:\Program Files\Abyss Web Server\. if i add htdocs to it and restart i still get the 404 but also a red light, which i didn't get before.
Yes, I've saved it as test.php, but cannot save it in double quotes.
Thanks again,
Neil |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Apr 11, 2006 6:37 pm Post subject: |
|
|
Restart your PC and try again now you have changed it to htdocs. Not sure why you are getting a red dot after a restart. A pc restart should solve it. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
nlubin -
Joined: 11 Apr 2006 Posts: 6
|
Posted: Tue Apr 11, 2006 6:41 pm Post subject: Thanks for the help. |
|
|
I'll try rebooting my PC as you suggested.
Thanks,
Neil |
|
Back to top |
|
 |
nlubin -
Joined: 11 Apr 2006 Posts: 6
|
Posted: Tue Apr 11, 2006 6:57 pm Post subject: No, still not working |
|
|
I rebooted and get a red light and server doesn't start. Here is the message it gives:
Abyss Web Server X1 (v 2.3.0.5)
Copyright © Aprelium Technologies - 2001-2006
-- Default host on port 8000 has errors and is stopped (Local URL http://127.0.0.1:8000)
The system cannot find the file specified. (key: root/server/host/scripting/cgi/errorfile - file: C:\Program Files\Abyss Web Server\abyss.conf - line: 48 - col: 5)
Error while reading/setting the configuration of module scripting (key: root/server/host/scripting/cgi/errorfile - file: C:\Program Files\Abyss Web Server\abyss.conf - line: 48 - col: 5)
Console local URL: http://127.0.0.1:9999
Thanks again,
Neil |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Tue Apr 11, 2006 8:17 pm Post subject: |
|
|
Your abyss.conf (the Abyss Web Server configuration file) is either corrupt or you have attempted to edit it manually. Youll have to fix the error or delete the config file and let Abyss make another for you. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Apr 12, 2006 10:25 am Post subject: Re: No, still not working |
|
|
nlubin,
Our guess is that you have changed the Server Root in Console > Server Configuration > Parameters but this new server root directory does not contain a subdirectory which name is log.
So create there a new subdirectory called log and the error should no more be reported.
Note that Abyss Web Server complaint is because some of your paths were referring to log (here the CGI Error file remained set to log/cgi.log which is a path relative to the server root). _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|