• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Laravel: 500 SERVER ERROR

sezohessen

New Pleskian
I got 500 | SERVER ERROR after deployment the project .I run key:generate, config:cache, optimize But no thing happened.
.env file is exist , I also migrate the database successfully
 
Did you check the error logs of the subscription?

First make sure error logging is active:
Subscription -> PHP Settings -> error_logs = on

Next, check the logs for errors:
Subscription -> Logs
 
I have the same error with my script it is also Laravel and PHP. 500 Server Error in the contact us page and new customer registration or when they place an order an email should go to the customer and to the admin and the 500 server error is displayed on the page and no email is being sent.
the admin dashboard for Contact us and Mailchimp has a setting where I fill in the required files. attached are the settings for the email setup for Contact us and the other incoming and outgoing emails (new user registration and order placements) do not work. when I try to subscribe to the website the error "401: Your API key may be invalid, or you've attempted to access the wrong datacenter." shows in the subscribe form.

I am relatively new to the Plesk and VPS Sever and do not know how to get this taken care of. please let me know if you need me to check the log files and share them here if that will help you to know the errors and issues I have. the Email Form with the same script works fine in the cPanel shared hosting.

Thank you.

Attachments​

 

Attachments

  • Capture.PNG
    Capture.PNG
    30.7 KB · Views: 7
  • Newsletter error.PNG
    Newsletter error.PNG
    38.4 KB · Views: 7
  • newsletter settings.PNG
    newsletter settings.PNG
    16.1 KB · Views: 6
Yes, I did and checked the settings for that specific domain and the error that it shows is

AH01071: Got error 'PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/autoload.php) is not within the allowed path(s): (/var/www/vhosts/MySite.com/:/tmp/) in /var/www/vhosts/MySite.com/httpdocs/vendor/vonage/nexmo-bridge/src/Autoloader.php on line 69', referer: https://MySite.com
 
Yes, I did and checked the settings for that specific domain and the error that it shows is

AH01071: Got error 'PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(/autoload.php) is not within the allowed path(s): (/var/www/vhosts/MySite.com/:/tmp/) in /var/www/vhosts/MySite.com/httpdocs/vendor/vonage/nexmo-bridge/src/Autoloader.php on line 69', referer: https://MySite.com

Please have a look at this post to fix the issue:

 
Thank you maartenv. I am new to Plesk and do not much more about changing these redirects/code. Could you please tell me when part of the codes needs to be changed on my end so I can try?

Is it something I need to commit from Github or just copay and add it to a specific part of the codes in the app?
I really appreciate your help in this regard.
Thank you,
 
/var/www/vhosts/MySite.com/httpdocs/vendor/vonage/nexmo-bridge/src/Autoloader.php
in line 69
tries to access an area that is outside your own webspace. It is very likely due to the slash before "autoload.php", because that tells the server to start looking for autoload.php in the root directory for the server's hard disk. You'll need to find where the /autoload.php is defined and either change it to your full path to the file in your webspace or to a relative path, relative to the script path of the script that is requesting it.
 
Back
Top