403 Forbidden Message on Moodle Directory

Re: 403 Forbidden Message on Moodle Directory

by Alex Nyamweya -
Number of replies: 0

Here is how my current php.conf looks like.


# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>
#
#
# Allow php to handle Multiviews
#
#AddType text/html .php
#
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
#DirectoryIndex index.php
#
#
# Uncomment the following lines to allow PHP to pretty-print .phps
# files as PHP source code:
#
#<FilesMatch \.phps$>
#    SetHandler application/x-httpd-php-source
#</FilesMatch>
#
#
# Apache specific PHP configuration options
# those can be override in each configured vhost
#
#php_value session.save_handler "files"
#php_value session.save_path    "/var/lib/php/session"

I installed php by using the command yum install php and then I upgraded it to 7.1 by using the following commands:

sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

sudo yum-config-manager --enable remi-php71

Everything was originally uncommented by the way. The weird thing is the last time I reinstalled Moodle on CentOS, I never had to do this. All I had to was restart httpd and it worked like a charm. The only difference between this time and the last time is that I installed Virtualmin on my server (in addition to Apache OpenMeetings and Gibbon which were installed last time as well).