Installation Guide For Homepad On Production
Installation Guide For Homepad On Production
Table of contents 1) Installing Apache 2) Installing PHP 3) Installing MySql 4) Configuring php with MySql 5) Configuring homepad application
Testing Apache http://localhost 2) Installing PHP Open up the Terminal Copy/Paste or type the following line of code into Terminal sudo apt-get install php5 libapache2-mod-php5
In order for PHP to work and be compatible with Apache we must restart Apache. Type the following code in Terminal to do this sudo /etc/init.d/apache2 restart
Testing PHP Open up the Terminal Copy/Paste or type the following line of code into Terminal sudo gedit /var/www/testphp.php
Save and close the file Now open you're web browser and type the following into the web address
It will show you the page that has all information about php.
3) Installing MySql Open up the Terminal Copy/Paste or type the following line of code into Terminal sudo apt-get install mysql-server
copy/paste or type this line mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword');
Installing phpMyAdmin which is an easy tool to edit your databases. Copy/paste or type the following line into Terminal. sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
4) Configuring php with MySql Open up the Terminal Copy/Paste or type the following line of code into Terminal Vi /etc/php5/apache2/php.ini for enabling mysql we need to uncomment mysql by removing semicolon(;)
5) Configuring homepad application Open up the Terminal Copy/Paste or type the following line of code into Terminal /etc/apache2/sites-available/default Set AllowOverride from None to All as shown below <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory>
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so Copy homepad application to /var/www/ Set the database url, username, password Finally, restart the apache2 server to enable the new settings Sudo /etc/init.d/apache2 restart