I have created my project, and generated it - all worked well. Testing it on Windoze, running Apache2.4, PHP 7.4, PostgreSQL, it works fine, however when I copy my project over to my Ubuntu Linux (20.04) box (running Apache2.4, PHP 7.4, PostgreSQL) I get the following error:HTTP 500 ERROR (in debug mode)When I “inspect” the element (Home Icon, top right of the body of the page), the tag href property is:
when trying to logout, I also get the HTTP 500 error (and the system does not log me out.ERROR:
An internal error has occurred while processing your request.
Are you sure the base path of your project on the Linux server is /myproject/? If you run at the root of the website (e.g. http://mysite/), then the RewriteBase should be / only.
Are you sure the base path of your project on the Linux server is > /myproject/> ? If
you run at the root of the website (e.g. > http://mysite/> ), then the RewriteBase
should be > / > only.
Ok, I have found a work-around and solved my issue by adding a Redirect statement to my Virtual host:Added this line: Redirect “/index” "/"So my Virtual Host configuration file now looks like this:<VirtualHost *:80>removed comments
<Directory /var/www/mywebsite.com/myproject/>
DirectoryIndex index.php
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
Require all granted
</Directory>