[ gae ] php framework

python dev_appserver.py --php_executable_path=/etc/alternatives/php-cgi project_dir_naja




NOTE : installaton of php is from appengine website

Make sure Python 2.7 is installed on your machine using the following command:

/usr/bin/env python -V

The output should look like this: Python 2.7.<number>. If Python 2.7 isn’t installed, install it now using the installation instructions for your Linux distribution.

Install version 5.4 of the php-cgi binary. PHP 5.4 is not packaged on most Linux distributions so it may be easiest to install it from source. On Debian-based Linux systems, you can use the following commands to install PHP 5.4 in such a way that it won’t affect any other versions of PHP that you may have installed:

sudo apt-get install gcc libmysqlclient-dev libxml2-dev
wget --trust-server-names http://us2.php.net/get/php-5.4.25.tar.bz2/from/us1.php.net/mirror
tar -xvf php-5.4.25.tar.bz2
cd php-5.4.25
./configure --prefix=$PWD/installdir --enable-bcmath --with-mysql
make install
cd -

Note: At the time of writing, php-cgi (the binary used by the PHP SDK) can be found in php-5.4.25/installdir/bin/php-cgi.

Install MySQL on your local machine. (You will need this to test your app locally.) On Debian-based Linux systems, you can use the following command:

sudo apt-get install mysql-server-5.5

You will be prompted to enter a password for the MySQL root user; make sure that you remember it.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s