Can't Run PHP file, Please Help

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
nlubin
-


Joined: 11 Apr 2006
Posts: 6

PostPosted: Tue Apr 11, 2006 5:09 pm    Post subject: Can't Run PHP file, Please Help Reply with quote

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 View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Apr 11, 2006 5:11 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
nlubin
-


Joined: 11 Apr 2006
Posts: 6

PostPosted: Tue Apr 11, 2006 6:01 pm    Post subject: Thank You For Responding Reply with quote

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 View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Apr 11, 2006 6:02 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
nlubin
-


Joined: 11 Apr 2006
Posts: 6

PostPosted: Tue Apr 11, 2006 6:11 pm    Post subject: Thanks Again Reply with quote

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 View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Apr 11, 2006 6:15 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
nlubin
-


Joined: 11 Apr 2006
Posts: 6

PostPosted: Tue Apr 11, 2006 6:35 pm    Post subject: In Response Reply with quote

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 View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Apr 11, 2006 6:37 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
nlubin
-


Joined: 11 Apr 2006
Posts: 6

PostPosted: Tue Apr 11, 2006 6:41 pm    Post subject: Thanks for the help. Reply with quote

I'll try rebooting my PC as you suggested.

Thanks,

Neil
Back to top View user's profile Send private message
nlubin
-


Joined: 11 Apr 2006
Posts: 6

PostPosted: Tue Apr 11, 2006 6:57 pm    Post subject: No, still not working Reply with quote

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 View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Tue Apr 11, 2006 8:17 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Apr 12, 2006 10:25 am    Post subject: Re: No, still not working Reply with quote

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 View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group