我想知道是否有人曾经遇到过,因为我很难说,我的服务器pipe理知识不是特别好,所以我不知道什么可能是错的,更不用说如何解决它。 基本上, 上周四,我们的服务器上一切正常。 我星期五进来,这是一个混乱:PHP扩展缺失/不工作,Apache模块已经消失。 (例如, oci_*完全消失,odbc_不能正常工作,但仍然存在,单点login的apache ntlm_auth消失了,所以网站甚至没有在IE中加载)。 我排除任何故意的,因为这是不可能的。 星期四和星期五之间真正发生的唯一事情就是在星期四晚上,其中一名networking人员在服务器上进行了RAM升级并重新启动。 就是这样,没有别的。 现在我想知道,如果我们几个月前安装的那些扩展和某些方面只是保存在某种本地内存中,并且重新启动了它们, 但是我们把它们全部安装为root,所以我不明白为什么它和其他安装不一样。 这对我来说是没有意义的。 为了扩展一个非常错误的例子, php odbc_扩展: 它仍然在服务器上,它不会返回未定义的函数或任何东西。 但是它不能再连接到数据源。 我已经通过命令行对它进行了testing,并且与数据源和login信息一起工作得很好,但是突然间在php odbc_connect()函数中出现了,它只是无法连接。 ( [S1000][unixODBC][FreeTDS][SQL Server]Unable to connect to data source. 但unixODBC设置正常。 就像我说我已经通过terminal进行了testing,它可以连接,我们没有改变任何东西,现在突然间没有通过PHPfunction。 任何人有什么想法可以做什么? 顺便说一句,这是在CentOS 5.x上。
我在debian Lenny上使用Apache2与Tomcat,当我尝试访问该网站,其工作,但有时我得到错误500“内部服务器错误”。 从mod_jk.log中,我可以find以下错误 [Mon Oct 29 16:46:00 2012] [30901:139706010294016] [warn] ajp_get_endpoint :: jk_ajp_common.c(3117):无法从1个位置获取worker1的空闲端点[Mon Oct 29 16:46:00 2012] [30901:139706010294016] [error] jk_handler :: mod_jk.c(2552):无法获得worker = worker1的端点 以下是我的workers.properties中的configuration worker.worker1.type = AJP13 worker.worker1.host =本地主机 worker.worker1.port = 8009 worker.worker1.cachesize = 10 worker.worker1.cache_timeout = 600 worker.worker1.socket_keepalive = 1 worker.worker1.reclycle_timeout = 300 有人能帮我find并解决这个问题吗?
我试图通过Pre VirtualHost Include设置域别名,我收到以下错误: Error: An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf Exit signal was: 0 Exit value was: 1 Output was: — Syntax error on line 15 of /usr/local/apache/conf/includes/pre_virtualhost_global.conf: CustomLog takes two or three arguments, a file name, a custom log format string or format name, and an optional "env=" clause (see […]
我想将服务器上的所有虚拟主机设置为维护一段时间。 临时页面应该包含类似的东西 对不起,页面www.xxx.com因维护而closures。 你可以在这里看到caching版本: 然后,诀窍:只要服务器closures,用户应该从caching中看到像googlecache或类似的caching页面。 这将显示正确的内容在网页上,静态无论如何,给访问者在许多情况下所需的内容,而我可以closures通常需要显示该网页的MySQL和其他服务。 如何在所有虚拟主机上设置全局页面,通过PHPparsing原始请求的URL?
我在RewriteRule使用了包含utf8字符的.htaccess文件中的以下语句。 .htaccess文件以utf8编码保存在记事本中。 网站的所有页面都保存在utf8中,所有的字符集都是utf8。 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /new/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^هاستینگ/هاست-لینوکس-عادی/$ /linux-regular.php [L] </IfModule> 但是,当我浏览到URL هاستینگ/هاست-لینوکس-عادی/只是我得到未find错误。
我的网站只加载www.domain.com格式不与domain.com。 任何想法为什么? 这是我的设置: NameVirtualHost *:80 <VirtualHost *:80> ServerAdmin [email protected] ServerName domain.com ServerAlias domain.com www.domain.com DocumentRoot /var/www/domain.com/public_html/ ErrorLog /var/www/domain.com/logs/error.log </VirtualHost> 我的DNS设置: A / AAAAlogging Hostname IP Address TTL 123.123.123.123 Default www 123.123.123.123 Default 在Apache2上运行Ubuntu
OSX Mountain Lion和Apache 2.2.22。 我一直把httpd.conf设置为: 用户www组www 它正在运行。 直到今天。 重新启动服务器的另一个原因,当我试图通过FTP在今天晚上的FTP网站的一些变化,它说,访问被拒绝。 必须看看进程和httpd现在运行为_www。 WTH? 现在当然,我所有的用户都会得到拒绝的消息,因为他们都是由www用户创build和允许的,而不是_www。 任何想法,为什么发生这种事情,或者我可能做了什么事情呢?
我有一个ajax webapp,我想使索引到谷歌。 我的path使用hashbang,如下所示: http://tld.com/?_escaped_fragment_en/news http://tld.com/?_escaped_fragment_de/news 要么 http://tld.com/?_escaped_fragment_en/news/news-item-name http://tld.com/?_escaped_fragment_de/news/news-item-name 考虑到networking的无限方式,也可能是我的URL看起来像下面这样: http://tld.com/index.html?_escaped_fragment_en/news/news-item-name 要么 http://tld.com/index?_escaped_fragment_en/news/news-item-name 我有一个包含标记的文件,应该在search引擎的一个名为“fragments”的文件夹中可见,这个文件夹在网站的documentroot的根目录下。 这些按文件夹组织,如: /fragments/en/ -> containing a file called news 要么 /fragments/en/ -> /news , containg a file called news-item-name Google根据https://developers.google.com/webmasters/ajax-crawling/docs/specification的规定将这些文件作为?_escaped_fragment_请求。 我需要创build一个Apache重写规则,即映射一个请求,例如, http://tld.com/index.html?_indexed_fragment=en/news/news-item-name 到我的文件系统上的相关文件(/ fragments / en / news / news-item-name),以便快照可以被提供给爬虫。 我目前有以下规则: RewriteEngine On RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$ RewriteRule ^$ /fragments/%1 这些不幸的是不能处理文件夹结构,他们只是在片段目录中寻找一个文件。
我在Windows 7×64上安装了EasyPHP 12.1(最新版本),我试图为PHP启用mod_fcgid 。 我在httpd.conf添加了以下内容 Include conf/extra/httpd-vhosts.conf LoadModule fcgid_module modules/mod_fcgid.so FcgidInitialEnv PHPRC "C:\progra~2\EasyPHP-12.1\php\php546x121028092509" AddHandler fcgid-script .php FcgidWrapper "C:\progra~2\EasyPHP-12.1\php\php546x121028092509/php-cgi.exe" .php 和Options ExecCGI Indexes FollowSymLinks在<Directory "${path}/www"> 我已经确定path都很好,并在整个C:\progra~2\EasyPHP-12.1上设置权限,并将我的www root权限设置为Everyone – Allow All 。 然而,我仍然得到403所有服务器(本地主机)请求。 随着Apache/2.4.2 (Win32) PHP/5.4.6 mod_fcgid/2.3.7所以我知道 mod_fcgid启用,并导致403。 从httpd.conf注释掉上面的这些行使得它再次起作用,但是比死亡要慢(这就是为什么我想要mod_fcgid)。 我可能做错了什么? 编辑::错误日志 AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist [Mon Nov […]
我在我的LAMP(hp)堆栈上有以下问题,我不时得到Segmentation fault 。 所以我在我的Debian Squeeze做了一个核心转储,我希望它能告诉我一些东西,但它并没有告诉我什么: Reading symbols from /usr/sbin/apache2…Reading symbols from /usr/lib/debug/usr/sbin/apache2-mpm-prefork…done. (no debugging symbols found)…done. Core was generated by `/usr/sbin/apache2 -k start'. Program terminated with signal 11, Segmentation fault. #0 0x00007f479782ca9d in ?? () (gdb) bt full #0 0x00007f479782ca9d in ?? () No symbol table info available. #1 0x00007f4700000002 in ?? () No symbol […]