Linux installation


About program
Fixed insert
All records
Category reports


Installation on linuxu

Installation of Apache, PHP, MySQL

On the most linux distributions installation of web server, PHP and MySQL is simple.
- On Ubuntu command in shell:
$ sudo tasksel install lamp-server
During installation process, system will ask you to setup root MySQL password. (shall we stress out that this password must be remembered)
On most other distributions, installation is also simple. On Debian, in Synaptic shall be marked: php5-common, mysql-server, apache2 and OS will take care about installation and configuration.

Important: web server must have enabled "clean url", on Apache is mod_rewrite
At the end of chapter is description of activation rewrite_module for Ubuntu linux.

- Unzip the program in the directory that web server is looking. On Debian/Ubuntu is /var/www
Web server must have read, write, execute privileges over the program directiory. Command for changing:
$ sudo chown -R www-data /var/www/Home-Booking

Set-up through url: http://localhost/home-booking/install/install.php
Follow the instruction on the screen.

Manual installation of application

If preferred, or installation from web browser failed, manually configure application and restore database:
- Restore database that is in doc/database.sql with command:
$ mysql -p -u db_username booking < database_empty.sql

- Edit application/config/config.php on line no.17 write url that is the same as the name of directory where application is placed.
$config['base_url'] = 'http://localhost/Home-Booking/';

- Edit application/config/database.php data about your database. For example:
$db['default']['username'] = 'your_db_username';
$db['default']['password'] = 'db_password';
$db['default']['database'] = 'booking';
Fire browser, with previously setup link as http://localhost/Home-Booking/ and hope that program it will be useful.

Apache clean_url

Check if rewrite_module ie enabled if Apache server is used, this is procedure for Ubuntu.
- Command from shell:

$ apache2ctl -M
- If there is no rewrite_module on the list, command:
$ sudo a2enmod rewrite
- Edit configuration for Apache in order that local .htaccess is being used.
Edit /etc/apache2/sites-enabled/000-default to look like this:
DocumentRoot /var/www
   <Directory />
      Options FollowSymLinks
      AllowOverride All
   <Directory /var/www/>
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
- Restart Apache:
$ sudo /etc/init.d/apache2 restart