seintitus Posted November 2, 2022 Posted November 2, 2022 Hello. I am trying to deploy a website on my website: cyclos.za.org but everytime I am getting a 500 server error and can't figure out what the problem is since I am new on Plesk hosting. My username is: tchesoen
Unknown025 Posted November 2, 2022 Posted November 2, 2022 Have you checked Plesk's error logs page? (Websites and Domains > click on the domain name > under the Dev Tools header towards the left side of the page, there's a "Logs" link.) That will tell you what the cause of the error is. You might have a misconfigured .htaccess file.
seintitus Posted November 4, 2022 Author Posted November 4, 2022 Hello. Ive checked the error logs. I am posting it below: [core:alert] /home/cyclos.za.org/public_html/.htaccess: Options not allowed here And here is my .htaccess: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Send Requests To Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
Unknown025 Posted November 4, 2022 Posted November 4, 2022 57 minutes ago, seintitus said: <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> If you remove this portion, does that fix your problem?
seintitus Posted November 4, 2022 Author Posted November 4, 2022 Hello. No even after removing that portion, the error is still there. Hello. Ive checked the error logs. I am posting it below: [core:alert] /home/cyclos.za.org/public_html/.htaccess: Options not allowed here And here is my .htaccess: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Send Requests To Front Controller... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule>
seintitus Posted November 4, 2022 Author Posted November 4, 2022 The error doesnt go away even after removing the portion of the .htaccess code you indicated above
Unknown025 Posted November 4, 2022 Posted November 4, 2022 Alright, what about if you temporarily rename the .htaccess file to another name, to see if your page will load without it?
Krydos Posted November 5, 2022 Posted November 5, 2022 If you check Login > Plesk > Websites & Domains > cyclos.za.org > Logs you can see that your error after renaming your .htaccess file has changed. mod_fcgid: stderr: Next Illuminate\\Database\\QueryException: SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from `languages` where `code` = en limit 1) in /home/cyclos.za.org/public_html/vendor/laravel/framework/src/Illuminate/Database/Connecti Your database user obviously isn't 'forge'@'localhost'. It has to start with tchesoen_ you can find the exact database user on the databases tab if you forgot the name that you chose when you created it.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now