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 Quote
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. Quote
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> Quote
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? Quote
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> Quote
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 Quote
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? Quote
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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.