Problem configuring Php with Pow (Plain Old Web Server)

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
MerryMurray
Forum Newbie
Posts: 4
Joined: Fri Jul 18, 2008 4:44 pm

Problem configuring Php with Pow (Plain Old Web Server)

Post by MerryMurray »

Hi
Has anyone setup Php5 with POW? I'm new to both POW and Php.
How do I set up the .ini file to work with POW ( using cgi I suppose)

Thanks in advance

Murray
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Problem configuring Php with Pow (Plain Old Web Server)

Post by RobertGonzalez »

Is there a manual for POW somewhere? I would guess you would need to tell POW how to handle certain file extensions so that they run through the PHP engine.
MerryMurray
Forum Newbie
Posts: 4
Joined: Fri Jul 18, 2008 4:44 pm

Re: Problem configuring Php with Pow (Plain Old Web Server)

Post by MerryMurray »

Thanks for the response.

I've looked through online docs for Pow and have set php mime to the specified value text/html
POW is a Firefox extension (addon) that sets up a server at localhost:6670.

When I run the server it finds the http://localhost:6670/test.php file I set up but does not appear to execute it.
The web page displayed is blank.
I presume I have to set php.ini up but do not know how to do it for POW.

Thanks again
Murray
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Problem configuring Php with Pow (Plain Old Web Server)

Post by RobertGonzalez »

Do you have an objection to installing Apache locally?
MerryMurray
Forum Newbie
Posts: 4
Joined: Fri Jul 18, 2008 4:44 pm

Re: Problem configuring Php with Pow (Plain Old Web Server)

Post by MerryMurray »

Thanks again.

Yes. I'm just interested in using Pow from within Firefox.
I need to learn how to configure these things. I'm going through
the php.ini file to see if making changes there will get it to work.

Murray
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Problem configuring Php with Pow (Plain Old Web Server)

Post by RobertGonzalez »

Nothing in PHP.ini is going to help with this. It needs to be a directive issued to the server to handle php files by passing them through the PHP executable
MerryMurray
Forum Newbie
Posts: 4
Joined: Fri Jul 18, 2008 4:44 pm

Re: Problem configuring Php with Pow (Plain Old Web Server)

Post by MerryMurray »

You are right. Nothing I change in php.ini is detected.

Error log shows:

C:\Apps\Dev\Web\Php\Php\php-cgi.exe E:\Data\Data\Firefox\Profiles\Firefox3/pow/htdocs/murray E:\Data\Data\Firefox\Profiles\Firefox3 test.php
2008-07-19 09:44:51 127.0.0.1 GET 200 OK /pow/htdocs/murray/test.php

Guess I'll give it a break for awhile. It's frustrating. Probably missing one simple operation somewhere.
Could be a Windows XP issue. The developer uses a linux box and does not have access to Windows.

Thanks again

Murray
Post Reply