Help with php.

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


Joined: 29 Oct 2006
Posts: 11

PostPosted: Sun Oct 29, 2006 10:51 am    Post subject: Help with php. Reply with quote

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


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Oct 29, 2006 11:02 am    Post subject: Reply with quote

Follow the php installation on www.abyssunderground.co.uk/tutorials-php.php
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
denniboy
-


Joined: 29 Oct 2006
Posts: 11

PostPosted: Sun Oct 29, 2006 11:19 am    Post subject: Reply with quote

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


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Oct 29, 2006 11:50 am    Post subject: Reply with quote

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


Joined: 29 Oct 2006
Posts: 11

PostPosted: Sun Oct 29, 2006 12:11 pm    Post subject: Reply with quote

Where can i find a different php version? :?
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Oct 29, 2006 12:13 pm    Post subject: Reply with quote

www.php.net
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Ralph
-


Joined: 17 Sep 2006
Posts: 87

PostPosted: Sun Oct 29, 2006 12:33 pm    Post subject: Reply with quote

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


Joined: 29 Oct 2006
Posts: 11

PostPosted: Sun Oct 29, 2006 12:59 pm    Post subject: Reply with quote

Ok, i will try all this and then i report back :)
Back to top View user's profile Send private message
denniboy
-


Joined: 29 Oct 2006
Posts: 11

PostPosted: Sun Oct 29, 2006 1:05 pm    Post subject: Reply with quote

It dont work. still getting 'error 500' Internal server error. :S
Back to top View user's profile Send private message
loloyd
-


Joined: 03 Mar 2006
Posts: 435
Location: Philippines

PostPosted: Sun Oct 29, 2006 1:36 pm    Post subject: Reply with quote

try checking http://www.aprelium.com/abyssws/php.html out
_________________

http://home.loloyd.com/ is online if the logo graphic at left is showing.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Oct 29, 2006 2:53 pm    Post subject: Reply with quote

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


Joined: 29 Oct 2006
Posts: 11

PostPosted: Mon Oct 30, 2006 1:02 pm    Post subject: Reply with quote

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


Joined: 11 Dec 2004
Posts: 872

PostPosted: Mon Oct 30, 2006 1:45 pm    Post subject: Reply with quote

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


Joined: 29 Oct 2006
Posts: 11

PostPosted: Mon Oct 30, 2006 1:57 pm    Post subject: Reply with quote

Goiing to test it.. Im using XP Professional..
Back to top View user's profile Send private message
denniboy
-


Joined: 29 Oct 2006
Posts: 11

PostPosted: Mon Oct 30, 2006 2:04 pm    Post subject: Reply with quote

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


Joined: 17 Sep 2006
Posts: 87

PostPosted: Mon Oct 30, 2006 2:31 pm    Post subject: Reply with quote

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


Joined: 29 Oct 2006
Posts: 11

PostPosted: Mon Oct 30, 2006 2:42 pm    Post subject: Reply with quote

OK, Did it what u said, But others can't enter the site :S:S
Back to top View user's profile Send private message
denniboy
-


Joined: 29 Oct 2006
Posts: 11

PostPosted: Mon Oct 30, 2006 3:06 pm    Post subject: Reply with quote

How do i change the port of abyss?
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Mon Oct 30, 2006 4:44 pm    Post subject: Reply with quote

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


Joined: 17 Sep 2006
Posts: 87

PostPosted: Mon Oct 30, 2006 6:25 pm    Post subject: Reply with quote

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


Joined: 29 Oct 2006
Posts: 11

PostPosted: Fri Nov 03, 2006 2:52 pm    Post subject: Reply with quote

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


Joined: 08 Sep 2005
Posts: 105
Location: Townsville Australia

PostPosted: Sat Nov 04, 2006 5:05 pm    Post subject: Reply with quote

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


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

PostPosted: Sat Nov 04, 2006 5:46 pm    Post subject: Reply with quote

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 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