我在configuration服务器和东西方面的经验很less,所以我完全迷失了。 我试图添加php支持到一个nginx安装,但是当把这个在nginx.conf。 location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; include fastcgi_params; } 和我试图重新启动,我有这个错误消息 [emerg]: unknown directive "fastcgi_pass" in /opt/nginx/conf/nginx.conf:67 任何线索? 提前致谢 PD: nginx -V输出nginx版本:由gcc构build的nginx / 0.7.67 4.1.2 20080704(Red Hat 4.1.2-48)–prefix = / opt / nginx –without-http_fastcgi_module –without-http_memcached_module –without- mail_pop3_module –without-mail_imap_module –without-mail_smtp_module –with-http_flv_module –add-module = .. / nginx_mod_h264_streaming-2.2.7 –without-http-cache
我有一个名为test.php的PHP下的PHP文件设置为每五分钟运行一小时。 当我手动运行文件(通过浏览器并运行path)它工作正常。 但是当cron作业尝试运行它时,我收到错误消息 我的cron工作是 #### Delete Records 5 * * * * /var/www/html/phpsysinfo/cronUpdateLeadBucketOnEnergycAlliance.php 我的phpfile是(path:/ var / www / html / phpsysinfo / phpfile) <?php require("dbconnect.php"); $sql = mysql_query("DELETE FROM list where status <> 'LEAD'") or die(mysql_error()); ?> 和我得到的错误是: /var/www/html/phpsysinfo/phpFile.php: line 1: ?php: No such file or directory /var/www/html/phpsysinfo/phpFile.php: line 2: syntax error near unexpected token […]
我有很多这样的: [NOTICE] child 19214 stopped for tracing [NOTICE] about to trace 19214 [ERROR] ptrace(PEEKDATA) failed: Input/output error (5) [NOTICE] finished trace of 19214 [WARNING] [pool www] child 19208, script 'blahblah.php' executing too slow (30.041419 sec), logging [NOTICE] child 19208 stopped for tracing [NOTICE] about to trace 19208 [ERROR] ptrace(PEEKDATA) failed: Input/output error (5) [NOTICE] finished […]
我一直有问题安装php-fpm与apache2-mpm-worker 。 他是我所遵循的向导 。 根据指南的步骤5, Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization 但是我找不到/usr/lib php5-fcgi ,只能find/usr/bin/php5-cgi和/usr/bin/php-cgi ,我不确定它们是否相同。 所以我改变了第5步的内容: Alias /php5-fcgi /usr/bin/php5-fcgi FastCgiExternalServer /usr/bin/php5-fcgi -host 127.0.0.1:9000 -pass-header 在重新启动Apache,它的日志给了错误: [notice] caught SIGTERM, shutting down [alert] (4)Interrupted system call: FastCGI: read() from pipe failed (0) [alert] (4)Interrupted system call: FastCGI: the PM is shutting down, Apache seems […]
我有一个Ubuntu服务器托pipe一个PHP5 / MySQL的Web应用程序。 我也有另一个服务器(非现场)的目录只是为了我的webapp服务器的备份。 目前,我有一个简单的cron作业,执行以下操作: 将/ var / www复制到本地备份目录。 命令: cp -ua /var/www /backup/www 执行information_schema的mysqldump和我的应用程序的数据库,并将这些文件复制到本地备份目录。 将备份服务器安装为sshfs卷。 将本地备份目录中的所有文件复制到sshfs卷。 问题: 这是一个有效的解决scheme还是专用备份程序工作更好/更快? 我是否覆盖了我所需要的一切? 例如:是否还有我应该备份的configuration文件(PHP,Apache2,MySQL)? 如果有一个专门的备份程序可以更好地满足我的需求,那么您会推荐哪个? 感谢您的任何build议
我正在尝试在Windows 7 Home Premium上使用以下指令安装PHP: 使用FastCGI在IIS 7上托pipePHP应用程序 和页面上的三分之一的方式,我必须这样做: Server Manager -> Roles -> Add Role Services 只是找不到angular色或angular色服务。 有任何想法吗? PHP给了我一个500错误,我想知道是否因为我没有做这个angular色服务的事情。
我正在尝试使用sqlite在我的fedora服务器上工作。 在phpinfo中看到./configure是通过–without-sqlite3选项设置的。 从我读过的这些意味着我可能不得不用sqlite重新编译或重新安装php。 我想知道如何去安装或configurationPHP的SQLite(可能是一个YUM命令?)谢谢
我正在编译PHP 5.3.6,我用作参考的compile configure命令使用–with-layout = GNU选项。 我已经做了一些研究,但我似乎无法find详细的答案。 有人可以详细解释这个选项给我,为什么会使用它? 谢谢!
这是两个不同的PHP文件的故事。 文件1来源: <?php $null->test(); 文件1输出: 致命错误:在一个非对象中调用成员函数test() /wwwroot/sites/example.com/public/fatal.php在第1行 这也打印到/var/log/php-fpm/www-error.log(在我的www.conf中定义) 文件2: class A {} function test(A $obj) { echo 'here…'; } var_dump('started'); $a = new A(); test($a); var_dump('this is going to error out'); test($null); var_dump('do we get here?'); 文件2输出: string“开始”(长度= 7) 这里… string“这将会出错”(长度= 26) 没有错误logging。 /etc/php-fpm.d/www.conf中的相关设置: catch_workers_output = yesphp_flag [display_errors] =开启 php_flag [display_startup_errors] =开启 php_admin_value [error_reporting] = […]
在CentOS 5上通过pecl install apc安装APC后,当从CLI调用PHP时(从apache调用时,加载没有任何问题),APC不加载。 我得到的错误是: root@server [~]# php PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' – /usr/lib64/php/modules/apc.so: undefined symbol: pcre_exec in Unknown on line 0 我在网上search了一个解决scheme,发现很多人都有这个问题。 但是,我无法find一个解决scheme,为我工作。