草庐IT

directory-permissions

全部标签

php - file_put_contents() : connect() failed: Permission denied in AWS server

$username_ftp="user";$password_ftp="password";$file_name="remote-transfer.txt";$url="example.biz/test/".$file_name;$hostname="ftp://$username_ftp:$password_ftp@$url";$content=file_get_contents('index.html');$options=array('ftp'=>array('overwrite'=>true));$stream=stream_context_create($options);f

php - 是什么导致消息 "Failed loading/usr/lib/php/modules/xdebug.so"("No such file or directory")?

当我运行php--version(在CentOS版本6.4上)时,我得到:#php--versionFailedloading/usr/lib/php/modules/xdebug.so:/usr/lib/php/modules/xdebug.so:cannotopensharedobjectfile:NosuchfileordirectoryPHP5.4.19(cli)(built:Aug22201308:03:53)Copyright(c)1997-2013ThePHPGroupZendEnginev2.4.0,Copyright(c)1998-2013ZendTechnologi

php - imagejpeg - 无法打开文件写入 : Permission denied

我收到此错误/警告:Warning:imagejpeg():Unabletoopen'/var/www/my_web/data/my_web/www/users/avatars/user125.jpg'forwriting:Permissiondeniedin/var/www/my_web/data/classes/class.Image.phponline157第157行,有imageJPEG($image,$this->destPath,$this->jpgQuality);我的头像文件夹权限设置为777,$this->destPath是'/var/www/my_web/data/

javascript - 错误 : Permission denied to access property 'document'

我不断收到错误“错误:访问属性‘文档’的权限被拒绝”,而我已经在我的X-FRAME选项中定义允许其他域,像这样..下面是iframe请求的header,清楚地表明我已定义允许域访问iframe但不工作。我只想使用javascript调整iframe的大小。这是我调整iframe高度的javascript代码。functioniframeLoaded(){variFrameID=document.getElementById('idIframe');if(iFrameID){iFrameID.height="";if(iFrameID.contentWindow.document.bod

php - WordPress - PHP 警告无法打开流 : No such file or directory (advanced-cache. php)

我在后端和前端页面(WordPress)上收到此PHP警告,但不知道如何解决:Warning:include(/home/.../public_html/wp-content/advanced-cache.php):failedtoopenstream:Nosuchfileordirectoryin/home/.../public_html/wp-settings.phponline84Warning:include():Failedopening'/home/.../public_html/wp-content/advanced-cache.php'forinclusion(incl

php - 无法打开流 : Is a directory in

我在尝试使用php将上传的文件从临时文件夹移动到所需的文件夹时收到以下警告警告:move_uploaded_file(test/)[function.move-uploaded-file]:failedtoopenstream:Isadirectoryin/home/..../filename.phponline69警告:move_uploaded_file()[function.move-uploaded-file]:无法将“/tmp/phpKrCpQw”移动到第69行的/home/..../filename.php中的“test/”以下是出现错误的第67行和第69行:$destin

php - 在 Mac 上设置 Laravel php artisan migrate 错误 : No such file or directory

这个问题在这里已经有了答案:MySQLconnectionnotworking:2002Nosuchfileordirectory(22个回答)关闭6年前。将一个完美运行的laravel项目从git拉入运行MAMP的mac。项目在linux机器上完美运行。Composer安装phpartisanmigrate,得到如下错误:[PDOException]SQLSTATE[HY000][2002]Nosuchfileordirectory注意:php-v是5.5而mysql-v是5.5从终端这是我的config/database.php的一部分'mysql'=>array('driver'

php - 在 Mac 上设置 Laravel php artisan migrate 错误 : No such file or directory

这个问题在这里已经有了答案:MySQLconnectionnotworking:2002Nosuchfileordirectory(22个回答)关闭6年前。将一个完美运行的laravel项目从git拉入运行MAMP的mac。项目在linux机器上完美运行。Composer安装phpartisanmigrate,得到如下错误:[PDOException]SQLSTATE[HY000][2002]Nosuchfileordirectory注意:php-v是5.5而mysql-v是5.5从终端这是我的config/database.php的一部分'mysql'=>array('driver'

php - PDO异常 : SQLSTATE[HY000] [2002] No such file or directory

我已将PushChatServer目录放入htdocs文件夹并创建数据库puschat尝试运行@"http://localhost/PushChatServer/api/test/database.php"然后我得到以下异常。我想做同样的事情来解释这个链接http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2我已经完成了所有这些但我得到了这个异常Couldnotconnecttothedatabase.Reason:exception'PDOExceptio

php - 传入电子邮件到 PHP : need to write attachments to web directory

我有一个PHP脚本,它接受所有电子邮件(通配符)到我的域,并将数据插入MySQL。脚本的开头有这一行:#!/usr/bin/php-q它看起来像一个普通的PHP脚本。将附件写入磁盘的部分似乎可以工作,但存储它们的新文件夹的权限是由“nobody”用户创建的。如何编辑权限,以便在将这些文件写入磁盘后,网络服务器/网络服务器用户可以访问它们?感谢您的帮助!(Fedora14Linux服务器,后缀) 最佳答案 您可以通过FTP执行文件系统操作,因此您将拥有与您的用户相同的权限。最好让服务器上的所有PHP用户都能访问您的文件。http://