Microsoft Personal web server/PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mrrobotto
Forum Commoner
Posts: 40
Joined: Thu Sep 26, 2002 9:30 pm
Contact:

Microsoft Personal web server/PHP

Post by mrrobotto »

:cry: Win98SE, I just installed personal web server on my computer from the cd and corrected the error messages that are received when installing by reinstalling it in accordance with Microsoft’s instructions by downloading the Mtssetup.exe and extracting the mtssetup.dll file then reinstalling the personal web server from the folder that I created. The installation went fine and the error messages and the unsuccessful install of the transaction server was corrected. I am trying to get the pws to work with php and haven’t had any luck I have followed all the procedure's I can find from php.net and a search on google and I still haven’t been able to get it to work with php. I placed the web pages along with the php files in the root directory of pws and it pulls up the html page fine but when I try to pull in the php page I get a download dialog box and will not process the php code. I also tried creating a virtual directory in the advanced section of pws by using c:\php where it resides on the c drive and still no luck. If anyone has any suggestions on how to get php to work with pws it will be greatly appreciated. TIA
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

PWS seems to cause no end of problems for people trying to use it with PHP. It may be worth your while (and your sanity) to download and install Apache 1.3. Do not try and use Apache 2 as this will cause you twice as many headaches as PWS has.

Mac
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

I used Apache2 and I hardly had any problems... 8)
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Takuma wrote:I used Apache2 and I hardly had any problems... 8)
That really is wonderful for you but someone who's never set up Apache before and has been having lots of trouble with PWS is probably better off with 1.3 or are you going to go round and install 2 for them?

Mac
f1nutter
Forum Contributor
Posts: 125
Joined: Wed Jun 05, 2002 12:08 pm
Location: London

Post by f1nutter »

I use PWS/PHP on Win98 with no problem.

First, get PWS working before you add PHP. Only install the minimum amount you need. ie. choose Advanced, and untick everything that you can.

PWS has built in processing for ASP and you can try a simple "Hello World" script first.

Code: Select all

<html>
<body>

<% Response.Write("Hello World") %>

</body>
</html>
The visual directory alias is very easy to use (Server Manager -> Advanced). Set-up a Web folder in My Documents, and use this as the root. Then there is no publishing to be done, just change you scripts and refresh your browser.

Then you can add PHP. Use the installer as this sets everything up for you. And away you go!
Post Reply