chmod

Automatically apply “git update-index --chmod=+x” to executable files

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I frequently add bash scripts to my git repository, and the scripts have executable permissions in the linux filesystem prior to the git add . But after pushing the added files to a remote repository and pulling in another location, the files show up with non-executable permissions. There seem to be two ways to correct the problem: 1. chmod u + x $script git commit - am "fixing the script permissions... again..." or 2. git update - index -- chmod =+ x $script Instead of fixing up the permissions every time, is there a way to have

file_put_contents(meta/services.json): failed to open stream: Permission denied

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to Laravel. I was trying to open http://localhost/test/public/ and I got Error in exception handler. I googled around and changed the permission of storage directory using chmod -R 777 app/storage but to no avail. I changed debug=>true in app.php and visited the page and got Error in exception handler: The stream or file "/var/www/html/test/app/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/html/test/bootstrap/compiled.php:8423 Then I changed the permissions of storage directory

PhpMyAdmin “Wrong permissions on configuration file, should not be world writable!”

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I get this error when I try to access localhost/phpmyadmin: Wrong permissions on configuration file, should not be world writable! I have already chmoded every file to 555 from 777. What should I do next? I run Ubuntu 11.04. 回答1: try sudo chmod 755 /opt/lampp/phpmyadmin/config.inc.php this command fixed the issue having on my ubuntu 14.04. 回答2: This is because of wrong permission of phpMyAdmin directory and the file config.inc.php On *nix like OS set the permission of the directory and the file as follows chmod 755 - R / path / to

Nginx: stat() failed (13: permission denied)

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using the default config while adding the specific directory with nginx installed on my ubuntu 12.04 machine. server { #listen 80; ## listen for ipv4; this line is default and implied #listen [::]:80 default ipv6only=on; ## listen for ipv6 index index.html index.htm; # Make site accessible from http://localhost/ server_name localhost; location / { # First attempt to serve request as file, then # as directory, then fall back to index.html root /username/test/static; try_files $uri $uri/ /index.html; # Uncomment to enable naxsi on this

Permission denied - nginx and uwsgi socket

匿名 (未验证) 提交于 2019-12-03 01:55:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Well I am currently trying to get my django application served using nginx and uwsgi. I am currently using a virtual environment to which uwsgi is installed. However I am currently getting a 502 bad gateway error when attempting to access the page. The Error I am experiencing. 2014/02/27 14:20:48 [crit] 29947#0: *20 connect() to unix:///tmp/uwsgi.sock failed (13: Permission denied) while connecting to upstream, client: 144.136.65.176, server: domainname.com.au, request: "GET /favicon.ico HTTP/1.1", upstream: "uwsgi://unix:///tmp/uwsgi.sock:"

chmod failed: EPERM (Operation not permitted) in android?

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: i want to create database in sdcard or external sdcard for this i have try this code and using this i have successfully created database in sdcard but in logcat it give me warning like below Logcat 07-18 14:18:22.140: W/FileUtils(8595): Failed to chmod(/mnt/sdcard/peakmedia/DB_PMD): libcore.io.ErrnoException: chmod failed: EPERM (Operation not permitted) DB_Helper.java public class DB_Helper extends SQLiteOpenHelper { public DB_Helper(Context context) { super(context, Environment.getExternalStorageDirectory().getAbsolutePath() + File

How do I use chmod with Node.js

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: How do I use chmod with Node.js? There is a method in the package fs , which should do this, but I don't know what it takes as the second argument. fs.chmod(path, mode, [callback]) Asynchronous chmod(2). No arguments other than a possible exception are given to the completion callback. fs.chmodSync(path, mode) Synchronous chmod(2). (from the Node.js documentation ) If I do something like fs . chmodSync ( 'test' , 0755 ); nothing happens (the file isn't changed to that mode). fs . chmodSync ( 'test' , '+x' ); doesn't work either. I

Nginx: stat() failed (13: permission denied)

匿名 (未验证) 提交于 2019-12-03 01:18:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using the default config while adding the specific directory with nginx installed on my ubuntu 12.04 machine. server { #listen 80; ## listen for ipv4; this line is default and implied #listen [::]:80 default ipv6only=on; ## listen for ipv6 index index.html index.htm; # Make site accessible from http://localhost/ server_name localhost; location / { # First attempt to serve request as file, then # as directory, then fall back to index.html root /username/test/static; try_files $uri $uri/ /index.html; # Uncomment to enable naxsi on this

Laravel blank white screen

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: My laravel site was working before, I recently upgraded to Apache 2.4 and PHP 5.5.7. Now I'm getting a white blank screen when I go to laravel.mydomain.com, nothing in apache error logs, routes and etc. should be fine as it worked before. .htaccess is loading as I get a 500 when I insert an invalid line to /var/sites/laravel/public/.htaccess. Heres my .htaccess: $ cat / var / sites / laravel / public /. htaccess Options - MultiViews RewriteEngine On # Redirect Trailing Slashes... RewriteRule ^(.*)/ $ / $1 [ L , R = 301 ] # Handle

Unable to write to a chmod 777 database file on SQlite3 via php 5.3.0

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to insert data into my SQlite3 database (this works via the command line). I gave the data1.db file 777 permissions and still it says it's unable to open the file. I get this error: Warning: SQLite3::exec() [sqlite3.exec]: unable to open database file in /var/www/test.php on line 3 Using this code: $db = new SQLite3('./data1.db'); $db->exec("INSERT INTO table1 (fileName) VALUES ('test.txt')"); But the strange thing is that I can read from the database: (this works) print_r($db->querySingle('SELECT fileName FROM table1', true)); I