I am trying to install vtiger 6 on my ubuntu system on apache server.
I am getting a error while running it :
Warning: mkdir(): Permission denied in /var/www/vtiger/includes/runtime/Viewer.php on line 58
Warning: mkdir(): Permission denied in /var/www/vtiger/includes/runtime/Viewer.php on line 58
I changed the main folder "vtiger" permission 777 bt its still issue can someone help me??
SSH to your server and do the following:
cd /var/www
chown -R www-data:www-data .
Make sure you run the chown command in the www folder or vtiger folder if you wish, it is really important that you do not run the command from the root, as it could be catastrophic. This should resolve your issue.
When you change the directory permissions to 777 for the /test directory this problem is solved.
Related
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
I am trying to run an existing Laravel project on my localhost but when I try to run the dam thing I get this error:
The stream or file "/storage/logs/laravel.log" could not be opened:
failed to open stream: Permission denied
I have tried the following:
chmod -R 775 storage and chmod -R 777 storage
Still nothing, I have even tried to do chgrp -R www-data my-project and I get this error in terminal
chgrp: www-data: illegal group name
What am I doing wrong?
Navigate to the project directory and run
sudo chmod -R 777 storage/*
This is my solution.
First you need to run php artisan cache:clear from the project directory, then chmod -R 777 app/storage and finally composer dump-autoload and now it will be working fine..
illegal group name actually means that the group you're specifying(after www-data going username).You need to either create the group, stop specifying a group, or specify a group that exists.
My OS is ubuntu 16.04 and I am running Lumen 5.5.
When I try to run the app in the browser I get an error 500:
and I am getting that error in my /var/log/nginx:
2017/10/09 06:51:26 [error] 1063#1063: *132 FastCGI sent in stderr:
"PHP message: PHP Fatal error: Uncaught UnexpectedValueException:
The stream or file "/home/ila/vhosts/dref_api.com/storage/logs/lumen.log"
could not be opened: failed to open stream: Permission denied in
home/ila/vhosts/dref_api.com/
vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107
Permission in storage/ is :
Permissions in vendor/ and all monolog/ sub files are :
So, I think could apply sudo chmod -R guo+w /vendor but I dont know if it would works or even if it is a good practice.
How are you solving this issue?
It looks like Storage folder doesnt have permission to write log files so
you can run
chmod -R o+w projectname/storage
chmod -R o+w projectname/bootstrap
if you are using nginx then you need to use nginx user permission like below
sudo chown -R nginx:root storage
sudo chown -R nginx:root bootstrap
I'm using XAMPP on my CentOS server. I just wrote a simple file upload script with PHP but there is a problem using mkdir() function, because of the error below:
Warning: mkdir(): Permission denied in /opt/lampp/htdocs/script.php on line 10
Also I can not use move_uploaded_file, because of the same problem.
How can I fix this issue?
You need to give permission to your web server or www folder like this, here www-data is apache group and user, make sure you have one apache user and group.
chown -R www-data:www-data /path/to/webserver/www
chmod -R g+rw /path/to/webserver/www
In your case
chmod -R g+rw /opt/lampp/htdocs
I am getting this error
Warning: include(/home/me/some_folder): failed to open stream: Permission denied in /var/www/html/my_web.php on line 6
I have tried modifying permissions like this
chown apache /home/me/some_folder
chmod 755 /home/me/some_folder
I still cannot get in! What am I doing wrong?
EDIT
I am running an instance of linux with apache
You have to give access to all files in /home/me/some_folder
chown -R apache /home/me/some_folder
chmod -R 755 /home/me/some_folder
I got it to work by
chmod 755 /home/me/
I snuck around online a bit more and found an answer to a similar question on CentOS, and tried it
If someone could explain why, or security behind this, that would be greatly appreciated
Thanks for your help