g2ktcf wrote:Everything I have read about virtual hosts makes me think that I need a different htdocs folders for this to work. I need to run the same files on different php versions.
virtualhosts simulate different Apache httpd configurations without the need of installing multiple Apache httpd Servers.
This could be different domain names, which is the main purpose. But you can also configure different PHP implementations for the same DocumentRoot with help of virtualhosts.
virtualhosts are just a container with conditions for when it will activate (by IP, port or domain or a combination of them).
If your webapplication has a setting for the root url, domain or something similar (so if it generates the asset urls by itself) than virtualhosts are maybe not the way to go.
g2ktcf wrote:.htaccess Datei im Verzeichnis deiner Wahl mit folgendem Inhalt erstellen
Translates to (for me at least)
Create .htaccess file in the directory of your choice with the following content
Sorry, but folder of your choice is not very specific
It cannot be that specific, because it really depends on your needs. In your case if you want to run a full webapplication with different PHP implementations, you surely want to place the .htaccess in your DocumentRoot directly. But if you want for example just one subfolder to be run with a different PHP version this .htaccess needs to be placed in this subfolder.
.htaccess directives will get inherited to subfolders as long as there is no other directive overriding the configurations.
g2ktcf wrote:and I am trying to run THREE different versions of PHP. Do I need a different .htaccess folder for each version of PHP in the that PHP version's folder?
No. Only one .htaccess in the DocumentRoot of your webapplication.
g2ktcf wrote:I hate to sound stupid but I have no idea what these changes do as I have NEVER been able to understand .htaccess files.
There is not much to understand. .htaccess files are a folder based condition to set Apache configuration directives. They get processed on request (instead of settings written in the Apache config files). Not all directives can be set in .htaccess files and you can limit the directives with help of the directive
AllowOverrideFor the rest of your questions, which i already mentioned: the .htaccess file needs to be placed in the DocumentRoot of your webapplication, not in the PHP folders.