Home » , , , , , , , » LAMP ON DEBIAN 8

LAMP ON DEBIAN 8

LAMP on Debian 8 (Jessie)



CHECK HOSTNAME

1. hostname
2. hostaname -f

UPDATE REPOSITORY

1. apt-get update
2. apt-get upgrade

Apache

Install and Configure Apache


1. apt-get install apache2
2. edit /etc/apache2/apache2.conf
  change : keepalive off
3. edit /etc/apache2/mods-available/mpm_prefork.conf
  change :
StartServers  4
MinSpareServers 20
MaxSpareServers 40
MaxRequestWorkers 200
MaxConnectionsPerChild 4500

4.  a2dismod mpm_event
5. a2enmod mpm_prefork
6. systemctl restart apache2

MySQL

MySQL is a relational database management system (RDBMS) and is a popular component of many applications.

Install MySQL


1. apt-get install mysql-server
2. mysql_secure_installation (optional)

Test MYSQL
1. mysql -u root -p
2. create database webdata;
3. grant all on webdata.* to 'username' identified by 'password';
4. quit;

PHP

PHP makes it possible to produce dynamic and interactive pages using your own scripts and popular web development frameworks.
1. apt-get install php5 php-pear
2. edit /et/php5/apache2/php.ini
error_log = /var/log/php/error.log
max_input_time = 30
3. mkdir /var/log/php
4. chown www-data /var/log/php
5. apt-get install php5-mysql
6. systemctl restart apache2
DONE


Share this article :

0 komentar:

 
Copyright © 2015 My Story Blog
Distributed By Gooyaabi Templates