My php code not working under directory of mod_userdir (~/user) but working fine at /var/www/ , how I can dealing with this problems ? when I open a php file under ~/user my browser prompt to download
My php code not working under directory of mod_userdir (~/user) but working fine at /var/www/ , how I can dealing with this problems ? when I open a php file under ~/user my browser prompt to download
Please look in /etc/apache2/mods-enabled/php5.conf, it has this comment:
After you changed the file, restart Apache with
service apache2 restart
.Make sure that
mod_userdir
Apache extension is enabled. Enable by the following command:Prefix with
sudo
if required.Then reload/restart Apache (
service apache2 restart
).