Tries to download PHP files

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


Joined: 02 Feb 2008
Posts: 5

PostPosted: Sat Feb 02, 2008 2:04 pm    Post subject: Tries to download PHP files Reply with quote

I had Abyss setup for a while and it was working fine. Just recently I started working on a new site, but my PHP files won't download. Going to http://127.0.0.1 just gives me a blank page (view source gives me no source at all) and going to http://127.0.0.1/index.php tries to download index.php rather than load it.

I've gone through the tutorial on http://www.abyssunderground.co.uk/ several times and have followed it to the letter. I've uninstalled both PHP and Abyss, reinstalled (same version of Abyss, but I've tried several different versions of PHP) to no avail (all with the same results.)

I've also tried other tutorials that were suggested in threads on here, also to no avail (all giving me the same results.)

The Abyss console says that it's up and running:
-- Default host on port 8000 is up and running (Local URL http://127.0.0.1:8000)
Console local URL: http://127.0.0.1:9999

All of my log files are completely empty.

Any help would be appreciated.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Feb 02, 2008 6:46 pm    Post subject: Reply with quote

You must be doing something wrong. Make sure you are following the tutorial properly and also make sure you remember to restart Abyss through the console after you install php.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Programmer16
-


Joined: 02 Feb 2008
Posts: 5

PostPosted: Sat Feb 02, 2008 8:42 pm    Post subject: Reply with quote

AbyssUnderground wrote:
You must be doing something wrong. Make sure you are following the tutorial properly and also make sure you remember to restart Abyss through the console after you install php.


I've went through your tutorial several times from scratch, making sure to follow it word for word each time and I've restarted both abyss by hand (closing the app and opening it again) and by the restart button.

I've added an interpreter with these settings:
Enable Scripts Execution is checked
CGI/ISAPI interface
php-cgi.exe interpreter
Check for file existence before execution is checked
Standard type
Use the associated extensions to automatically update the Script Paths is checked
php extension has been added
Script paths is set to "/*.php"
Custom Environment "REDIRECT_STATUS" was added with a value of 200.

Did I miss something?
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Feb 02, 2008 8:43 pm    Post subject: Reply with quote

Did you click the "Restart" button after you did all that? If you don't the changes don't save and it will continue to do exactly the same thing.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Programmer16
-


Joined: 02 Feb 2008
Posts: 5

PostPosted: Sat Feb 02, 2008 8:46 pm    Post subject: Reply with quote

AbyssUnderground wrote:
Did you click the "Restart" button after you did all that? If you don't the changes don't save and it will continue to do exactly the same thing.


Yup, I did that every time.
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Feb 02, 2008 8:49 pm    Post subject: Reply with quote

Programmer16 wrote:
AbyssUnderground wrote:
Did you click the "Restart" button after you did all that? If you don't the changes don't save and it will continue to do exactly the same thing.


Yup, I did that every time.


OK, I just re-read post #1 and it says that its listening on port 8000 but you're looking at it on http://127.0.0.1 which on its own defaults to port 80. Are you sure you're not running two copies of Abyss and accidently going to the wrong one (which would be on port 80?).

This is possible by running one as a service and then opening Abyss again as a normal program (thus giving a listening error and you changing it to 8000).
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Programmer16
-


Joined: 02 Feb 2008
Posts: 5

PostPosted: Sat Feb 02, 2008 9:01 pm    Post subject: Reply with quote

AbyssUnderground wrote:
Programmer16 wrote:
AbyssUnderground wrote:
Did you click the "Restart" button after you did all that? If you don't the changes don't save and it will continue to do exactly the same thing.


Yup, I did that every time.


OK, I just re-read post #1 and it says that its listening on port 8000 but you're looking at it on http://127.0.0.1 which on its own defaults to port 80. Are you sure you're not running two copies of Abyss and accidently going to the wrong one (which would be on port 80?).

This is possible by running one as a service and then opening Abyss again as a normal program (thus giving a listening error and you changing it to 8000).


Ok, that seems to be the problem (doing http://127.0.0.1:8000/ works correctly.) I switch it over to port 80 and I get a listening error.

In the task manager, it shows Abyss as running twice, but if I close it on the taskbar, both close.

I don't have it setup to install as a windows server.

Thanks for your help so far!
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Feb 02, 2008 9:03 pm    Post subject: Reply with quote

OK, so does PHP work when you use port 8000?

There are two abyss's running, and this is normal. One is Abyss and one is the Anti-Crash feature. If you end one, the other should start again within a second or so.

Something is using port 80 if it is not Abyss. Skype is a common culprit.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Sat Feb 02, 2008 9:04 pm    Post subject: Reply with quote

AbyssUnderground wrote:
OK, I just re-read post #1 and it says that its listening on port 8000 but you're looking at it on http://127.0.0.1 which on its own defaults to port 80. Are you sure you're not running two copies of Abyss and accidently going to the wrong one (which would be on port 80?).

This is possible by running one as a service and then opening Abyss again as a normal program (thus giving a listening error and you changing it to 8000).



Hmmmm...... A bit off topic, but does this mean it's possible to run two separate websites on different ports by loading X1 twice???
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Feb 02, 2008 9:10 pm    Post subject: Reply with quote

pkSML wrote:
AbyssUnderground wrote:
OK, I just re-read post #1 and it says that its listening on port 8000 but you're looking at it on http://127.0.0.1 which on its own defaults to port 80. Are you sure you're not running two copies of Abyss and accidently going to the wrong one (which would be on port 80?).

This is possible by running one as a service and then opening Abyss again as a normal program (thus giving a listening error and you changing it to 8000).



Hmmmm...... A bit off topic, but does this mean it's possible to run two separate websites on different ports by loading X1 twice???


Entirely right. I used to do it with V1 of X1 years ago. Its not very practical though.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Programmer16
-


Joined: 02 Feb 2008
Posts: 5

PostPosted: Sat Feb 02, 2008 10:22 pm    Post subject: Reply with quote

AbyssUnderground wrote:
OK, so does PHP work when you use port 8000?

There are two abyss's running, and this is normal. One is Abyss and one is the Anti-Crash feature. If you end one, the other should start again within a second or so.

Something is using port 80 if it is not Abyss. Skype is a common culprit.


It's working correctly now. It seems that it was either MySpaceIM or Yahoo Messenger. Thanks a lot for all of your help and quick responses!
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Feb 02, 2008 10:24 pm    Post subject: Reply with quote

Programmer16 wrote:
AbyssUnderground wrote:
OK, so does PHP work when you use port 8000?

There are two abyss's running, and this is normal. One is Abyss and one is the Anti-Crash feature. If you end one, the other should start again within a second or so.

Something is using port 80 if it is not Abyss. Skype is a common culprit.


It's working correctly now. It seems that it was either MySpaceIM or Yahoo Messenger. Thanks a lot for all of your help and quick responses!


Aha, MySpaceIM also uses port 80.

Not a problem on the response times. Thats what we're here for :-)
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Toasty
-


Joined: 21 Feb 2008
Posts: 298
Location: Chicago, IL

PostPosted: Tue Feb 26, 2008 11:40 am    Post subject: Reply with quote

Quote:
Hmmmm...... A bit off topic, but does this mean it's possible to run two separate websites on different ports by loading X1 twice???


There's several methods of doing it, I used to do it a different way when I had X1.

BUT doing that opens your site to XSS holes (from your other sites, server being the same), forces the favicon to be the same on each site, and makes the URIs look sloppy...

www.mysite.com/subsite1/index.html
www.mysite.com/subsite2/index.html

I found it to be a little more practical just to upgrade to X2, and save the headaches of multi-site management.
_________________
Audit the secure configuration of your server headers!
Back to top View user's profile Send private message Visit poster's website
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