This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » Installation and setup » Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem
Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem [message #81948] Thu, 16 July 2009 03:05 Go to next message
menkes  is currently offline menkes
Messages: 5
Registered: July 2009
Location: United States
Junior Member
After much time and hair pulling, got permissions fixed and could display http://localhost/sf_sandbox/web/frontend_dev.php.

However, http://localhost/sf_sandbox/web/frontend_dev.php/post and http://localhost/sf_sandbox/web/index.php/post return HTTP 404 Page Not Found.

The apps\frontend\modules\post directory exists and contains apps\frontend\modules\post\actions and apps\frontend\modules\post\templates directories, no files.

apps\frontend\modules\post\actions contains actions.class.php.

apps\frontend\modules\post\templates holds 5 files.

I'm stuck. I cannot follow how frontend_dev and index reference post or comment (but I am exhausted).

Any help would be appreciated.

- Scott
Re: Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem [message #81959 is a reply to message #81948 ] Thu, 16 July 2009 10:41 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Is your 404 an Apache error (black html text on white) or a symfony error (pretty graphical error page)?

If it is the former then your requests are not reaching symfony. If it is the latter then there may be a problem with your routing. Let us know which!


Remember Palestine
Re: Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem [message #81960 is a reply to message #81948 ] Thu, 16 July 2009 10:41 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Check also that apps\frontend\modules\post\templates\postSuccess.php exists.


Remember Palestine
Re: Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem [message #81999 is a reply to message #81960 ] Thu, 16 July 2009 16:18 Go to previous messageGo to next message
menkes  is currently offline menkes
Messages: 5
Registered: July 2009
Location: United States
Junior Member
The 404 error is from IIS:

"The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable."

The file you mentioned, apps\frontend\modules\post\templates\postSuccess.php, is not present.

In that directory are the following:
_form.php
editSuccess.php
indexSuccess.php
newSuccess.php
showSuccess.php
Re: Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem [message #82011 is a reply to message #81999 ] Thu, 16 July 2009 18:33 Go to previous messageGo to next message
menkes  is currently offline menkes
Messages: 5
Registered: July 2009
Location: United States
Junior Member
I've been doing some research into this and am starting to feel the problem is URL rewriting. The 'basic' tutorials do not really address this, but there are some articles on symfony.com and elsewhere that do.

As mentioned I am using IIS 5.1. I have PHP 5.3 installed as FastCGI. At this point it is looking like a no win situation.

- IIS 7 supports URL rewriting, but I cannot upgrade to that on this development box.
- URL rewrite tools from other vendors are ISAPI based

Anyways, I will continue to dig around. If anyone reading this has some thoughts please post them.
Re: Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem [message #82013 is a reply to message #81948 ] Thu, 16 July 2009 19:17 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
Yes, almost certainly rewriting. However I don't use IIS so can't offer any personal experience. Other than - sorry to say it! - switch to Apache if you can. However I have heard that people have had success on IIS...


Remember Palestine
Re: Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem [message #82025 is a reply to message #82013 ] Fri, 17 July 2009 01:56 Go to previous messageGo to next message
menkes  is currently offline menkes
Messages: 5
Registered: July 2009
Location: United States
Junior Member
It would seem trying to work with IIS 5.1 is more hassle than it's worth.

If I decide to adopt Symfony, the production env will be running II6 or IIS7 and there seems to be sufficient documentation for running symfony on those web servers.

For my evaluation I elected to go with Apache2.2 for windoze. Uninstalling, installing new software, configuring, and launching first Symfony app took 2.5 hours...so I am encouraged with that.

Regards,

Scott
Re: Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem [message #82035 is a reply to message #81948 ] Fri, 17 July 2009 10:24 Go to previous messageGo to next message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
If you were to be stuck on IIS, I believe it can be made to work. I was quite impressed to hear that Zend and Microsoft recently released a FastCGI module for IIS so that PHP can run more effectively (I guess that MS are focussing on getting the PHP stack onto their OS, rather than not catering for it and risking losing server customers to Linux).

However I think the rewriting options are not as comprehensive on IIS. There is a free version of ISAPIRewrite, which I think is a start - and there may be others that are worth evaluating.

That all said, Apache on Windows is pretty good these days - although I intend for my apps to move to Linux, we host on PHP 5.2.4, Apache 2.2.4, fcgid and eAccelerator on Windows Server 2003.

[Updated on: Fri, 17 July 2009 10:24]


Remember Palestine
Re: Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem [message #82078 is a reply to message #82035 ] Fri, 17 July 2009 21:49 Go to previous messageGo to next message
menkes  is currently offline menkes
Messages: 5
Registered: July 2009
Location: United States
Junior Member
I moved one of our servers to FastCGI on IIS6 last year and it was a great move (using PHP 5.2 and xCache). I now need to upgrade another server and I am trying to decide how to proceed. I have no choice on OS - Win 2003 Server - but the rest is up to me.

Since I'll be reworking the existing code, I was looking for a framework and a new IDE. I am liking NetBeans for the IDE.

Symfony looks promising for the framework, but getting a first app running is proving to be frustrating. I code - I don't administer. Each project I create I have to manually move symfony\data\web\sf to where it will work. And the Ajax example -> cannot get it to find the js files, even though I can see them. I'm clearly not getting the setup correct.

After the weekend I'll give it another try, but if it doesn't click I'll have to move on.
Re: Win XP, PHP 5.3, IIS 5.1, Sym 1.2.8 - My first project problem [message #82190 is a reply to message #81948 ] Mon, 20 July 2009 16:35 Go to previous message
halfer  is currently offline halfer
Messages: 9535
Registered: January 2006
Location: West Midlands, UK
Faithful Member
I think all PHP frameworks will be a bit more hamstrung on IIS, to be honest; rewriting is just not as available on this platform as it is with mod_rewrite on Apache. Have a look at the free and paid versions of (I think) ISAPIRewrite to see if that fulfills your requirements.

Your last couple of posts don't seem to describe concrete probs. If you can give a good idea of what's not working, perhaps someone here can assist you.


Remember Palestine
Previous Topic:help on installing symfony-1.2.7
Next Topic:I'm new to symfony and i need help with some basics
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software