我在Apache 2.4 / Debian上运行一个WordPress网站的服务器上inheritance了sysadminangular色。 它几乎可以工作,但它不时发出“500内部服务器错误”。 在我的error.log文件中,我看到: End of script output before headers: php5, referer: http://www.xxxxxxx.xxx/wp-admin/post-new.php 我认为服务器运行在全系统mod_fcgid,因为我有 /etc/apache2/conf-enabled/fcgid.conf 具有以下内容: <Location /> AddHandler fcgid-script .php Options +ExecCGI +FollowSymLinks FcgidWrapper /usr/bin/php-cgi .php </Location> <Files ~ (\.php)> AddHandler fcgid-script .php FCGIWrapper /usr/lib/cgi-bin/php5 .php Options ExecCGI FollowSymLinks allow from all </Files> 我发现其他问题, 这里和这里是关于我得到的同样的错误,并引用一些mod_fcgid错误configuration作为可能的原因(PHP_FCGI_CHILDREN和PHP_FCGI_MAX_REQUESTSvariables中的错误值)。 在这个论坛的回复也表明fcgidconfiguration错误,似乎给出了更多的细节问题(一个可能的瓶颈在接受的线程/连接数量),但它缺乏一步一步解释做什么。 我不是mod_fcgid专家。 你能帮我理解我应该为PHP_FCGI_CHILDREN和PHP_FCGI_MAX_REQUESTSvariables设置正确的值吗?
服务器正在初始化,然后卡在IBM System X服务器固件屏幕(F1,F12出现之前等)。 你可以看到附加的图像。 https://www.ibm.com/developerworks/community/forums/html/topic?id=2e573552-118b-4186-b9b8-ba9c971f46c3&ps=25 之后,我加载默认设置在BIOS固定屏幕。 硬件指示灯没有错误指示灯。 谢谢,
我得到致命的错误:在第8行错误C:\ apache2triad \ htdocs \ index.php中找不到类'mysqli' 。 我检查了php.ini文件,看到扩展= php_mysql.dll是uncommented.Everything是正常的。 但在php.ini文件中,它显示我extension_dir是 ; 可加载扩展(模块)所在的目录。 extension_dir =“C:\ apache2triad \ php \ extensions” 当我运行phpinfo()它告诉我这个: extension_dir C:\ php5 C:\ php5
我有2个应用程序,都有基于密码login,数据库等,密码不同,数据库不同,应用程序目前在不同的文件夹。 loginexample.com/abcd的第一个应用程序。 用户名:admin,密码:admin 然后你可以在example.com/abcd1打开第二个应用程序。 即使密码不同,数据库也不同,应用程序出现在不同的文件夹中,但第二个应用程序并不要求login。 它直接进入index.php。 页。 如果我们从第二个应用程序注销,我们也将从第一个应用程序注销。 已经尝试运行下面的脚本: – >在httpd.conf下的pastebin – >下.htaccess没有存在,所以创build一个,并添加SetEnv session.use_cookies ='0'; 要么抛出一个错误。
我特别不能在ubuntu服务器上添加åäö到php-cli。 我可以把它写在php-cli之外的terminal中,我可以创build一个文件test.php并手动编写: <?php echo "åäö"; 并用php -f test.php执行它给我预期的输出。 看着phpinfp(); 我有: default_charset => UTF-8 => UTF-8 mbstring.internal_encoding => UTF-8 => UTF-8 LANG => en_US.UTF-8 我不明白是什么阻止我传递字符到PHP。 什么可能是错的?
一些背景:我正在写一个厨师菜谱,为本地开发build立一个LNMP栈。 它需要PHP 5.4的php-mysql库(使用php包)。 我们使用yum-remi存储库来安装这些库。 对于我们的Web应用程序的本地开发,除了客户端之外,我们还需要安装Percona服务器(5.5)(这个问题在5.6中似乎不存在)。 为了testing只负责安装PHP及其模块的配方,我们只需要通过Percona客户端获得的libmysqlclient.so.16。 现在我只关注让PHP配方工作,但是安装服务器的解决scheme是理想的。 这些从http://repo.percona.com/centos/6/os/x86_64/的repo上使用Chef-Percona食谱 安装的软件包是: install version 5.5.42-rel37.1.el6 of package Percona-Server-devel-55 install version 5.5.42-rel37.1.el6 of package Percona-Server-client-55 PHP-mysql是: yum -d0 -e0 -y install php-mysql-5.4.40-1.el6.remi 总是会抛出这个错误: STDOUT: You could try using –skip-broken to work around the problem You could try running: rpm -Va –nofiles –nodigest STDERR: Error: Percona-XtraDB-Cluster-shared-55 conflicts with Percona-Server-shared-55-5.5.42-rel37.1.el6.x86_64 本质上Percona-XtraDB-Cluster-shared-55是php-mysql的依赖。 […]
我们对Nginx有一个问题。 我们有一个filehoster,我们的用户可以同时下载3个文件。 当我们开始2下载没关系,3下载速度慢,4下载和更多是不可能的。 你知道问题可能出现在哪里吗? 这是我的nginx.conf: user www-data; worker_processes 8; pid /var/run/nginx.pid; worker_rlimit_nofile 20240; events { worker_connections 10240; multi_accept on; use epoll; } http { proxy_connect_timeout 600s; proxy_send_timeout 600s; proxy_read_timeout 600s; fastcgi_send_timeout 600s; fastcgi_read_timeout 600s; ## # Basic Settings ## sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; # server_tokens off; # server_names_hash_bucket_size 64; […]
我在Apache文件夹模式下遇到了Apache 2.4,PHP-FPM和Wordpress Multi用户的情况。 所有非* .php文件都可以在子文件夹中正常工作,就像主要的example.com/subblog/ url一样,但是任何带有.php的文件,如example.com/subblog/wp-login.php都会失败,并且File Not Found来自PHP-FPM。 mod_rewrite文件是: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [PT] RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [PT] RewriteRule […]
我有一个子网站在这样的父母网站下工作: http://example.org/ sub-site ( http://example.org/ sub-site / works too) 一切似乎都运作良好,其中包括: ./ 子网站 /子网段 但这个url不会工作(它返回一个404): ./ 分网站 / 分节 / 我目前的Nginx代码如下: location ^~ /sub-section { alias /usr/share/nginx/html/sub-section/public; try_files $uri $uri/ @sub-section; location ~* \.php$ { fastcgi_pass 127.0.0.1:9000; include /etc/nginx/fastcgi_params; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_buffers 16 16k; fastcgi_buffer_size 32k; } } location @sub-section { rewrite ^/sub-section/(.*)+$ /sub-section/index.php?$1 last; } […]
首先,我是新的nginx,我正在从Apache切换。 我使用ajenti控制面板设置服务器。 我得到了PHP工作得很好。 然而,当我尝试做一个重写规则,我得到一些奇怪的行为。 我把它放在ajenti控制面板的“自定义configuration”区域。 位置/ bitaddiction { 重写^ / bitaddiction / puzzles /(.*)/bitaddiction/index.php?act=playPage&a=$1 break; } 它很简单,一半的作品。 但是,当我去那个url,我得到一个保存对话框,PHP代码被放在该文件。 我将如何去确保PHP解释它,而不是保存在一个文件?