Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Saya buat linux user roland password ewv0w96v
- # adduser roland
- #Saya buat folder www yang nanti akan diakses dari test.ejomplo.com
- # mkdir /home/roland/www
- # sudo usermod -a -G www-data roland
- # usermod -a -G www-data roland
- # chown -R roland:www-data /home/roland/www
- # chmod 750 /home/roland/www
- # chmod g+s /home/roland/www
- # setfacl -R -d -m u::rwX -m g::rX -m o::000 /home/roland/www
- #Saya buat database test dengan user roland password ewv0w96v
- # mysql -u root -p
- > CREATE USER 'roland'@'localhost' IDENTIFIED BY 'ewv0w96v';
- > CREATE DATABASE test;
- > GRANT ALL PRIVILEGES ON test.* TO 'roland'@'localhost';
- > FLUSH PRIVILEGES;
- #Saya buat host test.ejomplo.com mengakses folder www
- # nano /etc/apache2/sites-enabled/000-default.conf
- <VirtualHost *:80>
- DocumentRoot /home/roland/www
- ServerName test.ejomplo.com
- </VirtualHost>
- # nano /etc/apache2/apache2.conf
- <Directory /home/roland/www/>
- Options Indexes FollowSymLinks
- AllowOverride None
- Require all granted
- </Directory>
- #Saya mengintip php.ini
- # nano /etc/php/7.3/apache2/php.ini
- max_input_nesting_level = 4
- max_input_vars = 256
- memory_limit = 128M
- error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
- display_errors = On
- post_max_size = 128M
- upload_max_filesize = 128M
- max_file_uploads = 8
- date.timezone = Asia/Singapore
- #Ready
- # service apache2 restart
- #SSL
- # apt-get install certbot python-certbot-apache
- # certbot --apache
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement