Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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>

 

Posted
57 minutes ago, seintitus said:

<IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

If you remove this portion, does that fix your problem?

Posted

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>

 

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...