Sunday, August 29, 2010

Step By Step LAMP Zend Framework Setup

  • sudo apt-get install lamp-server^
    • (yes include carat)
  • sudo a2enmod rewrite
  • sudo apt-get install zend-framework
    • (it is not, nor will it ever be, the current version)
  • sudo apt-get install libapache2-mod-auth-mysql phpmyadmin
  • sudo apt-get install curl
  • sudo apt-get install vim
  • sudo vim /etc/php5/apache2/php.ini
    • Edit error handling around line 500
    • Edit paths around line 780.  Add:
      • include_path = ".:/usr/share/php/libzend-framework-php"
    • Edit Execution Time
      • max_execution_time = 0
      • max_input_time = -1
  • sudo /etc/init.d/apache2 restart
If I get "apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName"
  • sudo vim /etc/apache2/httpd.conf
  • paste:
    • ServerName localhost
  • save
  • sudo /etc/init.d/apache2 restart
Now is probably also a good time to setup read/write permissions on /var/www as well.  It took me too long to figure out how to do it exactly, but the general idea is to add the group www-data to the user you are using for most programming and data entry or whatever.  Remember to log out and log back in when you change groups.  Then set your /var/www folder to the www-data group as well.  That's it.  Remembering to log out is the important part.

No comments:

Post a Comment