Install Cheesecake Photoblog on Ubuntu 10.04
Cheesecake Photoblog is a nice photo gallery for CakePHP. To install on Ubuntu, follow these steps:
1. Install LAMP
2. Install FireBug
3. Install FirePHP (Note: 1.0 release will be called FireConsole)
4. Download Cheesecake Photoblog 2.0
5. Download CakePHP 1.2.7 (Note: As of this writing, Cheesecake Photoblog is not compatible with CakePHP 1.3)
6. Run command: sudo chown -R your_Ubuntu_username /var/www
7. Open cheesecake_cake.tar.gz and extract the index.php and .htaccess files as well as the app and vendors folders into /var/www
8. Open the CakePHP 1.2.7 zip file and extract the cake folder into /var/www
9. Run command: sudo chmod -R 777 /var/www/app/tmp
10. Run command: sudo chmod 777 /var/www/app/config
11. Run command: sudo chmod 777 /var/www/app/webroot/img/photos
12. Install GD: sudo apt-get install php5-gd
13. Enable Apache mod_rewrite: sudo a2enmod rewrite
14. Run command: sudo gedit /var/www/app/config/core.php
15. In that document, find the Security.salt entry on line 153 and change the strrev value to a random alphanumeric string that's at least as long as the default one. Once you change the value, save and close the file.
16. Run command: sudo gedit /etc/apache2/sites-enabled/000-default
17. In that document, change the DocumentRoot /var/www line to be DocumentRoot /var/www/app/webroot
18. Change
19. Save and close the 000-default file
20. Run command: sudo service apache2 restart
21. Create the Cheesecake Photoblog MySQL database: mysql -u root -p -e "create database cheesecake2; grant all on cheesecake2.* to 'your_desired_username' identified by 'your_desired_password';"
22. Open Firefox and go to: http://localhost/admin/install
23. Follow instructions to configure Cheesecake Photoblog
24. When prompted to change permissions of the config directory, run command: sudo chmod 755 /var/www/app/config
25. When you click the Continue button you should see the Home page of Cheesecake Photoblog!
Note: You will also see the SQL query of each page request shown at the bottom of each page. To turn this off, open /var/www/app/config/core.php and change debug level to 0 or 1 (default level is 2).
1. Install LAMP
2. Install FireBug
3. Install FirePHP (Note: 1.0 release will be called FireConsole)
4. Download Cheesecake Photoblog 2.0
5. Download CakePHP 1.2.7 (Note: As of this writing, Cheesecake Photoblog is not compatible with CakePHP 1.3)
6. Run command: sudo chown -R your_Ubuntu_username /var/www
7. Open cheesecake_cake.tar.gz and extract the index.php and .htaccess files as well as the app and vendors folders into /var/www
8. Open the CakePHP 1.2.7 zip file and extract the cake folder into /var/www
9. Run command: sudo chmod -R 777 /var/www/app/tmp
10. Run command: sudo chmod 777 /var/www/app/config
11. Run command: sudo chmod 777 /var/www/app/webroot/img/photos
12. Install GD: sudo apt-get install php5-gd
13. Enable Apache mod_rewrite: sudo a2enmod rewrite
14. Run command: sudo gedit /var/www/app/config/core.php
15. In that document, find the Security.salt entry on line 153 and change the strrev value to a random alphanumeric string that's at least as long as the default one. Once you change the value, save and close the file.
16. Run command: sudo gedit /etc/apache2/sites-enabled/000-default
17. In that document, change the DocumentRoot /var/www line to be DocumentRoot /var/www/app/webroot
18. Change
Options Indexes FollowSymLinks MultiViewsto
AllowOverride None
Order allow,deny
allow from all
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
19. Save and close the 000-default file
20. Run command: sudo service apache2 restart
21. Create the Cheesecake Photoblog MySQL database: mysql -u root -p -e "create database cheesecake2; grant all on cheesecake2.* to 'your_desired_username' identified by 'your_desired_password';"
22. Open Firefox and go to: http://localhost/admin/install
23. Follow instructions to configure Cheesecake Photoblog
24. When prompted to change permissions of the config directory, run command: sudo chmod 755 /var/www/app/config
25. When you click the Continue button you should see the Home page of Cheesecake Photoblog!
Note: You will also see the SQL query of each page request shown at the bottom of each page. To turn this off, open /var/www/app/config/core.php and change debug level to 0 or 1 (default level is 2).
Comments
Post a Comment
Keep it clean and professional...