Hey Cakes..!
Lets get started with CakePHP installation :
1. Install the required packages : sudo apt-get install apache2 mysql-server php5 php5-mysql
2. In case u encounter any Lock Error, make sure no other installation is happening and close Synaptic Package Manager if open. Even if the problem exists, execute: sudo killall apt-get
3. Enable Mod-rewrite: sudo a2enmod rewrite
4. Download the latest stable version of cake from http://cakephp.org/ and save it into your Ubutu machine.
5. Extract the downloaded file with this command: tar xvf downloaded_file.tar.gz
6. Rename the extracted folder with your project name(in my case, project name is cakephp) and move it to the document root (most of the times it will be /var/www/)
7. Then give writable permission to tmp folder: sudo chmod -R 777 cakephp/app/tmp
8. Open file /etc/apache2/sites-enabled/000-default and change AllowOverride None to AllowOverride All
Command to Open: sudo vim.tiny /etc/apache2/sites-enabled/000-default
Change
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
to
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
9. Create .htaccess file inside the project directory(sudo vim.tiny /var/www/cakephp/.htaccess) and add these contents:
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
10. Restart Apache: sudo /etc/init.d/apache2 restart
Lets get started with CakePHP installation :
1. Install the required packages : sudo apt-get install apache2 mysql-server php5 php5-mysql
2. In case u encounter any Lock Error, make sure no other installation is happening and close Synaptic Package Manager if open. Even if the problem exists, execute: sudo killall apt-get
3. Enable Mod-rewrite: sudo a2enmod rewrite
4. Download the latest stable version of cake from http://cakephp.org/ and save it into your Ubutu machine.
5. Extract the downloaded file with this command: tar xvf downloaded_file.tar.gz
6. Rename the extracted folder with your project name(in my case, project name is cakephp) and move it to the document root (most of the times it will be /var/www/)
7. Then give writable permission to tmp folder: sudo chmod -R 777 cakephp/app/tmp
8. Open file /etc/apache2/sites-enabled/000-default and change AllowOverride None to AllowOverride All
Command to Open: sudo vim.tiny /etc/apache2/sites-enabled/000-default
Change
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
to
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
9. Create .htaccess file inside the project directory(sudo vim.tiny /var/www/cakephp/.htaccess) and add these contents:
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
10. Restart Apache: sudo /etc/init.d/apache2 restart
CakePHP installation is complete. Open http://localhost/cakephp from you favorite web browser and Enjoy the Cake:-)
ಅರ್ಜುನ್ ಅರಸ್.
ಅರ್ಜುನ್ ಅರಸ್.
No comments:
Post a Comment