1

I have searched anything on this topic in the internet and i just cannot get it to work. I am desperate....

I just want to access my index.php inside a custom document root folder but i keep getting this error

enter image description here

The new document root that i want instead of the /var/www/html default is called

/home/ever/FH/SKS/frontend

I have set all the permission recursively to 775 for this folder and all subfolders.

enter image description here

The main apache configuration file /etc/apache2/apache2.conf looks like this:

enter image description here

Most instructions i have found on how to set a new directory root, told me to just change the path inside the /etc/apache2/sites-available/000-default.conf file to point to my new document root.

My 000-default.conf:

enter image description here

I also tried a version of the 000-default.conf file that looked like this:

enter image description here

The symlinks should be corrrect:

enter image description here

I have not set up any .htaccess file or changed anythign else.

Please help me... i am desperate. In XAMPP this is done super easy, but i refuse that this cannot be done with the normal Apache server too. It cant be THAT big of a deal can it ?

MajesticOl
  • 311
  • 1
  • 20

1 Answers1

1

It seems that in version 2.4 of the apache webserver i have to use

<Directory /var/www/foo>
  Require all granted
</Directory>

instead of 2.2 syntax

<Directory /var/www/example.com>
  Order allow,deny
  Allow from all
</Directory>

furthermore i have to place the configuration inside the

/etc/apache2/apache2.conf 

file instead of the

/etc/apache2/sites-available/000-default.conf

file.

My apache2.conf now looks like this:

enter image description here

allowing me to finally access the file WITHOUT PHP support it seems....

but this is another long complicated battle that never happened before with XAMPP i guess.....

MajesticOl
  • 311
  • 1
  • 20