- sudo rsync -av /var/www/html /to/new/path
- sudo nano /etc/apache2/sites-enabled/000-default.conf (kasus kali ini menggunakan nano editor) dan ubah DocumentRoot /to/new/path
- Restart apache dengan perintah sudo systemctl reload apache2 atau sudo service apache2 restart
- buka apache config dan ketikkan nano /etc/apache2/apache2.conf
- kemudian cari baris
<Directory />
Options Indexes FollowSymLinks
AllowOverride All
Require all denied
</Directory>
dan ubah menjadi
<Directory />
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
simpan dan restart apache
itulah langkah-langkah merubah root folder web server di apache 2, Terima Kasih.
Tidak ada komentar:
Posting Komentar
Perhatian! Silahkan berkomentar tanpa ada unsur SARA ^_^