View previous topic :: View next topic |
Author |
Message |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Sun Oct 29, 2006 10:51 am Post subject: Help with php. |
|
|
Hello, Im very new with this and i need some help..
When i put my php files in /htdocs i want my friends to enter it as a site,
But when they enter the site they only get a "save as" to download the .index file..
Anyone can tell me how to make the php to show as a page?
Sorry if its hard to understand, dont know how to explain it better :? |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
|
Back to top |
|
 |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Sun Oct 29, 2006 11:19 am Post subject: |
|
|
Ok, I tried that, done exactly what the tutorial says.
But when i try the test.php i get error 500 Internal Server Error. |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
Posted: Sun Oct 29, 2006 11:50 am Post subject: |
|
|
Follow the steps again. It is likely you did something wrong. If that fails, try a different php version, installing the same way. _________________ Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk |
|
Back to top |
|
 |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Sun Oct 29, 2006 12:11 pm Post subject: |
|
|
Where can i find a different php version? :? |
|
Back to top |
|
 |
AbyssUnderground -
Joined: 31 Dec 2004 Posts: 3855
|
|
Back to top |
|
 |
Ralph -
Joined: 17 Sep 2006 Posts: 87
|
Posted: Sun Oct 29, 2006 12:33 pm Post subject: |
|
|
denniboy,
Make sure also, that you are saving the php file the proper way!
When saving the file to a php file from a text editor make sure to use
quotes in the file name like, "test.php" otherwise it will not save it right !
The same affect can also be accomplished by changing the Save as Type to all files.
You might all ready know this, I was just making sure you do! |
|
Back to top |
|
 |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Sun Oct 29, 2006 12:59 pm Post subject: |
|
|
Ok, i will try all this and then i report back :) |
|
Back to top |
|
 |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Sun Oct 29, 2006 1:05 pm Post subject: |
|
|
It dont work. still getting 'error 500' Internal server error. :S |
|
Back to top |
|
 |
loloyd -
Joined: 03 Mar 2006 Posts: 435 Location: Philippines
|
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Oct 29, 2006 2:53 pm Post subject: |
|
|
denniboy wrote: | It dont work. still getting 'error 500' Internal server error. :S |
Check you cgi.log or fastcgi.log files for more information about the cause of the failure. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Mon Oct 30, 2006 1:02 pm Post subject: |
|
|
OK, This is in my cgi log:
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Bad CGI header line [phpinfo()]
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Bad CGI header line [phpinfo()]
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Bad CGI header line [phpinfo()]
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Bad CGI header line [phpinfo()]
CGI: [C:\Program\PHP5\php.exe index.php ] URI: /index.php Bad CGI header line [<?xml version="1.0" encoding="utf-8"?>]
CGI: [C:\Program\PHP5\php.exe index.php ] URI: /index.php Bad CGI header line [<?xml version="1.0" encoding="utf-8"?>]
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Broken pipe
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Broken pipe
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Broken pipe
CGI: [C:\Program\PHP5\php.exe index.php ] URI: /index.php Bad CGI header line [<?xml version="1.0" encoding="utf-8"?>]
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Broken pipe
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Broken pipe
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Broken pipe
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Broken pipe
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Bad CGI header line [phpinfo()]
CGI: [C:\Program\PHP5\php.exe test.php ] URI: /test.php Bad CGI header line [phpinfo()]
and nothing in my fastcgi log.. |
|
Back to top |
|
 |
cmxflash -
Joined: 11 Dec 2004 Posts: 872
|
Posted: Mon Oct 30, 2006 1:45 pm Post subject: |
|
|
Could you please download my preconfigured Abyss + PHP package and see if it's working? Please note that EasyAbyss must be run from C:/easyabyss.
What O/S are you using? (Some people has had problems with Win98 and PHP before) |
|
Back to top |
|
 |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Mon Oct 30, 2006 1:57 pm Post subject: |
|
|
Goiing to test it.. Im using XP Professional.. |
|
Back to top |
|
 |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Mon Oct 30, 2006 2:04 pm Post subject: |
|
|
Ok.. The test.php and so working now, everything works for me, But friends get "unable to load page" or sumthing... Any port i need to open in the router or so ? |
|
Back to top |
|
 |
Ralph -
Joined: 17 Sep 2006 Posts: 87
|
Posted: Mon Oct 30, 2006 2:31 pm Post subject: |
|
|
denniboy wrote: | Any port i need to open in the router or so ? |
Absolutely, if you have not yet! You will need to forward a port in your router in order for anyone from the outside to reach your site!
The default port is 80 and the one to forward unless you changed it in your server or your ISP blocks that port!
Forward the port in your router using the TCP protocol to your internal LAN address number, the 192.167.x.x or similar number!
 |
|
Back to top |
|
 |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Mon Oct 30, 2006 2:42 pm Post subject: |
|
|
OK, Did it what u said, But others can't enter the site :S:S |
|
Back to top |
|
 |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Mon Oct 30, 2006 3:06 pm Post subject: |
|
|
How do i change the port of abyss? |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Mon Oct 30, 2006 4:44 pm Post subject: |
|
|
denniboy wrote: | How do i change the port of abyss? |
Go to Abyss console. On your host, click Configure.
Then, click General. Port setting is at the top. Change it.
Click OK. Click Restart. |
|
Back to top |
|
 |
Ralph -
Joined: 17 Sep 2006 Posts: 87
|
Posted: Mon Oct 30, 2006 6:25 pm Post subject: |
|
|
denniboy
If what Moxxnixx, the others and I have told you does not work, then you need to give us a little more information. Like are you using a domain name or just an IP number for your friends to reach the site with? What type of OS, router and connection?
Also if you change the port number from default 80, make sure you change it in your router settings and you may have to forward the name with new port numbers attached at your DNS service.
denniboy wrote: | When i put my php files in /htdocs i want my friends to enter it as a site,
But when they enter the site they only get a "save as" to download the .index file |
Make sure in your server that you have the right index files and Scripting Parameters set up. You did add some I am assuming for php scripts, right? Otherwise only html will work! |
|
Back to top |
|
 |
denniboy -
Joined: 29 Oct 2006 Posts: 11
|
Posted: Fri Nov 03, 2006 2:52 pm Post subject: |
|
|
Ok, Nothing of this works, I can view the site myself but everyone else gets page not found. Im having a Dlink router but i know how to open ports in it, And i did that.
But i had a problem with my Nvidia firewall, Blocking xampp also. after i uninstalled it it still blocked xampp, I think.. Becuz its still not working.
So maybe its the same with this?
But i dont know why the nvidia firewall blocks it even if its deleted.
I read about some ppls having trouble deleting it too so maybe its not all gone?
Anyone had same problem with Nvidia firewall? |
|
Back to top |
|
 |
kev1952 -
Joined: 08 Sep 2005 Posts: 105 Location: Townsville Australia
|
Posted: Sat Nov 04, 2006 5:05 pm Post subject: |
|
|
Have you opened Port 80 in the firewall? Is your router set to accept HTTP requests? _________________ Cheers.... Kev
Kev's Place - http://www.kevsplace.com
Powered by Abyss X1. |
|
Back to top |
|
 |
pkSML -
Joined: 29 May 2006 Posts: 955 Location: Michigan, USA
|
Posted: Sat Nov 04, 2006 5:46 pm Post subject: |
|
|
Your problem might be created by D-Link, especially if it's a low-price wireless router.
I had a D-Link. At first, no computers could get on the net. I upgraded the firmware and that fixed that problem. But no server requests got through the hunk of junk. I got my money back and am sticking with Linksys.
I'd say ditch D-Link and get a Linksys or Netgear router if you can afford it.
Try connecting the computer directly to the internet. If that solves your problem, the router is the culprit. _________________ Stephen
Need a LitlURL?
http://CodeBin.yi.org |
|
Back to top |
|
 |
|