我试图在Debian 7 32bit盒子上安装PHP4,但是我遇到了以下情况 root@php4:~# apt-get update Get:1 http://snapshot.debian.org lenny Release.gpg [189 B] Hit http://snapshot.debian.org lenny Release Ign http://snapshot.debian.org lenny Release Hit http://snapshot.debian.org lenny/main Sources/DiffIndex Hit http://snapshot.debian.org lenny/main i386 Packages/DiffIndex Hit http://ftp.us.debian.org wheezy Release.gpg Hit http://security.debian.org wheezy/updates Release.gpg Ign http://snapshot.debian.org lenny/main Translation-en_US Ign http://snapshot.debian.org lenny/main Translation-en Hit http://ftp.us.debian.org wheezy Release Hit http://security.debian.org wheezy/updates Release Hit http://ftp.us.debian.org […]
我试图安装php-pdo,但它总是因为php常见而失败 bash-3.2# yum install php-pdo Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * epel: fedora-epel.mirror.lstn.net Setting up Install Process Resolving Dependencies –> Running transaction check —> Package php-pdo.i386 0:5.1.6-40.el5_9 set to be updated –> Processing Dependency: php-common = 5.1.6-40.el5_9 for package: php-pdo –> Finished Dependency Resolution php-pdo-5.1.6-40.el5_9.i386 from base has depsolving problems –> […]
让PHP-FPM / FastCGI启动并在我的cPanel / WHM服务器上运行,但我希望允许多个用户closures一个池。 通过将其添加到Global Post Vhost下的Apache包含编辑器中,让所有虚拟主机运行单个池是非常简单的: <IfModule mod_fastcgi.c> FastCGIExternalServer /usr/local/sbin/php-fpm -host 127.0.0.1:9000 AddHandler php-fastcgi .php Action php-fastcgi /usr/local/sbin/php-fpm.fcgi ScriptAlias /usr/local/spin/php-fpm.fcgi /usr/local/sbin/php-fpm <Directory /usr/local/sbin> Options ExecCGI FollowSymLinks SetHandler fastcgi-script Order allow,deny Allow from all </Directory> </IfModule> 但我想find一种方法来实现在用户下运行的PHP,但共享池。 我pipe理和控制在池下运行的所有域,所以我不担心每个帐户的文件的安全性,我只需要确保所有脚本可以由拥有这些文件的用户执行,而不需要更改文件每个帐户的权限,或者必须创build大量的虚拟主机包含文件。
我正在尝试nginx并将我现有的apacheconfiguration移植到nginx。 我设法重新路由codeigniterurl的成功,但我有一个特定的控制器,其名称与站点根目录一致的问题。 我设法使我的codeigniterurl的工作,因为它在Apache中,除了我有一个特定的URL说http://localhost/hello这与网站根目录中的hello目录一致。 Apache对此没有任何问题。 但是nginx路由到这个目录而不是控制器。 我的重新路由结构如下 http://host_name/incoming_url => http://host_name/index.php/incoming_url 所有codeigniter文件都在站点根目录下。 我的nginxconfiguration(相关部分) location / { # First attempt to serve request as file, then # as directory, then fall back to index.html index index.php index.html index.htm; try_files $uri $uri/ /index.php/$request_uri; #apache rewrite rule conversion if (!-e $request_filename){ rewrite ^(.*)/?$ /index.php?/$1 last; } # Uncomment to enable […]
每当我尝试安装新的laravel项目,我收到以下错误: PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed – Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:990 有没有人有任何想法,为什么这个错误可能发生,我在nginx上运行服务器。 如果有任何其他细节可能需要,列出他们作为评论,我会愉快地编辑+更新post,谢谢。
我只是下载了nginx 1.4,马上就看到“Welcome to nginx!” 消息,那么我已经安装了php5-fpm ,所以我在/usr/share/nginx/html/demo.php上创build了一个php文件,只是用<?php echo "Hello World"; ?> <?php echo "Hello World"; ?>里面。 (我试着在ElementaryOS Ubuntu 12.04的基础上),并遵循本手册: http : //wiki.nginx.org/PHPFcgiExample 然后当我访问http://localhost/demo.php它不起作用,我给了一个404错误。 这是我的/etc/nginx/conf.d/default.conf文件: server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/log/host.access.log main; location / { root /usr/share/nginx/html; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page […]
我试图启用Apache 2.2.15和5.3.3的输出压缩,但由PHP生成的网页不压缩:( 我的deflate.conf: [user@host conf.d]# cat deflate.conf <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE application/x-httpd-php AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript DeflateCompressionLevel 9 # Browser specific settings BrowserMatch […]
我们刚刚在我们的服务器上安装了APC,查看APC的统计数据后,看起来APC的caching需要大约5-10分钟才能填满,然后完全清空。 当前设置包括: apc.shm_segments 1 apc.shm_size 256M apc.ttl 1800 apc.user_ttl 1800 服务器有16GB的RAM,运行〜40个虚拟主机。 我的主要疑问是: 大概,shm_size的值应该设置为? 1 – 2GB安全吗? 还是完全取决于在服务器上运行的应用程序? 我读过ttl会删除'expired'caching文件,那么将ttl设置为低于caching填充所需的时间是个好主意? 设置多个共享内存段是否有优势?
我有我的PHP运行在Centos 6.5(最终)。 我有一个问题,那就是我的一个潜在客户在远程login并redirect会话时空了。他甚至在其他机器或浏览器上尝试过,在那个networking中是一样的。 以下是我所做的检查清单。 页面的每一个顶部都有会话开始 在redirect语句之后,我把exit() 客户确保启用cookies。 我还能做些什么来克服这个问题? 可能是服务器端或客户端问题?
我正在尝试安装Opencats.For,这是必需的,使肥皂。我已经启用肥皂。 soap Soap Client => enabled Soap Server => enabled soap.wsdl_cache => 1 => 1 soap.wsdl_cache_dir => /tmp => /tmp soap.wsdl_cache_enabled => 1 => 1 soap.wsdl_cache_limit => 5 => 5 soap.wsdl_cache_ttl => 86400 => 86400 但是,虽然安装仍然显示 PHP SOAP extension (soap) is not loaded. Check your settings in php.ini. CATS Open Source will function without SOAP, […]