iam installed laravel project using laravel documents details.and installed my project into my lampp directory path (htdocs/myproject).After that i run my project in browser.But i didt get the intro page of laravel showing Permission denied messege Like:
The stream or file "/opt/lampp/htdocs/dotgo/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied
given all permissions to the laravel project folder by using the following command:
chmod 777 dotgo
Still i cant run the project file.Any one please help me to solve this one.....
try this chmod ugo+ rwx “lampp” inside your lampp dir
Related
I am trying to upload my laravel project from Xampp to shared hosting, but I get the error:
file_put_contents(C:\xampp\htdocs\resido\storage\framework/sessions/Jmmr9HI35UYdhIfZLDTVlLGjCy5AHiuVK9NfOQuT): failed to open stream: No such file or directory
when I try either of the following solutions:
delete the file app/bootstrap/cache/config.php
composer dump-autoload
php artisan config:clear,
the application works. however, all the changes I made while working with xampp is gone and I get the old view from the application template.
how do I fix this problem without losing the changes I made to the project?
I think I'm having this error because the folder C:\xampp\htdocs\resido\storage\framework/sessions does not exist
how do I change this directory to that of the live hosting?
Make sure the which you are calling is available in the "storage\framework/sessions" folder
OR you can unset all the current sessions from the browser and try
It is quietly often when we try to move our code to the server by copy paste the whole project.
To solve this problem you need to check inside storage/framework/sessions.
Is there a sessions folder available or not, if not then create it manually on the server and give the permission of 664 or 775 to the storage directory recursively.
For permission, you can use this command from server cmd inside the project directory :
sudo chmod -R 775 storage and sudo chmod -R 775 storage/*.
it gives me this error when i put laravel on apache server
The stream or file "/var/www/app/storage/logs/laravel-2019-01-02.log" could not be opened: failed to open stream: Permission denied
i have tried everything i set permission to 777 and set owner to root and i try permission 775 also didnot work can any one help me with this...?
note: i am working on apache server on CentOS7
It's a permission issue:
Just Open Your CMD -> Go to your project folder -> Run the following command:
sudo chmod 777 storage/
i fix it...
after using this command i still didnot know what is the reason
1.cd /var/www/html
2.setenforce 0
3.service httpd restart
We have a Laravel app (version 4) that we're trying to deploy on AWS. Previously, it was hosted in our local servers via XAMPP. On AWS, I created a folder for the laravel app in var/www/html directory path. But as I try to access http://aws-url/laravel_folder/public, I get the error message:
Error in exception handler: The stream or file "/var/www/html/laravel_folder/app/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/html/laravel_folder/bootstrap/compiled.php:9134
I've checkout all similar questions and have followed the suggestions, i.e. setting permission of laravel.log to 777, but still keep getting the same problem.
How do I fix this problem?
Thank you
First 777 permission is not a good idea.
If you're on linux, use the following command:
chmod -R 770 logs (add sudo in front if you're not the owner of the folder!)
That will give owner and group read-write-execute permission on the logs folder and everything inside it but will give no permission to other users.
Also make sure that the folder and files inside it have the web server's user as group.
Hope that's help!
You need to set the permissions for the entire storage folder to 777
sudo chmod -R 777 storage/
I have installed Centos 7 and I want to install Laravel 5 on it,
I already installed PHP, MySQL and Apache also I installed composer and created a new Laravel project but when I try to access it's index file that is in public folder of the project I get this error :
Remote server or file not found
You tried to access the address http://localhost/ToDo/public/, which is currently unavailable.
other PHP files in /var/www/html folder work great
finally i solved it:
i disabled SELinux and changed the readonly access to read and write access for my project folder with this command: chmod -R 757 folder
I'm trying to install a laravel application. This question might be specific to Wardrobe, or not. I'm not sure. The Laravel application I'm trying to install is called Wardrobe.
So, there are 2 options that can be used to install this application (or script, I don't know). The first one is with Composer, and the second one is with git.
I'm trying to install this script to my server for weeks. I failed all the time. I can do this on my local computer, but can't on my server.
So, to tell you the problems, I'm creating two subdomains. One is called w1, and the other one is called w2. I'm trying to install Wardobe to w1 using composer, and I'll use git clone on w2.
I cd into /var/www/w2.domain.com/ and execute composer create-project wardrobe/wardrobe public_html. This creates the project into /var/www/w1.domain.com/public_html.
Then, for w2,
I cd into /var/www/w2.domain.com/ and execute git clone https://github.com/wardrobecms/wardrobe.git
Then, I go into database.php of each folder and write my database information.
Then I execute
chmod -R 777 app/storage/
chmod 777 public/img/
After all this, I go to w1.domain.com from my browser. I get '500 Internal Server Error', so I update both (w1 and w2) my .htaccess file from Laravel Installation Doc.
Now, I enter to w1.domain.com. I see the Installer Step 1. I click on 'Install Database & Continue'. BAM! Permission denied!
Here's the error message for w1:
copy(/var/www/w1.domain.com/public_html/public/packages/wardrobe/core/.gitkeep): failed to open stream: Permission denied
Then I enter w2.domain.com. BAM! Permission denied!
Here's the error message for w2:
mkdir(): Permission denied
Then I go into w1 and w2 folders and chown all.
Nothing changes.
Do you have any idea how to fix this?
Thanks in advance.
Here's the fix:
chmod 777 everything.
Install script.
Turn privileges to normal values using chmod.
End of story.
Thank you everyone for being so helpful.