pi-engine / pi

Multi-tenant application development engine for cloud ready SaaS platform.
http://www.piengine.org
202 stars 115 forks source link

Pi run on OS Win : KO > can not run pi on ZendServer , EasyPHP, etc... : path issue #1140

Closed Marc-pi closed 10 years ago

Marc-pi commented 10 years ago

I'm trying to install PI locally :

I tested on both :

Looking at logs in Zend Server, paths/routes are not recognized => i guess it is due to the way how Apache handles the Paths on Win O/S (ending slash)

=> i did not test with Wamp, but i guess it is the same, it deals with O/S.

voltan commented 10 years ago

On windows , you need run Apache mod_rewrite manual if is not running , I see it on wamp server

Marc-pi commented 10 years ago

mod_rewrite : it is enabled in httpd.conf and running (i can see it in phpinfo())

Marc-pi commented 10 years ago

hum, i made a little script and rewrite fails even if the mod_rewrite is enabled, rrr windows

Marc-pi commented 10 years ago

works without aliases in the original Document Root. alias seems to be the culprit, i'll find how to takle the httpd.conf

Marc-pi commented 10 years ago

In EasyPHP In case of alias , in the Pi www/.htaccess, need to add an Apache directive below the RewriteEngine activation

RewriteEngine On
RewriteBase /youraliasname/www

the second line is important, works now.

Will test on ZendServer, should be the same since it is Apache directive

Marc-pi commented 10 years ago

ok, i've fixed it now => please find here how to on EasyPhp and Zend Server https://github.com/Marc-pi/Pi-HowTo/wiki/9---Install-CheetSheet i strongly advise to make use of the new Zend Server 7, Zray is an outstanding feature.