Good morning,
I’m currently using Cakephp 3 version to develop an application. It should be online on an Ubuntu server and through the subdomain: http://etraining.minmap.cm
To do this, I configured a virtualHost, with the content :
<VirtualHost *:80>
ServerName etraining.minmap.cm
ServerAlias www.etraining.minmap.cm
ServerAdmin webmaster@localhost
DocumentRoot /var/www/etraining.minmap.cm/public_html/webroot
<Directory /var/www/etraining.minmap.cm/public_html/webroot>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
The content of the .htaccess located at the application folder is:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.well-known/.*)$ $1 [L]
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
The content of the .htaccess located at webroot directory is:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
I have followed all the configuration steps outlined in the official documentation.
mod_rewrite is enabled, mbstring and intl extensions are also enabled
But, I have 500 Internal Server Error:
This is the error reported in my Apache error.log:
I don’t know if I misconfigured Apache, my .htaccess
files, and/or the config/app.php
?
2
Answers
You should enable apache re-write module. It will work
Update .htaccess