Unable to create lockable file Laravel - php

PHP version : 8.0.27
Laravel version : 9.45.1
I'm create a laravel project and upload it into shared hosting server (cpanel). That server already have some my other running project also with different laravel versions. After upload use above mention version project itkeep getting this error
Unable to create lockable file: /home/xxxxxx/domain_name/storage
/framework/cache/data/a0/52/a052c710b70b9dc1cc66e7710af44867198f74e1. Please ensure you
have permission to create files in this location.
If this error occurred all other laravel project on that server getting same error. Also can't going to change php version page on cpanel provide. That page also getting error message. I'm tired with solution on this post given solution. But it only works for limited time. If I clear the cache today it works without error but next day it getting this error again. Is their any permanent solution for this?

Related

Laravel site suddenly not working, and I need help interpreting error messages

I have a Laravel project which was working up to a few days ago, but now isn't. I think it's a config problem, but I am far from being knowledgeable about such things. Here's what I do know:
The project is still running correctly on our server. Another developer has a working local copy on his PC. It's the local copy on my PC that isn't working.
When I try to run the local site from Laragon, I get this error message:
This page isn’t working right now
site.test can't currently handle this request.
HTTP ERROR 500
The Laragon error logs don't contain anything that I can decipher as useful information. Windows Event Viewer gives me this error:
The description for Event ID 4 from source PHP-7.4.30 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
php[127824]
PHP Fatal error: Exception thrown without a stack frame (C:\laragon\bin\apache\httpd-2.4.54-win64-VS16\bin\httpd.exe -d C:/laragon/bin/apache/httpd-2.4.54-win64-VS16)
The message resource is present but the message was not found in the message table
The project uses PHP v 7.4.30 and MySQL for a database.
What does this error mean? How do I fix it?
Any help will be greatly appreciated.
I have deleted and recreated the project, and also uninstalled and reinstalled Laragon. Neither made any difference. The site simply will not load.

PHP script doesnt work in direct admin but work in cPanel

guys i have a PHP Script and i install it on Direct admin and i got this error
i have try change php version but its dont work
but i install this script on other host but in cPanel and its work fine
This page isn’t working avesk.net is currently unable to handle this request. HTTP ERROR 500
I'm not a professional. Explain a little simple what to do
why ? anyone can help me?
In DirectAdmin
There are several possible causes for receiving 500 error.
If you migrated your account from cPanel to DirectAdmin, check in public_html your .htacces file and remove everything that was created by cPanel, there is usually a comment before and after the code stating that this part was created by cPanel.
PHP version. Try to use in DirectAdmin the same version of PHP(cPanel) if possible.
Log in to DirectAdmin (at the user level)
If your server works with php-fpm, just below the domain name, there will be an option to change the PHP version of your account.
If your server work with CloudLinux, find the "Extra Features" menu and then "Select PHP Version". In this case you can change the version of PHP you want to use, and enable / disable PHP extensions (often a disabled extension can cause error 500).
If you have root access to the server, it is very likely that you will find some information in the log.
tail /var/log/httpd/domains/yourdomain.com.error.log
===
Regards

Laravel Forge 500 Internal Server Error

I have updated the git repository (developer branch - this is the only branch on the repo) and deploy on Forge but I am getting 500 Internal Server Error
.env configurations are correct (database, username, password and other configs.)
Also, PHP version on the server is 7.2 and this same site has worked before When I made the last push (changes: routes and controller functions) it started showing the error.
I read this question but even after following these steps the 500 error is showing!
Any suggestion how can I solve this issue!?
PS: I am new to Forge!
i know this is a very late reply i had the same issue
check your routes something is conflicting

Deploying Laravel Application on Cloudways error

I'm trying to deploy my local host laravel project to a live Cloudways Digitalocean server. I have done a SSH transfer from bitbucket to deploy the app but am getting the following error when I try to view the live app. Stripe is not causing any issues on the local host.
"Class 'Laravel\Cashier\CashierServiceProvider' not found"
I've also created a seperate .env file and uploaded it to the server using the server database variables. Can anyone advise if this is the correct procedure?
I've found it really difficult to find any tutorials on how to deploy a Laravel app to a live environment. If anyone has encountered this issue or could point me in the right direction to fix this error it would be much appreciated.

PDO Exception: The server requested authentication method unknown to the client

I have a running LARAVEL based website on a shared hosting (Business Plan) with Hostgator India. Ee decided to migrate it to a recently purchased dedicated server. The content transfer/migration was successful, however, when I try to LOGIN/REGISTER using the default laravel methods on the dedicated server I get following exception:
PDO Exception: The server requested authentication method unknown to the client
After, researching a lot on Google / StackOverflow I discovered that there could be a mismatch in the server mysql version. However, I am not able to understand how to get it fixed. I am currently using a PHP 5.5 (Also tried PHP 5.4 with no success). Downgrading it to PHP 5.3 would work, with its own sweet problems for "syntax errors" and requires quite a lot of the change in the code. The code works absolutely fine on the business plan and my local MAMP server. I am sure I am missing something very small here and would be really thankful if someone could point me in right direction.
Edit 1: MySql information on Server
Server type: MySQL
Server version: 5.5.37-cll - MySQL Community Server (GPL)

Categories