Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 3272  / 3 Years ago, thu, september 16, 2021, 3:01:05

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


More From » apache2

 Answers
5

Please look in /etc/apache2/mods-enabled/php5.conf, it has this comment:



# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.


After you changed the file, restart Apache with service apache2 restart.


[#44046] Friday, September 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
throecember

Total Points: 274
Total Questions: 118
Total Answers: 132

Location: India
Member since Thu, Jun 11, 2020
4 Years ago
;