- Code: Select all
<VirtualHost *:80>
DocumentRoot "/var/www/html2"
ScriptAlias /local-bin /usr/bin
AddHandler application/x-httpd-php php .php
Action application/x-httpd-php /usr/bin/php-cgi7.2
<Directory "/usr/bin">
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error80.log
CustomLog ${APACHE_LOG_DIR}/access80.log combined
php_value session.save_path "/tmp"
php_value session.post_max_size "60M"
php_value session.upload_max_filesize "60M"
</VirtualHost>
That is an invalid VirtualHost, you are missing a ServerName directive and stll, your Action clause is wrong (but its not executed anyway, as this VirtualHost does not have a ServerName, therefore Apache cannot decide when to choose it).
Forget about the ports, use Port 80 always, VirtualHosts do not work as you expect, please provide proper ServerName instead and copy my VirtualHost declaration. I cannot help you if you are messing aroung instead of taking my advice. Its on you, of course i immediately can stop here and let you alone. Both your VirtualHosts dont work. They are also lacking the Directory clause including "Require all granted" for the DocumentRoot.
You also should find the configuration for the PHP Module 5.6 and comment it out, do not use Module and CGI both.