choicesright.blogg.se

Awstats ubuntu 20.04 apache
Awstats ubuntu 20.04 apache









awstats ubuntu 20.04 apache

I do a test and still php files are downloaded. htaccess files from disabling it.Īfter every change I have made, I have restarted apache with sudo service apache2 restart. # To re-enable PHP in user directories comment the following lines # Running PHP scripts in user directories is disabled by default # Deny access to files without filename (e.g. # only in specific virtual host or directory # To re-enable it's recommended to enable access to the files # Deny access to raw php sources by default SetHandler application/x-httpd-php-source

awstats ubuntu 20.04 apache

libphp7.4.so is located in /usr/lib/apache2/modules.Īnd my /etc/apache2/mods-available/php7.4.conf and /etc/apache2/mods-enabled/php7.4.conf files look like this: Notes: I have verified that the nf file is being executed, by adding a bad line to the file and attempting to restart apache, which resulted in an error. # Add index.php to your DirectoryIndex line: LoadModule php7_module modules/libphp7.4.soĪddType application/x-httpd-php-source. I verify that php is enabled with sudo a2enmod php7.4, which gives Considering conflict mpm_event for mpm_prefork:Ĭonsidering conflict mpm_worker for mpm_prefork:īased off multiple replies in different questions, I have ended up with the following in my /etc/apache2/nf file (note this is not the entire file): Include /etc/phpmyadmin/nf "php7.4.conf" and "php7.4.load" appears in both /etc/apache2/mods-available and /etc/apache2/mods-enabled. If I go to "localhost" in my browser, it serves up the "Apache2 Ubuntu Default Page".

#Awstats ubuntu 20.04 apache code#

The following links contain examples of the suggestions I have tried that didn't solve my problem.Īpache2 on ubuntu - php files downloadingĪpache shows PHP code instead of executing it

awstats ubuntu 20.04 apache

(Many of the posts are several years old with older versions of Apache and php, and some of the config files and their locations have changed.) I've found a common set of solutions to the problem, but none of them have worked for me. I have read through many solutions to this problem on both and stackoverflow. Php files do not load in the browser, but are downloaded.











Awstats ubuntu 20.04 apache