By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,883 Members | 2,037 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,883 IT Pros & Developers. It's quick & easy.

Win98 + Apache 1.3.up + PHP 4.3.up something wrong

P: n/a
Hi

I been first times setup. So Who have experience the Win98 + Apache + php
(not run PWS or IIS)

I begin download and installed the Apache. I test the run is working on
browser (http://localhost) show the apache page.

But Apache Console Running under the DOS Window say :-
=====================================
[Thu Nov 20 15:13:49 2003] [warn] (2)No such file or
directory: exec() may not be safe
Apache/1.3.29 (Win32) running...
=====================================

I expect that it.

So, I shall the php installer from download. I try changed the httpd.conf
under the Apache directory. Restart Apaches Console.

I testing the (http://localhost/test.php), show error page say "HTTP -
Error 400 Bad Request" also "HTTP - Error 404 Not found"

I have tried times.... But unknown....
Apaches Directory - c:\apache\apaches\*.*
PHP Directory - c:\apache\apaches\phpwin32\*.*
httd.conf -: (was add the line)
ScriptAlias /php/ "C:/Apache/Apache/phpwin32/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php.exe"
I didn't change php.ini yet

I copy and paste the "php4ts.dll" under to C:\window\system from PHP
What I have done that above ?


Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
DrWizard wrote:
Hi

I been first times setup. So Who have experience the Win98 + Apache + php
(not run PWS or IIS)

I begin download and installed the Apache. I test the run is working on
browser (http://localhost) show the apache page.

But Apache Console Running under the DOS Window say :-
=====================================
[Thu Nov 20 15:13:49 2003] [warn] (2)No such file or
directory: exec() may not be safe
Apache/1.3.29 (Win32) running...
=====================================

I expect that it.

So, I shall the php installer from download. I try changed the
httpd.conf
under the Apache directory. Restart Apaches Console.

I testing the (http://localhost/test.php), show error page say "HTTP -
Error 400 Bad Request" also "HTTP - Error 404 Not found"

I have tried times.... But unknown....
Apaches Directory - c:\apache\apaches\*.*
PHP Directory - c:\apache\apaches\phpwin32\*.*
httd.conf -: (was add the line)
ScriptAlias /php/ "C:/Apache/Apache/phpwin32/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php.exe"
I didn't change php.ini yet

I copy and paste the "php4ts.dll" under to C:\window\system from PHP
What I have done that above ?


Basic question:
Did you create a "test.php"?
Jul 17 '05 #2

P: n/a
> Basic question:
Did you create a "test.php"?


Oh Well, I download from PHP Website some test. I have tested is not
working
Jul 17 '05 #3

P: n/a
DrWizard wrote:
Basic question:
Did you create a "test.php"?

Oh Well, I download from PHP Website some test. I have tested is not
working


now for some answers from an ol' pro at getting this stuff set up. first
of all, you're using the php cgi executable. that's generally a bad
idea, use the installation help file and SET IT UP AS A MODULE. that
will get your test.php working. second, that exec() thing, i'm having
the same problem on all the '98 machines i install apache on, it works
fine on the xp machine i'm on now. i'd like an answer too, cause it bugs
the crap outta me every time i start up apache!

Jul 17 '05 #4

P: n/a
Anonymous wrote:
DrWizard wrote:
Basic question:
Did you create a "test.php"?


Oh Well, I download from PHP Website some test. I have tested is not
working


now for some answers from an ol' pro at getting this stuff set up. first
of all, you're using the php cgi executable. that's generally a bad
idea, use the installation help file and SET IT UP AS A MODULE. that
will get your test.php working. second, that exec() thing, i'm having
the same problem on all the '98 machines i install apache on, it works
fine on the xp machine i'm on now. i'd like an answer too, cause it bugs
the crap outta me every time i start up apache!


and also, if you delete all that stuff you added for php in httpd.conf,
here's the config you should have where C:\ or C:/PHP is where php is
installed:

LoadModule php4_module C:/PHP/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Jul 17 '05 #5

P: n/a
also, view your test.php file in a text editor and make sure the code
is as expected. i had the same problem and found the actual
downloaded code was different than advertised. when i put in the
expected code, it worked fine.

Anonymous <an*******@isp.com> wrote in message news:<y0mAb.314423$9E1.1567955@attbi_s52>...
Anonymous wrote:
DrWizard wrote:
Basic question:
Did you create a "test.php"?

Oh Well, I download from PHP Website some test. I have tested is not
working


now for some answers from an ol' pro at getting this stuff set up. first
of all, you're using the php cgi executable. that's generally a bad
idea, use the installation help file and SET IT UP AS A MODULE. that
will get your test.php working. second, that exec() thing, i'm having
the same problem on all the '98 machines i install apache on, it works
fine on the xp machine i'm on now. i'd like an answer too, cause it bugs
the crap outta me every time i start up apache!


and also, if you delete all that stuff you added for php in httpd.conf,
here's the config you should have where C:\ or C:/PHP is where php is
installed:

LoadModule php4_module C:/PHP/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.