Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Install GRAV in user directories on Debian 9 +Apache2+ PHP7.0

apache

Started by Minjiao Lu 9 years ago · 0 replies · 1002 views
9 years ago

Several days ago, I made an upgrade on my Debian box. The PHP was upgraded to PHP7.0 and the pages in user directory $HOME/public_html are displayed as their PHP codes. It turned out

TXT
    Running PHP scripts in user directories is disabled by default

in /etc/apache2/mods-enabled/php7.0.conf. By changing last part of this file
and restart apache server. It worked. Hope this helpful for debian and/or Ubuntu
users.


MARKDOWN
# Running PHP scripts in user directories is disabled by default
#
# 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.
<IfModule mod_userdir.c>
    <Directory /home/*/public_html>
#        php_admin_flag engine Off
        php_admin_flag engine On
    </Directory>
</IfModule>
👍 1
last edited 09/17/17 by Minjiao Lu

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 16 hours ago
5 62 10 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 63 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 63 8 months ago
Installation & Hosting · by N, 12 months ago
3 74 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 62 1 year ago