Skip to content

Manual.Pi Installation

Marco edited this page May 28, 2014 · 2 revisions

1 Configuring Development Environment

Pi Engine assumes that you are running PHP 5.3 or higher with the Apache web server and MySQL, it also known as Win/Linux+Apache+MySQL+PHP.

  • Apache 2.2+
  • PHP 5.4+
  • MySQL

Meanwhile, a php_apc.dll extension is also required. We suggest you to install the WAMP integrated installation package if you use WIN OS. The WAMP and APC download page are showed as follows:

If your WAMP is running in WinXP system, we suggest you to download apc extension for WinXP.

When the WAMP is installed (we install it in the D disk of win7 system, and php version is 5.3.13), then the php_apc.dll extension should be copy to the D:\wamp\bin\php\php5.3.13\ext folder. Then you must check the 'php_apc' menu in Wampserver to enable APC.

php-ext1 php-ext2

Moreover, your Apache installation must have the mod_rewrite extension installed and configured.

apache

NOTE:

  • The version of APC must be as same as that of PHP, or else you will fail to configure APC extension.
  • The current available APC do not support 64 bit, you should download the WAMP with 32 bit.

2 Acquired Pi source code

Pi group use github to manage Pi source code, the URL of code repository is:

https://github.com/pi-engine/pi.git

Users can use SVN client software to checkout the code, therefore, we need to download a svn software to acquired it. The download URL is:

http://subversion.apache.org/download/#recommended-release

After installed subversion, right click button in where you like, and choose the check out button, a checkout dialog will pop up. after enter the repository URL, then the software will help you to download source code automatically.

Users can also visit the Pi page on github, and click the ZIP button to download the compressed codes, the URL is:

https://github.com/pi-engine/pi

3 Installing Pi

Put the trunk folder of your downloaded package into the wamp/www directory after download it. You can rename the folder to which you like (for example: pi), and it will be the project name. Before install Pi you should create a database (for example: pi) and configure its permission. Then you can start to install Pi.

The Pi installation page can be accessed using localhost/pi/www/setup/, the page is like this:

setup1

If you've configure development environment correctly, you will see a green check mark after 'Server setting detection' string. Then you should select your familiar language, and the system will translate English to the language you choose. After configuration you can click 'Next' button and you'll see the following page:

setup2

In this step, Pi allows you to configure some common path and system cache mode.

setup2-1

In the Advanced settings section, the url of asset, upload and static folder can be set to second-level domain, if you do this, you need to put these folder into the root directory of the related second-level domain.

Make sure path settings are right, after choose a cache mode, there will have a green mark after 'Persistent data container'. Then you can click 'Next' to continue.

setup3

Connection information of database is configured in this step, the database name is the database you create previous.

setup4

This step allowed you to create your administrator account to log in Pi's Admin Area. If you have installed successful, you'll see the page like this.

Now you can click 'your site' or browser localhost/pi/www to visit Pi. You will start to enjoy yourselves with Pi Engine.

Clone this wiki locally