草庐IT

directory-permissions

全部标签

php - SMTP 错误 : Failed to connect to server: Permission denied (13)

美好的一天!我试图让我的phpmailer在我的共享主机(freehostia.com)中工作,但我总是收到此错误。我的gmail的用户名和密码是正确的,其余的设置是这样的:$mail=newPHPMailer;$mail->isSMTP();$mail->SMTPDebug=2;$mail->Host='tls://smtp.gmail.com';//SpecifymainandbackupSMTPservers$mail->SMTPAuth=true;//EnableSMTPauthentication$mail->Username='mymail@gmail.com';//SMT

php - Zend Framework : Could not determine temp directory, 请手动指定一个 cache_dir

我正在学习Zend框架。我创建了一个简单的Zend_Form,当我提交表单时出现以下错误:AnerroroccurredApplicationerrorExceptioninformation:Message:Couldnotdeterminetempdirectory,pleasespecifyacache_dirmanuallyStacktrace:-0H:\Documents\IIS_Server_Root\zendframework\Zend\Cache\Backend.php(197):Zend_Cache::throwException('Couldnotdeter...'

PHP 警告 : No such file or directory in Unknown on line 0

我在Linux中使用托管,并在Apache2服务器的网站中配置了子域。我正在使用laravel,但默认情况下我没有使用apache2服务。我正在使用laravelartisan命令。phpartisanserve--host0.0.0.0它会监听8000端口。所以为了访问我的网站,我使用了http://myipaddress:8000。访问它。我试过“chmod755or777publicfolder”但还是没用。我的.htaccess在laravel/public文件夹中.htaccessOptions-MultiViewsRewriteEngineOn#RedirectTraili

PHP file_exists 但重命名失败 "No such file or directory..."?

这个问题不太可能帮助任何future的访问者;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况有关,这些情况并不普遍适用于互联网的全局受众。为了帮助使这个问题更广泛地适用,visitthehelpcenter.关闭9年前。考虑到有问题的文件的创建有点滞后于有问题的函数,我尝试运行一个while循环来争取一点时间,然后再调用重命名。$no_file=1;while($no_file&&$no_file在这个配置中,我认为rename()只能在file_exists()返回true时被调用,但对于我的生活我无法弄清楚如何/为什么rename()被调用然后返回失败...PHPWa

php - Nginx stat() 失败 (13 : Permission Denied)

好吧,之前有一些帖子对此进行了发布,但没有解决方案可以解决我的问题。我已经配置了网站,它只是简单的HTML、CSS和JS,我正在尝试添加一个wordpress网站。我的wordpress站点的配置如下。#######################server{listen80;root/usr/share/nginx/threadtheatre/wordpress;indexindex.php;server_namethreadtheatre.co.uk;access_log/var/log/nginx/thread.access.log;error_log/var/log/ngin

php - Zend 框架 2 : Get the path to the root directory of the application

如何获取应用程序根目录的路径。在ZendFramework1中,您可以使用常量APPLICATION_PATH,我们如何在ZendFramework2中获取它?谢谢。 最佳答案 你不应该需要。如果您使用骨架应用程序,它会在应用程序根目录中执行一个chdir();因此,将从该路径创建相对路径。如果您需要完全限定的路径,请调用getcwd()。 关于php-Zend框架2:Getthepathtotherootdirectoryoftheapplication,我们在StackOverflo

php - require(public_html/mywebsite/wp-includes/post.php) 第 142 行的 :failed to open stream: permission denied in public_html/mywebsite/wp-settings. php

我在wordpress中开发了一个网站。但现在我面临一个错误:require(public_html/mywebsite/wp-includes/post.php):failedtoopenstream:permissiondeniedinpublic_html/mywebsite/wp-settings.phponline142==================================================================Fatalerror:require():Failedopeningrequired'/public_html/mywebsit

php - window : Add site directory to Apache config

我的计算机上有一个Apache的本地实例用于开发目的,我正在尝试将站点目录添加到Apache的httpconf文件,其中包含一些我正在尝试使用Eclipse调试的示例Web应用程序。我要添加的目录如下:C:\Eclipse_Workspace\dummyWeb添加路径后,我重新启动了Apache并尝试输入一个URL为:http://localhost/Eclipse_Workspace/dummyWeb/enterGreeting.php但我收到404错误页面。我不确定我必须做什么才能让页面正常打开。我是Apache服务器配置的新手,正在使用ApacheConfLite作为基于GUI的

php - 运行时异常 : Unable to guess the Kernel directory

我正在使用Symfony3.4。突然,每当我尝试在/tests中运行我的测试(phpunit)时,我都会收到以下错误:RuntimeException:UnabletoguesstheKerneldirectory.我的测试类看起来像:classPaymentCreditTestextendsKernelTestCase{/**@varPaymentRepository*/public$paymentRepository;/***{@inheritDoc}*/protectedfunctionsetUp(){$this->paymentRepository=self::bootKern

PHP/ Apache : Permission settings for uploaded JPEG image files not correct

我刚刚设置了一个LAMP开发服务器,并且仍在解决一些问题。服务器安装在一台计算机上,我使用Windows笔记本电脑编写代码并通过网络浏览器测试站点。我的文件上传脚本的工作原理是JPEG图像文件已成功上传到服务器,但是当我尝试在网络浏览器中查看图像时,权限被拒绝。我通过服务器检查文件的权限,它们是600。我可以通过chmod777theimage.jpg解决这个问题,但这似乎根本不是一个好的解决方案。该解决方案是否与Apache配置有关?或者还有什么我应该做的。谢谢,迈克更新澄清一下,我可以将JPEG文件上传到/var/www/test/images,但上传后无法在Web浏览器中查看图像