Click to See Complete Forum and Search --> : PHP on PWS


Anon
05-23-2002, 10:50 PM
Hi,

I have been using PHP with Apache, but I want to try using PWS. However, when I point my browser to say "http://localhost/test.php", a download dialog pops up, asking me if I want to download the file. I want to execute it instead. I did go the the advanced properties, select Home in the list, click the button labeled "Edit Properties...", and I checked the checkbox labeled "Execute". What do I do to make PHP scripts execute?

Also, since you're reading this, do you know how to change the name of the PWS server's homepage from "localhost" to something else?

THANKS!

Anon
05-24-2002, 12:42 AM
go through the install proccess again, carefully. then restart the machine and test again. if this fails then please post the steps you took.

Anon
05-24-2002, 01:15 AM
Nope, failed. There must be some kind of startup setting that would tell it to use the php.exe program to interpret PHP.

STEPS I TOOK:

- Run setup.exe
- ok for license agreement
- I selected all of the components except the Frontpage extensions and something else, but I retried it with them and it still did not work.
- Restart the computer.

Anon
05-24-2002, 02:18 AM
Nevermind! It works now!

I had to reinstall PHP and set it to use PWS. Then I edited some variables in the php.ini file.

Thanks!

Anon
06-12-2002, 11:17 PM
Happy you! I've done the same several times and still can't get PHP to work on my Win98/PWS machine...
Here are the steps followed:
1. Downloaded PHP 4.2.1 for Windows
2. Unzipped to C:\PHP
3. Edited and copied PHP.INI to C:\Windows
4. PWS works fine at http://localhost
5. Added virtual folder C:\PHP to PWS and set execute privileges
6. Rebooted computer
7. Wrote a simple PHP file: <?php echo "This is a test"; ?>
8. Opened browser and pointed to http://localhost/test.htm

The page displays correctly but the string THIS IS A TEST never
showed.

Can anyone point me to what I did wrong?


muska wrote:
-------------------------------
Nevermind! It works now!

I had to reinstall PHP and set it to use PWS. Then I edited some variables in the php.ini file.

Thanks!