-
Notifications
You must be signed in to change notification settings - Fork 0
9 Install CheetSheet
Pi Engine requires mod_rewrite to work on your environment. If you don't see after install at the right corner login/register links (or try to connect but you get a blank page with 404/403), you have a rewrite issue.
How to install on EasyPHP?
- if you make use of alias (to locate your DocumentRoot outside the standard path), you have to add in your
Pi www/.htaccess one additional line below the
RewriteEngine On
directive
# Enable runtime rewriting engine
RewriteEngine On
RewriteBase /Easyphp/www
- you can check the rewrite works on puting the below test within the www/ Pi directory
How to install on ZendServer?
- install Zend Server on custom mode, and add in install mysql DB
- don't forget to activate override in C:\Program Files (x86)\Zend\Apache2\conf\fhttpd.conf in your Directory directive :
AllowOverride All
- change also your Document root path, so to not loose your work after a windows install and ease backups
this need to be done in 2 directives
DocumentRoot "C:\Program Files (x86)\Zend\Apache2/htdocs
and just below in<Directory "C:\Program Files (x86)\Zend\Apache2/htdocs">
- restart your webserver from ZendServer console
NB : to be able to change httpd.conf under windows, open the file with your TextEditor opened with "Run as Administrator"
NB2 : install phpmyadmin front Zend console also on vhost (to not erase your document root). default account login/pass is root / blank. Don't forget to define the path value to phpmyadmin
, no need of a vhost. Create a base Pi to welcome Pi-Engine.
How to be sure Mode_Rewrite works?
You run the install but after trying to connect you get 404 errors. Most of the case it is because you have rewrite engine issue. Mod Rewrite is an Apache directive.
- check if Mod_Rewrite is installed on you server with a phpinfo() function within a php file
- if ok and you still have issues, check if your rewrite works really : we will use an easy rewritte rule within an .htaccess file
1-Create a first file check.html
<html>
<head>
<title>Check Start Page</title>
</head>
<body>
<p>
This is the starting check page
</p>
</body>
</html>
2-Create a second file named confirmed.html
<html>
<head>
<title>Pi Engine - Confirm Page</title>
</head>
<body>
<p>
Mod_rewrite works on your server.
</p>
</body>
</html>
3-Add in your .htaccess
RewriteRule ^check.html$ confirmed.html
- if the little test works, you can be sure rewrite mod works, and that your issue comes from a rewrite rule / path issue