View previous topic :: View next topic |
Author |
Message |
infinia -
Joined: 15 Nov 2003 Posts: 3
|
Posted: Sat Nov 15, 2003 8:28 am Post subject: Trying to get PHP to run. |
|
|
Hello, I have downloaded and installed the web server, it works great with basic HTML. I downloaded and installed the windows installer version of PHP (only a little over a megabyte, seems small?) anyway, when I download a php file from my htdocs folder I get a blank screen. this is the file I am using:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo "<p>Hello World</p>"; ?>
</body>
</html>
seems simple enough, but the help file says if I am getting a blank screen, but can right click and view source then it means the the php software did not act upon the file. I am totally new to this stuff so am not sure what to do next. I also downloaded the zip file of PHP and had a look at that folder and it is over 6 megabytes. Do I need to place .dll's or something somewhere? :?: |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sat Nov 15, 2003 10:01 am Post subject: |
|
|
Free PHP installation movie! I created this tutorial movie just for you
Edit: Please visit http://abyssunderground.co.uk for movies
Last edited by TRUSTAbyss on Thu Mar 24, 2005 9:15 am; edited 1 time in total |
|
Back to top |
|
 |
infinia -
Joined: 15 Nov 2003 Posts: 3
|
Posted: Sat Nov 15, 2003 6:09 pm Post subject: |
|
|
Hey thanks for the movie! When I installed PHP it went in just like the movie did, the only exception is that it installed in the default directory of c:\php instead of program files\php I would not think that would make much differance since I pointed the web server to the proper directory. But then again, I am very new to this stuff 8O |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sat Nov 15, 2003 7:33 pm Post subject: |
|
|
Glad I can help ! :D |
|
Back to top |
|
 |
infinia -
Joined: 15 Nov 2003 Posts: 3
|
Posted: Sun Nov 16, 2003 4:53 am Post subject: |
|
|
Ok, I now have PHP installed and it seems to be working just fine, both the HTML and PHP pages on the server will load on my computers at home, I have not gone anywhere else to see if they will work, but I think they will. Now my question is, how hard is it to install GD for images since it was not included in the windows installer? I guess they call it an extension module or something? My site is at: http://n7zmr.no-ip.com:90 It should be on all the time since I have cable modem here. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
Hencules -
Joined: 28 Nov 2003 Posts: 5
|
Posted: Fri Nov 28, 2003 4:56 am Post subject: |
|
|
I have downloaded and installed AWS(Abyss Web Server) exactly as the instructions said, I have downloaded and installed PHP4.3.4 exactly as the instructions said(including that installation movie) and I have configured AWS exactly as the instructions said but I STILL can't get PHP to work! I have WinME if that matters...PLEASE HELP! I'm going nuts here...! I have done nothing wrong and still... :cry: |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Nov 28, 2003 5:57 am Post subject: |
|
|
You probably missed a step ! , make sure everything is accurate. 8) |
|
Back to top |
|
 |
Hencules -
Joined: 28 Nov 2003 Posts: 5
|
Posted: Fri Nov 28, 2003 1:19 pm Post subject: |
|
|
TRUSTpunk wrote: | You probably missed a step ! , make sure everything is accurate. 8) |
But I HAVE checked everything - several times - already. What should I do? |
|
Back to top |
|
 |
Trix -
Joined: 03 Apr 2003 Posts: 33
|
Posted: Fri Nov 28, 2003 6:25 pm Post subject: |
|
|
in the cgi parameters r u shure that uve got php NOT .php that was my error any i was rippin my hair out for a couple of weeks because if one flippin' dot! |
|
Back to top |
|
 |
Hencules -
Joined: 28 Nov 2003 Posts: 5
|
Posted: Fri Nov 28, 2003 7:25 pm Post subject: |
|
|
Trix wrote: | in the cgi parameters r u shure that uve got php NOT .php that was my error any i was rippin my hair out for a couple of weeks because if one flippin' dot! |
Nope, it's not that either. What else can there be? |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Fri Nov 28, 2003 8:07 pm Post subject: |
|
|
Hencules wrote: | I have downloaded and installed AWS(Abyss Web Server) exactly as the instructions said, I have downloaded and installed PHP4.3.4 exactly as the instructions said(including that installation movie) and I have configured AWS exactly as the instructions said but I STILL can't get PHP to work! I have WinME if that matters...PLEASE HELP! I'm going nuts here...! I have done nothing wrong and still... :cry: | What exactly do you mean "can't get PHP to work"?
Is anything showing on your screen? Are you getting errors? If so, what are they?
Are you naming the files correctly (i.e, *.php)?
More info will help us to help you.
infinia wrote: | Now my question is, how hard is it to install GD for images since it was not included in the windows installer? I guess they call it an extension module or something? | Just download the zip package from the PHP website and take out the php_gd2.dll from it.
Put it in C:\PHP root folder and goto your php.ini file.
Look for ;extension=php_gd2.dll and delete the ";" symbol and save file.
BAM!!! You're done. |
|
Back to top |
|
 |
Hencules -
Joined: 28 Nov 2003 Posts: 5
|
Posted: Sat Nov 29, 2003 7:48 pm Post subject: |
|
|
Moxxnixx wrote: | What exactly do you mean "can't get PHP to work"?
Is anything showing on your screen? Are you getting errors? If so, what are they?
Are you naming the files correctly (i.e, *.php)?
More info will help us to help you. |
I'm getting a white blank screen. I have named the file index.php and this is the code it contains:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo "<p>Hello World</p>"; ?>
</body>
</html> |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sat Nov 29, 2003 8:39 pm Post subject: |
|
|
Ok, go back to that white screen and view source code.
What does it show? Is it the same as above?
If it is, go back to your cgi interpreters (in console) and make sure it's pointing to where you installed PHP.
If you installed it with the default settings, it will be C:\PHP\php.exe.
The instructions on this site are showing C:\Program Files\PHP\php.exe
and I know alot of people like to cut & paste the latter, thinking it's the default.
If that don't work, try uninstalling & reinstalling it. |
|
Back to top |
|
 |
Hencules -
Joined: 28 Nov 2003 Posts: 5
|
Posted: Sat Nov 29, 2003 10:32 pm Post subject: |
|
|
Moxxnixx wrote: | Ok, go back to that white screen and view source code.
What does it show? Is it the same as above?
If it is, go back to your cgi interpreters (in console) and make sure it's pointing to where you installed PHP.
If you installed it with the default settings, it will be C:\PHP\php.exe.
The instructions on this site are showing C:\Program Files\PHP\php.exe
and I know alot of people like to cut & paste the latter, thinking it's the default.
If that don't work, try uninstalling & reinstalling it. |
Hehe, I took a look at my cgi interpreters and for some reason I had both C:\PHP\php.exe AND C:\Program Files\PHP\php.exe so that apparently was the problem. Thanks for all your help, it is much appreciated. |
|
Back to top |
|
 |
tiggerific -
Joined: 22 Jun 2003 Posts: 1
|
Posted: Mon Dec 01, 2003 4:20 am Post subject: |
|
|
I'm unable to get PHP running either. I have double-checked and triple-checked everything. I'm running ABYSS and PHP on a Windows 2000 system. I had it up and running OK on XP a while ago and remember the problem with the Program Files path so this was the first thing I checked, but no luck.
I don't have multiple interpreter entries, everything is exactly "by the book". My php is installed in c:\program files\php and the interpreter points to c:\program files\php\php.exe.
I'm getting the same problem as the above guys - the php is not being processed, i.e. it the php code still appears in the source for the page. Are there any known issues or compatibilities on Win2000? If not, is there someplace else I could check for what might be wrong?
I'm using Abyss Web Server version X1, and PHP 4.3.0 (which is the configuration I was able to get running on XP).
Any help would be gladly appreciated.
Robyn. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Tue Dec 02, 2003 4:01 am Post subject: |
|
|
tiggerific,
Please send your abyss.conf file to support@aprelium.com so that we can check your configuration. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
|