View previous topic :: View next topic |
Author |
Message |
gbarnett -
Joined: 04 Jan 2005 Posts: 5
|
Posted: Sun Jan 09, 2005 5:53 pm Post subject: PHP 5, Abyss, Windows 98 |
|
|
I am trying to use PHP, Abyss and Mysql.
Managed to acquire two PC's, one XP the other 98.
When I install everything on XP, using the manual configuration instructions all works perfectly.
When I install on 98, even though I have the same settings, file structure and ini and test file I always get a HTTP 500 error. Works perfectlt for HTML files, but not for php files.
Anyone met this and overcome it. |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun Jan 09, 2005 8:18 pm Post subject: |
|
|
You need to make sure your using php-cgi.exe as the PHP interpreter then
make sure you have MDAC installed so PHP & MySQL can properly work.
Note: MDAC = Microsoft Data Access Components |
|
Back to top |
|
 |
admin Site Admin
Joined: 03 Mar 2002 Posts: 1332
|
Posted: Sun Jan 09, 2005 8:23 pm Post subject: Re: PHP 5, Abyss, Windows 98 |
|
|
Are you using php.exe as interpreter? With PHP5 you should declare php-cgi.exe as the interpreter. If this doesn't help the case, please send your abyss.conf and your php.ini files to support@aprelium.com (with a little explanation of the problem so that the support guys know what the files are for.) |
|
Back to top |
|
 |
gbarnett -
Joined: 04 Jan 2005 Posts: 5
|
Posted: Mon Jan 10, 2005 9:29 pm Post subject: Re: PHP 5 and Windows 98 |
|
|
Hi guys,
Thanks for the replies.
I am definitely using php-cgi.exe and have MDAC 2.8 installed.
Aprelium support suggested running the php-cgi.exe on a php file via a dos window and it identifies a error in php.ini line 407. Surprised this does not happen on Windows XP.
I am now looking into this error to see if I am any wiser. |
|
Back to top |
|
 |
admin Site Admin
Joined: 03 Mar 2002 Posts: 1332
|
Posted: Mon Jan 10, 2005 11:15 pm Post subject: Re: PHP 5 and Windows 98 |
|
|
gbarnett,
Line 407 of your PHP file seems to be:
Code: | error_log = "c:\php\log\php5_error.log |
Add a " symbol to chave a correct syntax.
Check also that c:\php\log\ exists. |
|
Back to top |
|
 |
gbarnett -
Joined: 04 Jan 2005 Posts: 5
|
Posted: Tue Jan 11, 2005 8:47 pm Post subject: PHP 5, Abyss and Windows 98 |
|
|
Hi,
when I ran the php-cgi.exe from an MS-DOS prompt and called my phpinfo.php file I initially got a message box indicating php parse error on line 407. As the above reply indicates there was a missing " at the end of the error log.
On fixing this error and re-running the command, in mS-DOS prompt, I get
Status 404
Content-Tyoe: text/html
x-Powered-By: php/5.0.3
No input file specified.
Any help? |
|
Back to top |
|
 |
gbarnett -
Joined: 04 Jan 2005 Posts: 5
|
Posted: Tue Jan 11, 2005 8:49 pm Post subject: PHP 5, Abyss and Windows 98 |
|
|
Just to let you know the content of the .php file is
<html>
<head>
<title>
Test PHP Install
</title>
</head>
<body>
<p>
<?php echo('<center><b>Test PHP File</b></center>'); ?>
</body>
</html> |
|
Back to top |
|
 |
admin Site Admin
Joined: 03 Mar 2002 Posts: 1332
|
Posted: Wed Jan 12, 2005 1:01 pm Post subject: Re: PHP 5, Abyss and Windows 98 |
|
|
You should ignore this error on the DOS prompt. Try now using PHP scripts directly from the server. Does they work as expected? |
|
Back to top |
|
 |
gbarnett -
Joined: 04 Jan 2005 Posts: 5
|
Posted: Wed Jan 12, 2005 8:22 pm Post subject: PHP 5, Abyss & Windows 98 |
|
|
All sorted.
Basic error on my part. When I read the php.ini file I must have deleted the " character at the end of the error file definition.
Amending the file has solved the problem and all works perfectly.
Thanks for the help. |
|
Back to top |
|
 |
admin Site Admin
Joined: 03 Mar 2002 Posts: 1332
|
Posted: Wed Jan 12, 2005 8:58 pm Post subject: Re: PHP 5, Abyss & Windows 98 |
|
|
gbarnett,
You're welcome :-) |
|
Back to top |
|
 |
|