LAMP ON DEBIAN 8
Posted by rafael
Posted on 2:05 PM
with No comments
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
0 komentar:
Post a Comment