Forum Moderators: coopster

Message Too Old, No Replies

Need help running PHP with PWS

IE 'Page cannot be displayed error' for *.php files

         

mlkarie

8:18 am on Aug 2, 2003 (gmt 0)

10+ Year Member



Have checked out the PHP documentation, Webmonkey's tutorial, and I'm still stuck. Please help...

Windows 98, PWS running, displaying *.asp works fine. I downloaded and installed the 1 MB Windows installer version of PHP. (Also downloaded and installed MySQL, and managed to start MySQL and run a query or two.)

Wrote the tutorial's test.php file, and placed it in c:\Inetpub\wwwroot. PWS is definitely running, but when I try to display [localhost...] in Internet Explorer, it gives a "Page cannot be displayed" error. This is with Read/Execute/Scripts checked.

If only Read and Scripts are checked, then I get the 403 Access Forbidden Error. Does this error come from PWS or from PHP?

How do I know that PHP is actually running, or that it's configured to start at bootup time? (Seeing that the Windows installer file did all the installation, and nothing was done by myself?)

Should I give up on PWS and install Apache on my Win98 box? Have noticed on the Web that others have had similar problems.

hakre

1:26 pm on Aug 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



welcome to webmasterworld [webmasterworld.com], mlkarie!

How do I know that PHP is actually running, or that it's configured to start at bootup time? (Seeing that the Windows installer file did all the installation, and nothing was done by myself?)

with pws php.exe runs as cgi, that means it does not have to run when your system starts. php.exe is executed each time a .php file is requested on your webserver (pws).

you can check your valid configuration by double-clicking on an existing .php file. if php.exe starts and starts executing the file then you did fine.

i think for you as you're just starting with php, pws might do the job for the first 2 weeks, so you can later on try to install apache if you learned more about webserver and what they do (and can do).

vincevincevince

5:37 pm on Aug 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



unless there's a reason not to - it's often convenient to install one of the packages that gives you apache, php, mysql all ready to go out of the box.

try foxserv (google for it) - i use it here fine.

mlkarie

4:13 pm on Aug 4, 2003 (gmt 0)

10+ Year Member



Thanx a stack - will only have a change to try this tomorrow, and will report back after that.

mlkarie

5:18 pm on Aug 7, 2003 (gmt 0)

10+ Year Member



It works! It works! :-) ;-)

There's no one near me that would understand how it feels when something works, so I'll have to tell you guys about it.

My PHP installation was done via the Windows self-installer. Anyway, my Internet cries for help indicated "follow the install.txt", so I did the part which tells you to create new keys in the Registry:

phpfile - shell - open - command - path to php, etc

and it works.

Gee, wow, now I can get on with testing my PHP scripts.

Thanks a stack for the help. How did we ever live without the Net?