I installed a new version of Ubuntu on my computer. Ubuntu 18.04.3 LTS
The files for my website are on another disk. See Program Tools → Disks
- Device:
/dev/sdb1
- Partition type: Linux
- Contence: Ext4(versie 1.0) – Mounted on
/media/joris/doc
I did following ( source ):
sudo apt update
sudo apt install apache2
cd /etc/apache2/sites-available/
sudo cp 000-default.conf gci.conf
sudo gedit gci.conf
DocumentRoot media/joris/doc/website
sudo a2ensite gci.conf
service apache2 reload
sudo adduser joris www-data
sudo chown -R www-data:www-data /media/joris/doc/website
sudo chmod -R g+rw /media/joris/doc/website
P.S. I live in Belgium and I speak Dutch. Exist also a dutch forum of Ubuntu?
I have taken new steps I encountered problems with rights in other programs
mkdir /d sudo cp etc/fstab etc/fstab_oud
sudo gedit etc/fstab
# Harde schijf 1TB
UUID="23f455e3-08a4-4e34-9122-19e375ed6a4c" /d ext4 defaults 0 0
Folder website: /d/website
cd etc/apache2/sites-available
sudo gedit gci.conf
# DocumentRoot /var/www/html
DocumentRoot /d/website
sudo gedit etc/apache2/apache2.conf Options Indexes FollowSymLinks AllowOverride None Require all granted
With the program dolphin I added a named user www-data
I have added named user www-data
and [v] Apply changes to all subfolders and their content
service apache2 reload
My site is still not displayed, but the default site of apache!