在Centos for PHP 7上安装mod_php

我使用Chef通过 httpd cookbook 。 但是,使用该cookbook安装 mod_php </ code>将安装PHP 5模块,即使我已将remi设置为安装PHP 7( php -v </ code>输出版本7.1)。</ p>

如何在 Centos 6.7 </ strong>上手动安装(使用yum或其他)Apache PHP 7模块( php7_module </ code>)? </ p>
</ div>

展开原文

原文

I was using Chef to provision Apache with PHP module using the httpd cookbook. However, installing mod_php with that cookbook would install the PHP 5 module , even though I had remi set up to install PHP 7 (php -v outputs version 7.1).

How do I manually install (using yum or something) Apache PHP 7 module (php7_module) on Centos 6.7?

dry9192
dry9192 在Centos中没有apache2,它叫做httpd
3 年多之前 回复
duan1983
duan1983 厨师解决方案会更好。
3 年多之前 回复
dt102282
dt102282 “rpm-qa'php*'”输出将有所帮助。(php包提供mod_php扩展名)
3 年多之前 回复
doupike2351
doupike2351 您想要通过yum安装Chef解决方案还是vanilla?
3 年多之前 回复
douqie1852
douqie1852 猜你在运行apache2?试过a2enmodphp7.1?
3 年多之前 回复

1个回答



它正在安装PHP5,因为该菜谱假设只支持那个。 如果您想要进行更改,可以为您的环境更改/更新/包装module_helper.rb文件并进行测试。</ p>

https://github.com/chef-cookbooks/httpd/blob/master/libraries/httpd_module.rb </ a> </ p>
</ div>

展开原文

原文

It is installing PHP5 because that cookbook is suppose to support only upto that. If you want a change, you can go and change/update/wrapper the module_helper.rb file for your environment and test it out.

https://github.com/chef-cookbooks/httpd/blob/master/libraries/httpd_module.rb

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
如何检查php中是否启用了mod_rewrite?

<div class="post-text" itemprop="text"> <p>I was wondering if it is possible to check if <code>mod_rewrite</code> is enabled on <strong>Apache</strong> AND <strong>IIS</strong> in <strong><code>PHP</code></strong>.</p> <p><strong>ModRewrite</strong> for IIS exists. Check it <a href="http://www.micronovae.com/ModRewrite/ModRewrite.html" rel="noreferrer"><code>here</code></a>.</p> <p>So, I'm looking for a PHP script that checks for <code>mod_rewrite</code> on <strong>Apache</strong> and <strong>IIS.</strong></p> <p>Does anyone know such script or can write one?</p> <p>Especially for Microsoft <strong>IIS</strong>.</p> <p>Thanks!</p> </div>

如何启用Mod_Rewrite

<div class="post-text" itemprop="text"> <p>Currently, I am running CentOS 7 with php 7. For the life of me, I can't get mod_rewrite working.</p> <p>I am testing by using this code</p> <pre><code>if (function_exists("apache_get_modules")) { $modules = apache_get_modules(); $mod_rewrite = in_array("mod_rewrite",$modules); if($mod_rewrite) { $result[] = '&lt;span class="label label-success"&gt;&lt;i class="icon-ok icon-white"&gt;&lt;/i&gt; mod_rewrite is enabled&lt;/span&gt;'; $score++; } else $result[] = '&lt;span class="label label-warning"&gt;&lt;i class="icon-remove icon-white"&gt;&lt;/i&gt; mod_rewrite is not enabled&lt;/span&gt;'; } else $result[] = '&lt;span class="label label-warning"&gt;&lt;i class="icon-remove icon-white"&gt;&lt;/i&gt; mod_rewrite is not enabled&lt;/span&gt;'; </code></pre> <p>And it show "Mod_Rewrite is not enabled"</p> <p>Eventhough I have added AllowOverride All to my Virtual Host in httpd.conf file</p> <pre><code> &lt;Directory "/home/mailingmm/public_html"&gt; AllowOverride All SSILegacyExprParser On &lt;/Directory&gt; </code></pre> <p>Could you show me how to enable mod_rewrite? and how to test if mod_rewrite is on?</p> <p>Thanks</p> </div>

apache mod_chroot模块问题

最近研究使用apache的mod_chroot增加apache的安全性。 遇到2个问题求大神帮忙,环境centos下lamp~~~ 1)exec执行ping命令。php执行程序可以正常,通过浏览器访问没有反应,也不报错。 2)apache加载了mod_fcgid.so用于处理cgi逻辑。apache启动不起来,报错: [Mon Aug 31 07:49:37.000677 2015] [:notice] [pid 28126] mod_chroot: changed root to /var/www. [Mon Aug 31 07:49:37.000776 2015] [fcgid:emerg] [pid 28126] (2)No such file or directory: mod_fcgid: Can't create shared memory for size 1200712 bytes 求大神指点,谢谢~~~

CentOS + Apache:您无权访问此服务器上的/info.php

<div class="post-text" itemprop="text"> <p>I have installed CentOS 7 with Apache Web Server and PHP. But when I try to test php I've got this error</p> <p><a href="https://i.stack.imgur.com/SetLT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SetLT.png" alt="enter image description here"></a></p> <p>The user and group of info.php are "apache"</p> <p><a href="https://i.stack.imgur.com/YHNqg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YHNqg.png" alt="enter image description here"></a></p> <p>My Document Root is defined like you can see:</p> <p><a href="https://i.stack.imgur.com/29MyT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/29MyT.png" alt="enter image description here"></a></p> <p>If I try to access with <a href="http://localhost" rel="nofollow noreferrer">http://localhost</a> it works, but when I try to access with <a href="http://localhost/info.php" rel="nofollow noreferrer">http://localhost/info.php</a> then it fails!!!</p> <p>I have installed php and php-fpm package. Maybe Would I need other packages?</p> <p>What am I doing wrong?</p> <p><strong>Edit I:</strong></p> <p>Looking for an error in access_log file I have found this error:</p> <p><a href="https://i.stack.imgur.com/awJiL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/awJiL.png" alt="enter image description here"></a></p> <p>Why I get this error?</p> <p><strong>Edit II:</strong></p> <p>Looking for in error_log file I have found that is a problem of permissions:</p> <pre><code>[Tue Jul 24 18:44:21.084670 2018] [mime_magic:error] [pid 4986] [client ::1:38162] AH01512: mod_mime_magic: can't read `/var/www/html/info.php' [Tue Jul 24 18:44:21.084848 2018] [core:error] [pid 4986] (13)Permission denied: [client ::1:38162] AH00132: file permissions deny server access: /var/www/html/info.php </code></pre> <p>But the file belongs to "apache" user and group ... :(</p> <p><a href="https://i.stack.imgur.com/ZI5r4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZI5r4.png" alt="enter image description here"></a></p> <p><strong>Edit III:</strong></p> <p><a href="https://i.stack.imgur.com/RI8o1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RI8o1.png" alt="enter image description here"></a></p> </div>

是否Nginx + php-fpm比Apache + mod-php快得多

<div class="post-text" itemprop="text"> <p>I'm having a PHP based web application running on Apache server which has considerable amount of php processing in back end. Since the overall performance is low I worked on improving the performance of the application. First I followed techniques such as client side caching, gzip enabling, js-css minifying which improved the performance upto a good extend. </p> <p>In order to further improve the performance I wanted to try out server level improvement. So I tried to compare the application performance by hosting it on Apache and Nginx servers.</p> <ul> <li>Nginx version - 1.0.15;</li> <li>Apache version - 2.2.15;</li> <li>php version - 5.4.38;</li> </ul> <p>In Apache I user Apache + mod-php and in Nginx I used Nginx + php-fpm for this comparison. As most of the tutorials explained I configured the number of Nginx workers equal to the number of cores in my processor. I used jmeter to do the stress testing and following are the graphs I could generate out of it.</p> <p>In all these graphs x-axis is each request I sent and y-axis is milliseconds for getting response for each request.</p> <p><strong>Access the login page</strong></p> <p><img src="https://i.stack.imgur.com/qMNyy.png" alt="enter image description here"></p> <p><strong>Submit the login page</strong></p> <p><img src="https://i.stack.imgur.com/my6jB.png" alt="enter image description here"></p> <p><strong>Access home page</strong></p> <p><img src="https://i.stack.imgur.com/si8Te.png" alt="enter image description here"></p> <p>I could only perform the testing upto 100 concurrent users logged in within 1 second because it started dropping requests after then in both server setups.</p> <p><strong>There was a little improvement on performance in Nginx than Apache but it was not a major difference where it's worth to change all my server architecture from Apache to Nginx. And when I observe the server resource utilization also I didn't find much of difference between Nginx and Apache</strong></p> <p>When I went through other comparisons people have done, I found that they claim Nginx is much more faster in concurrent accesses such as following graph shows.</p> <p><a href="http://www.eschrade.com/wp-content/uploads/2014/01/event-mpm-nginx.gif" rel="noreferrer">http://www.eschrade.com/wp-content/uploads/2014/01/event-mpm-nginx.gif</a></p> <p>But I was unable to observe any major difference of performance in Nginx over Apache even with 100 concurrent access within 1 second.</p> <p>Following are my questions.</p> <ol> <li>Is Nginx + php-fpm is suppose to do server operations much faster than Apache + mod-php due to efficient usage of memory and other resources ?</li> <li>Is Nginx only recommended to server static contend and not for heavy server operation sites ?</li> <li>Is there any better way of configuring Nginx to gain more performance improvement ?</li> </ol> </div>

如何在php 7中启用MySQLi扩展?

<div class="post-text" itemprop="text"> <p>I have installed PHP 7, MySQL 5.5.47 on Ubuntu 14.04. I have checked installed extension using :</p> <pre><code>sudo apt-cache search php7-* </code></pre> <p>Its output me:</p> <pre><code>php7.0-common - Common files for packages built from the PHP source libapache2-mod-php7.0 - server-side, HTML-embedded scripting language (Apache 2 module) php7.0-cgi - server-side, HTML-embedded scripting language (CGI binary) php7.0-cli - command-line interpreter for the PHP scripting language php7.0-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary) php7.0-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary) libphp7.0-embed - HTML-embedded scripting language (Embedded SAPI library) php7.0-dev - Files for PHP7.0 module development php7.0-dbg - Debug symbols for PHP7.0 php7.0-curl - CURL module for PHP php7.0-enchant - Enchant module for PHP php7.0-gd - GD module for PHP php7.0-gmp - GMP module for PHP php7.0-imap - IMAP module for PHP php7.0-interbase - Interbase module for PHP php7.0-intl - Internationalisation module for PHP php7.0-ldap - LDAP module for PHP php7.0-mcrypt - libmcrypt module for PHP php7.0-readline - readline module for PHP php7.0-odbc - ODBC module for PHP php7.0-pgsql - PostgreSQL module for PHP php7.0-pspell - pspell module for PHP php7.0-recode - recode module for PHP php7.0-snmp - SNMP module for PHP php7.0-tidy - tidy module for PHP php7.0-xmlrpc - XMLRPC-EPI module for PHP php7.0-xsl - XSL module for PHP php7.0 - server-side, HTML-embedded scripting language (metapackage) php7.0-json - JSON module for PHP php-all-dev - package depending on all supported PHP development packages php7.0-sybase - Sybase module for PHP php7.0-sqlite3 - SQLite3 module for PHP php7.0-mysql - MySQL module for PHP php7.0-opcache - Zend OpCache module for PHP php7.0-bz2 - bzip2 module for PHP </code></pre> <p>I am not able to see MySQLi extension using phpinfo() as well,please let me know,how can I enable/install MySQLi extension in PHP 7. That's why I cannot use phpmyadmin, its says "The mysqli extension is missing."</p> <p><em>Note: I am new in php7.</em></p> </div>

centos安装apache之后,测试页面打不开

centos安装apache之后,测试页面打不开 我在电脑172.17.5.80上安装了apache 安装方法是: > 1、安装Apache > > [root@localhost ~]# yum -y install httpd > > # 开机自启动 > > [root@localhost ~]# chkconfig httpd on > > # 启动httpd 服务 > > [root@localhost ~]# service httpd start > > ### 安装apache 一些扩展 > > root@localhost ~]# yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql > > > 现在直接在浏览器键入http://localhost 或 http://本机IP ,应该会看到Apache的测试页面 > > 这里需要注意iptables的设置哦。 到这问题来了 http://172.17.5.80 打不开, 请问知道什么原因吗

使用mod_filter而不是mod_deflate,.htaccess方式

<div class="post-text" itemprop="text"> <p>I've a Wordpress site running in a VPS but it's extremely slow, take a look <a href="http://elclarinweb.com" rel="nofollow noreferrer">here</a>. This what I've in <code>.htaccess</code> file:</p> <pre><code># BEGIN WordPress &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] &lt;/IfModule&gt; # END WordPress # Gzip Support Compress text, html, javascript, css, xml: AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddType x-font/otf .otf AddType x-font/ttf .ttf AddType x-font/eot .eot AddType x-font/woff .woff AddType image/x-icon .ico AddType image/png .png # BEGIN W3TC Browser Cache &lt;IfModule mod_mime.c&gt; AddType text/css .css AddType text/x-component .htc AddType application/x-javascript .js AddType application/javascript .js2 AddType text/javascript .js3 AddType text/x-js .js4 AddType text/html .html .htm AddType text/richtext .rtf .rtx AddType image/svg+xml .svg .svgz AddType text/plain .txt AddType text/xsd .xsd AddType text/xsl .xsl AddType text/xml .xml AddType video/asf .asf .asx .wax .wmv .wmx AddType video/avi .avi AddType image/bmp .bmp AddType application/java .class AddType video/divx .divx AddType application/msword .doc .docx AddType application/vnd.ms-fontobject .eot AddType application/x-msdownload .exe AddType image/gif .gif AddType application/x-gzip .gz .gzip AddType image/x-icon .ico AddType image/jpeg .jpg .jpeg .jpe AddType application/json .json AddType application/vnd.ms-access .mdb AddType audio/midi .mid .midi AddType video/quicktime .mov .qt AddType audio/mpeg .mp3 .m4a AddType video/mp4 .mp4 .m4v AddType video/mpeg .mpeg .mpg .mpe AddType application/vnd.ms-project .mpp AddType application/x-font-otf .otf AddType application/vnd.ms-opentype .otf AddType application/vnd.oasis.opendocument.database .odb AddType application/vnd.oasis.opendocument.chart .odc AddType application/vnd.oasis.opendocument.formula .odf AddType application/vnd.oasis.opendocument.graphics .odg AddType application/vnd.oasis.opendocument.presentation .odp AddType application/vnd.oasis.opendocument.spreadsheet .ods AddType application/vnd.oasis.opendocument.text .odt AddType audio/ogg .ogg AddType application/pdf .pdf AddType image/png .png AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx AddType audio/x-realaudio .ra .ram AddType application/x-shockwave-flash .swf AddType application/x-tar .tar AddType image/tiff .tif .tiff AddType application/x-font-ttf .ttf .ttc AddType application/vnd.ms-opentype .ttf .ttc AddType audio/wav .wav AddType audio/wma .wma AddType application/vnd.ms-write .wri AddType application/font-woff .woff AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw AddType application/zip .zip &lt;/IfModule&gt; &lt;IfModule mod_expires.c&gt; ExpiresActive On ExpiresByType text/css A31536000 ExpiresByType text/x-component A31536000 ExpiresByType application/x-javascript A31536000 ExpiresByType application/javascript A31536000 ExpiresByType text/javascript A31536000 ExpiresByType text/x-js A31536000 ExpiresByType text/html A3600 ExpiresByType text/richtext A3600 ExpiresByType image/svg+xml A3600 ExpiresByType text/plain A3600 ExpiresByType text/xsd A3600 ExpiresByType text/xsl A3600 ExpiresByType text/xml A3600 ExpiresByType video/asf A31536000 ExpiresByType video/avi A31536000 ExpiresByType image/bmp A31536000 ExpiresByType application/java A31536000 ExpiresByType video/divx A31536000 ExpiresByType application/msword A31536000 ExpiresByType application/vnd.ms-fontobject A31536000 ExpiresByType application/x-msdownload A31536000 ExpiresByType image/gif A31536000 ExpiresByType application/x-gzip A31536000 ExpiresByType image/x-icon A31536000 ExpiresByType image/jpeg A31536000 ExpiresByType application/json A31536000 ExpiresByType application/vnd.ms-access A31536000 ExpiresByType audio/midi A31536000 ExpiresByType video/quicktime A31536000 ExpiresByType audio/mpeg A31536000 ExpiresByType video/mp4 A31536000 ExpiresByType video/mpeg A31536000 ExpiresByType application/vnd.ms-project A31536000 ExpiresByType application/x-font-otf A31536000 ExpiresByType application/vnd.ms-opentype A31536000 ExpiresByType application/vnd.oasis.opendocument.database A31536000 ExpiresByType application/vnd.oasis.opendocument.chart A31536000 ExpiresByType application/vnd.oasis.opendocument.formula A31536000 ExpiresByType application/vnd.oasis.opendocument.graphics A31536000 ExpiresByType application/vnd.oasis.opendocument.presentation A31536000 ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000 ExpiresByType application/vnd.oasis.opendocument.text A31536000 ExpiresByType audio/ogg A31536000 ExpiresByType application/pdf A31536000 ExpiresByType image/png A31536000 ExpiresByType application/vnd.ms-powerpoint A31536000 ExpiresByType audio/x-realaudio A31536000 ExpiresByType image/svg+xml A31536000 ExpiresByType application/x-shockwave-flash A31536000 ExpiresByType application/x-tar A31536000 ExpiresByType image/tiff A31536000 ExpiresByType application/x-font-ttf A31536000 ExpiresByType application/vnd.ms-opentype A31536000 ExpiresByType audio/wav A31536000 ExpiresByType audio/wma A31536000 ExpiresByType application/vnd.ms-write A31536000 ExpiresByType application/font-woff A31536000 ExpiresByType application/vnd.ms-excel A31536000 ExpiresByType application/zip A31536000 &lt;/IfModule&gt; &lt;IfModule mod_deflate.c&gt; &lt;IfModule mod_headers.c&gt; Header append Vary User-Agent env=!dont-vary &lt;/IfModule&gt; AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json &lt;IfModule mod_mime.c&gt; # DEFLATE by extension AddOutputFilter DEFLATE js css htm html xml &lt;/IfModule&gt; &lt;/IfModule&gt; &lt;FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$"&gt; &lt;IfModule mod_headers.c&gt; Header set Pragma "public" Header append Cache-Control "public" &lt;/IfModule&gt; &lt;/FilesMatch&gt; &lt;FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$"&gt; &lt;IfModule mod_headers.c&gt; Header set Pragma "public" Header append Cache-Control "public" &lt;/IfModule&gt; &lt;/FilesMatch&gt; &lt;FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|woff|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|WAV|WMA|WRI|WOFF|XLA|XLS|XLSX|XLT|XLW|ZIP)$"&gt; &lt;IfModule mod_headers.c&gt; Header set Pragma "public" Header append Cache-Control "public" &lt;/IfModule&gt; &lt;/FilesMatch&gt; # END W3TC Browser Cache </code></pre> <p>I'm using also W3C Total Cache plugin but for some reason the GZIP output is not enabled and I can't find the right way to enable it in order to speedup the site. I have read all this topics:</p> <ul> <li><a href="https://serverfault.com/questions/555545/mod-deflate-centos-application-x-httpd-php">https://serverfault.com/questions/555545/mod-deflate-centos-application-x-httpd-php</a></li> <li><a href="https://serverfault.com/questions/555140/apache-mod-deflate-does-not-compress-php-output/555260#555260">https://serverfault.com/questions/555140/apache-mod-deflate-does-not-compress-php-output/555260#555260</a></li> <li><a href="https://stackoverflow.com/questions/5230202/apache-addoutputfilterbytype-is-deprecated-how-to-rewrite-using-mod-filter">Apache AddOutputFilterByType is deprecated. How to rewrite using mod_filter?</a></li> </ul> <p>Also the oficcial docs:</p> <ul> <li><a href="http://httpd.apache.org/docs/trunk/mod/mod_filter.html" rel="nofollow noreferrer">http://httpd.apache.org/docs/trunk/mod/mod_filter.html</a></li> <li><a href="http://httpd.apache.org/docs/2.2/mod/mod_deflate.html" rel="nofollow noreferrer">http://httpd.apache.org/docs/2.2/mod/mod_deflate.html</a></li> </ul> <p>But I'm not getting any positive results. My question, for now, is: how do I enable|use <code>mod_filter</code> from <code>.htaccess</code> file? It's possible? I've access to server VPS setup I mean Apache config files but I want to keep as far as I can't from them since I'm not an expert and fear to damage something.</p> <p>Can any give me some help?</p> </div>

在哪里设置PHP_FCGI_MAX_REQUESTS值?

<div class="post-text" itemprop="text"> <p>I have a </p> <blockquote> <p>"mod_fcgid ap_pass_brigade failed in handle_request_ipc function"</p> </blockquote> <p>error in my apache log. Some StackOverflow qnswers suggested I change the PHP_FCGI_MAX_REQUESTS value to fix this issue. However I cannot seem to find where this value is to be set(i.e. what file? path?) I am using LAMP on centos with Plesk panel to maintain.</p> </div>

centos 6.4:apache没有加载xdebug。 说未定义的符号:sapi_globals

<div class="post-text" itemprop="text"> <p>I am using centos 6.4</p> <pre><code>[root@storm]# cat /etc/centos-release CentOS release 6.4 (Final) </code></pre> <p>I have installed xdebug using the command (only showing the partial output)</p> <pre><code>[root@storm]# pecl install Xdebug Failed loading xdebug.so: xdebug.so: cannot open shared object file: No such file or directory downloading xdebug-2.3.2.tgz ... Starting to download xdebug-2.3.2.tgz (266,287 bytes) ........................................................done: 266,287 bytes 74 source files, building running: phpize Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 building in /var/tmp/pear-build-rootNTtRn6/xdebug-2.3.2 . . . Build process completed successfully Installing '/usr/lib64/php/modules/xdebug.so' install ok: channel://pecl.php.net/xdebug-2.3.2 configuration option "php_ini" is not set to php.ini location You should add "zend_extension=/usr/lib64/php/modules/xdebug.so" to php.ini </code></pre> <p>The following is my /etc/php.ini</p> <pre><code>[xdebug] zend_extension=/usr/lib64/php/modules/xdebug.so xdebug.remote_autostart=on xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 </code></pre> <p>after i do</p> <pre><code>[root@storm]# service httpd restart </code></pre> <p>I see the following lines added in the /var/log/httpd/error.log</p> <pre><code>[Fri Jul 24 13:21:12 2015] [notice] caught SIGTERM, shutting down Failed loading /usr/lib64/php/modules/xdebug.so: /usr/lib64/php/modules/xdebug.so: undefined symbol: sapi_globals Failed loading /usr/lib64/php/modules/xdebug.so: /usr/lib64/php/modules/xdebug.so: undefined symbol: sapi_globals [Fri Jul 24 13:21:14 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Fri Jul 24 13:21:14 2015] [notice] Digest: generating secret for digest authentication ... [Fri Jul 24 13:21:14 2015] [notice] Digest: done [Fri Jul 24 13:21:14 2015] [notice] Apache/2.2.24 (Unix) DAV/2 PHP/5.4.43 configured -- resuming normal operations </code></pre> <p>which shows xdebug in not loaded.</p> <p>The following is the php details</p> <pre><code>[root@storm]# php -v PHP 5.4.43 (cli) (built: Jul 8 2015 12:08:50) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with Xdebug v2.3.3, Copyright (c) 2002-2015, by Derick Rethans with Zend OPcache v7.0.4, Copyright (c) 1999-2014, by Zend Technologies </code></pre> <p>I have test.php with</p> <pre><code>&lt;?php phpinfo(); ?&gt; </code></pre> <p>when i open <a href="http://localhost/test.php" rel="nofollow">http://localhost/test.php</a> in browser the following is the output. (it does not show xdebug as loaded because of which i got the doubt and saw the output of /var/log/httpd/error.log)</p> <pre><code>PHP Logo PHP Version 5.4.43 System Linux storm.temple 2.6.32-358.11.1.el6.x86_64 #1 SMP Wed Jun 12 03:34:52 UTC 2013 x86_64 Build Date Jul 8 2015 12:10:43 Server API Apache 2.0 Handler Virtual Directory Support enabled Configuration File (php.ini) Path /etc Loaded Configuration File /etc/php.ini Scan this dir for additional .ini files /etc/php-zts.d Additional .ini files parsed /etc/php-zts.d/curl.ini, /etc/php-zts.d/dom.ini, /etc/php-zts.d/fileinfo.ini, /etc/php-zts.d/gd.ini, /etc/php-zts.d/gmp.ini, /etc/php-zts.d/imap.ini, /etc/php-zts.d/json.ini, /etc/php-zts.d/mbstring.ini, /etc/php-zts.d/mcrypt.ini, /etc/php-zts.d/mysql.ini, /etc/php-zts.d/mysqli.ini, /etc/php-zts.d/opcache.ini, /etc/php-zts.d/pdo.ini, /etc/php-zts.d/pdo_mysql.ini, /etc/php-zts.d/pdo_sqlite.ini, /etc/php-zts.d/phar.ini, /etc/php-zts.d/posix.ini, /etc/php-zts.d/soap.ini, /etc/php-zts.d/sqlite3.ini, /etc/php-zts.d/sysvmsg.ini, /etc/php-zts.d/sysvsem.ini, /etc/php-zts.d/sysvshm.ini, /etc/php-zts.d/wddx.ini, /etc/php-zts.d/xhprof.ini, /etc/php-zts.d/xmlreader.ini, /etc/php-zts.d/xmlrpc.ini, /etc/php-zts.d/xmlwriter.ini, /etc/php-zts.d/xsl.ini, /etc/php-zts.d/zip.ini PHP API 20100412 PHP Extension 20100525 Zend Extension 220100525 Zend Extension Build API220100525,TS PHP Extension Build API20100525,TS Debug Build no Thread Safety enabled Zend Signal Handling disabled Zend Memory Manager enabled Zend Multibyte Support provided by mbstring IPv6 Support enabled DTrace Support disabled Registered PHP Streams https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls Registered Stream Filters zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.* Zend logo This program makes use of the Zend Scripting Language Engine: Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.4, Copyright (c) 1999-2014, by Zend Technologies PHP Credits Configuration apache2handler Apache Version Apache/2.2.24 (CentOS) Apache API Version 20051115 Server Administrator webservants.rns@gmail.com Hostname:Port radhanathswamiinspires.com:0 User/Group apache(48)/48 Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100 Timeouts Connection: 120 - Keep-Alive: 15 Virtual Server Yes Server Root /etc/httpd Loaded Modules core worker http_core mod_so mod_auth_basic mod_auth_digest mod_authn_file mod_authn_alias mod_authn_anon mod_authn_dbm mod_authn_default mod_authz_host mod_authz_user mod_authz_owner mod_authz_groupfile mod_authz_dbm mod_authz_default util_ldap mod_authnz_ldap mod_include mod_log_config mod_logio mod_env mod_ext_filter mod_mime_magic mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy mod_proxy_balancer mod_proxy_ftp mod_proxy_http mod_proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_dnssd mod_php5 mod_proxy_ajp Directive Local Value Master Value engine 1 1 last_modified 0 0 xbithack 0 0 Apache Environment Variable Value HTTP_HOST radhanathswamiinspires.com HTTP_USER_AGENT Mozilla/5.0 (X11; Linux i686; rv:37.0) Gecko/20100101 Firefox/37.0 HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5 HTTP_ACCEPT_ENCODING gzip, deflate HTTP_CONNECTION keep-alive PATH /sbin:/usr/sbin:/bin:/usr/bin SERVER_SIGNATURE no value SERVER_SOFTWARE Apache/2.2.24 (CentOS) SERVER_NAME radhanathswamiinspires.com SERVER_ADDR 192.168.1.22 SERVER_PORT 80 REMOTE_ADDR 192.168.4.160 DOCUMENT_ROOT /home/sites/lwsites/inspires/public_html SERVER_ADMIN webservants.rns@gmail.com SCRIPT_FILENAME /home/sites/lwsites/inspires/public_html/sample.php REMOTE_PORT 58897 GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD GET QUERY_STRING no value REQUEST_URI /sample.php SCRIPT_NAME /sample.php HTTP Headers Information HTTP Request Headers HTTP Request GET /sample.php HTTP/1.1 Host radhanathswamiinspires.com User-Agent Mozilla/5.0 (X11; Linux i686; rv:37.0) Gecko/20100101 Firefox/37.0 Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language en-US,en;q=0.5 Accept-Encoding gzip, deflate Connection keep-alive HTTP Response Headers X-Powered-By PHP/5.4.43 bz2 BZip2 Support Enabled Stream Wrapper support compress.bzip2:// Stream Filter support bzip2.decompress, bzip2.compress BZip2 Version 1.0.5, 10-Dec-2007 calendar Calendar support enabled Core PHP Version 5.4.43 Directive Local Value Master Value allow_url_fopen On On allow_url_include Off Off always_populate_raw_post_data Off Off arg_separator.input &amp; &amp; arg_separator.output &amp; &amp; asp_tags Off Off auto_append_file no value no value auto_globals_jit On On auto_prepend_file no value no value browscap no value no value default_charset no value no value default_mimetype text/html text/html disable_classes no value no value disable_functions no value no value display_errors Off Off display_startup_errors Off Off doc_root no value no value docref_ext no value no value docref_root no value no value enable_dl Off Off enable_post_data_reading On On error_append_string no value no value error_log no value no value error_prepend_string no value no value error_reporting 32767 32767 exit_on_timeout Off Off expose_php On On extension_dir /usr/lib64/php-zts/modules /usr/lib64/php-zts/modules file_uploads On On highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .:/usr/share/pear:/usr/share/php .:/usr/share/pear:/usr/share/php log_errors On On log_errors_max_len 1024 1024 mail.add_x_header On On mail.force_extra_parameters no value no value mail.log no value no value max_execution_time 30 30 max_file_uploads 20 20 max_input_nesting_level 64 64 max_input_time 60 60 max_input_vars 1000 1000 memory_limit 128M 128M open_basedir no value no value output_buffering 4096 4096 output_handler no value no value post_max_size 8M 8M precision 14 14 realpath_cache_size 16K 16K realpath_cache_ttl 120 120 register_argc_argv Off Off report_memleaks On On report_zend_debug On On request_order GP GP sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision 17 17 short_open_tag Off Off SMTP localhost localhost smtp_port 25 25 sql.safe_mode Off Off track_errors Off Off unserialize_callback_func no value no value upload_max_filesize 20M 20M upload_tmp_dir no value no value user_dir no value no value user_ini.cache_ttl 300 300 user_ini.filename .user.ini .user.ini variables_order GPCS GPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off zend.detect_unicode On On zend.enable_gc On On zend.multibyte Off Off zend.script_encoding no value no value ctype ctype functions enabled curl cURL support enabled cURL Information 7.19.7 Age 3 Features AsynchDNS No Debug No GSS-Negotiate Yes IDN Yes IPv6 Yes Largefile Yes NTLM Yes SPNEGO No SSL Yes SSPI No krb4 No libz Yes CharConv No Protocols tftp, ftp, telnet, dict, ldap, ldaps, http, file, https, ftps, scp, sftp Host x86_64-redhat-linux-gnu SSL Version NSS/3.16.2.3 Basic ECC ZLib Version 1.2.3 libSSH Version libssh2/1.4.2 date date/time support enabled "Olson" Timezone Database Version 0.system Timezone Database internal Default timezone UTC Directive Local Value Master Value date.default_latitude 31.7667 31.7667 date.default_longitude 35.2333 35.2333 date.sunrise_zenith 90.583333 90.583333 date.sunset_zenith 90.583333 90.583333 date.timezone Asia/Kolkatta Asia/Kolkatta dom DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.7.6 HTML Support enabled XPath Support enabled XPointer Support enabled Schema Support enabled RelaxNG Support enabled ereg Regex Library Bundled library enabled exif EXIF Support enabled EXIF Version 1.4 $Id: 7f95ff43ea7cc9a2c41a912863ed70069c0e34c5 $ Supported EXIF Version 0220 Supported filetypes JPEG,TIFF Directive Local Value Master Value exif.decode_jis_intel JIS JIS exif.decode_jis_motorola JIS JIS exif.decode_unicode_intel UCS-2LE UCS-2LE exif.decode_unicode_motorola UCS-2BE UCS-2BE exif.encode_jis no value no value exif.encode_unicode ISO-8859-15 ISO-8859-15 fileinfo fileinfo support enabled version 1.0.5 filter Input Validation and Filtering enabled Revision $Id: ad78b4a085153b8c7f4d6db5dc69df40e969c343 $ Directive Local Value Master Value filter.default unsafe_raw unsafe_raw filter.default_flags no value no value ftp FTP support enabled gd GD Support enabled GD Version bundled (2.1.0 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.11 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 6b PNG Support enabled libPNG Version 1.2.49 WBMP Support enabled XPM Support enabled libXpm Version 30411 XBM Support enabled Directive Local Value Master Value gd.jpeg_ignore_warning 0 0 gettext GetText Support enabled gmp gmp support enabled GMP version 4.3.1 hash hash support enabled Hashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost adler32 crc32 crc32b fnv132 fnv164 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 iconv iconv support enabled iconv implementation glibc iconv library version 2.12 Directive Local Value Master Value iconv.input_encoding ISO-8859-1 ISO-8859-1 iconv.internal_encoding ISO-8859-1 ISO-8859-1 iconv.output_encoding ISO-8859-1 ISO-8859-1 imap IMAP c-Client Version 2007e SSL Support enabled Kerberos Support enabled json json support enabled json version 1.2.1 libxml libXML support active libXML Compiled Version 2.7.6 libXML Loaded Version 20706 libXML streams enabled mbstring Multibyte Support enabled Multibyte string engine libmbfl HTTP input encoding translation disabled libmbfl version 1.3.2 mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. Multibyte (japanese) regex support enabled Multibyte regex (oniguruma) backtrack check On Multibyte regex (oniguruma) version 4.7.1 Directive Local Value Master Value mbstring.detect_order no value no value mbstring.encoding_translation Off Off mbstring.func_overload 0 0 mbstring.http_input pass pass mbstring.http_output pass pass mbstring.http_output_conv_mimetypes ^(text/|application/xhtml\+xml) ^(text/|application/xhtml\+xml) mbstring.internal_encoding no value no value mbstring.language neutral neutral mbstring.strict_detection Off Off mbstring.substitute_character no value no value mcrypt mcrypt support enabled mcrypt_filter support enabled Version 2.5.8 Api No 20021217 Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes Supported modes cbc cfb ctr ecb ncfb nofb ofb stream Directive Local Value Master Value mcrypt.algorithms_dir no value no value mcrypt.modes_dir no value no value mhash MHASH support Enabled MHASH API Version Emulated Support mysql MySQL Support enabled Active Persistent Links 0 Active Links 0 Client API version 5.5.39 MYSQL_MODULE_TYPE external MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_INCLUDE -I/usr/include/mysql MYSQL_LIBS -L/usr/lib64/mysql -lmysqlclient_r Directive Local Value Master Value mysql.allow_local_infile On On mysql.allow_persistent On On mysql.connect_timeout 60 60 mysql.default_host no value no value mysql.default_password no value no value mysql.default_port no value no value mysql.default_socket /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock mysql.default_user no value no value mysql.max_links Unlimited Unlimited mysql.max_persistent Unlimited Unlimited mysql.trace_mode Off Off mysqli MysqlI Support enabled Client API library version 5.5.39 Active Persistent Links 0 Inactive Persistent Links 0 Active Links 0 Client API header version 5.5.44 MYSQLI_SOCKET /var/lib/mysql/mysql.sock Directive Local Value Master Value mysqli.allow_local_infile On On mysqli.allow_persistent On On mysqli.default_host no value no value mysqli.default_port 3306 3306 mysqli.default_pw no value no value mysqli.default_socket no value no value mysqli.default_user no value no value mysqli.max_links Unlimited Unlimited mysqli.max_persistent Unlimited Unlimited mysqli.reconnect Off Off openssl OpenSSL support enabled OpenSSL Library Version OpenSSL 1.0.1e-fips 11 Feb 2013 OpenSSL Header Version OpenSSL 1.0.1e-fips 11 Feb 2013 pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 8.37 2015-04-28 Directive Local Value Master Value pcre.backtrack_limit 1000000 1000000 pcre.recursion_limit 100000 100000 PDO PDO support enabled PDO drivers mysql, sqlite pdo_mysql PDO Driver for MySQL enabled Client API version 5.5.39 Directive Local Value Master Value pdo_mysql.default_socket /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock pdo_sqlite PDO Driver for SQLite 3.x enabled SQLite Library 3.6.20 Phar Phar: PHP Archive support enabled Phar EXT version 2.0.1 Phar API version 1.1.1 SVN revision $Id: ba734629367f9671b25202408d13914fa63d8396 $ Phar-based phar archives enabled Tar-based phar archives enabled ZIP-based phar archives enabled gzip compression enabled bzip2 compression enabled Native OpenSSL support enabled Phar based on pear/PHP_Archive, original concept by Davey Shafik. Phar fully realized by Gregory Beaver and Marcus Boerger. Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle. Directive Local Value Master Value phar.cache_list no value no value phar.readonly On On phar.require_hash On On posix Revision $Id: 1dfa9997ed76804e53c91e0ce862f3707617b6ed $ Reflection Reflection enabled Version $Id: f6367cdb4e3f392af4a6d441a6641de87c2e50c4 $ session Session Support enabled Registered save handlers files user Registered serializer handlers php php_binary wddx Directive Local Value Master Value session.auto_start Off Off session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_httponly Off Off session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file /dev/urandom /dev/urandom session.entropy_length 32 32 session.gc_divisor 1000 1000 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.hash_bits_per_character 5 5 session.hash_function 0 0 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path /var/lib/php/session no value session.serialize_handler php php session.upload_progress.cleanup On On session.upload_progress.enabled On On session.upload_progress.freq 1% 1% session.upload_progress.min_freq 1 1 session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS session.upload_progress.prefix upload_progress_ upload_progress_ session.use_cookies On On session.use_only_cookies On On session.use_trans_sid 0 0 shmop shmop support enabled SimpleXML Simplexml support enabled Revision $Id: 16070fc92ad6f69cebb2d52ad3f02794f833ce39 $ Schema support enabled soap Soap Client enabled Soap Server enabled Directive Local Value Master Value 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 sockets Sockets Support enabled SPL SPL support enabled Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException sqlite3 SQLite3 support enabled SQLite3 module version 0.7 SQLite Library 3.6.20 Directive Local Value Master Value sqlite3.extension_dir no value no value standard Dynamic Library Support enabled Path to sendmail /usr/sbin/sendmail -t -i Directive Local Value Master Value assert.active 1 1 assert.bail 0 0 assert.callback no value no value assert.quiet_eval 0 0 assert.warning 1 1 auto_detect_line_endings 0 0 default_socket_timeout 60 60 from no value no value url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry user_agent no value no value sysvmsg sysvmsg support enabled Revision $Id: adf1d2d6be849c46eed3c3ee6f1cbebd1448d6e5 $ tokenizer Tokenizer Support enabled wddx WDDX Support enabled WDDX Session Serializer enabled xhprof xhprof 0.9.2 CPU num 1 xml XML Support active XML Namespace Support active libxml2 Version 2.7.6 xmlreader XMLReader enabled xmlrpc core library version xmlrpc-epi v. 0.51 php extension version 0.51 author Dan Libby homepage http://xmlrpc-epi.sourceforge.net open sourced by Epinions.com xmlwriter XMLWriter enabled xsl XSL enabled libxslt Version 1.1.26 libxslt compiled against libxml Version 2.7.6 EXSLT enabled libexslt Version 1.1.26 Zend OPcache Opcode Caching Up and Running Optimization Enabled Startup OK Shared memory model mmap Cache hits 1827 Cache misses 364 Used memory 32120304 Free memory 102097424 Wasted memory 0 Cached scripts 364 Cached keys 467 Max keys 7963 OOM restarts 0 Hash keys restarts 0 Manual restarts 0 Directive Local Value Master Value opcache.blacklist_filename /etc/php-zts.d/opcache*.blacklist /etc/php-zts.d/opcache*.blacklist opcache.consistency_checks 0 0 opcache.dups_fix Off Off opcache.enable On On opcache.enable_cli Off Off opcache.enable_file_override Off Off opcache.error_log no value no value opcache.fast_shutdown 0 0 opcache.file_update_protection 2 2 opcache.force_restart_timeout 180 180 opcache.inherited_hack On On opcache.interned_strings_buffer 8 8 opcache.load_comments 1 1 opcache.log_verbosity_level 1 1 opcache.max_accelerated_files 4000 4000 opcache.max_file_size 0 0 opcache.max_wasted_percentage 5 5 opcache.memory_consumption 128 128 opcache.optimization_level 0xFFFFFFFF 0xFFFFFFFF opcache.preferred_memory_model no value no value opcache.protect_memory 0 0 opcache.restrict_api no value no value opcache.revalidate_freq 2 2 opcache.revalidate_path Off Off opcache.save_comments 1 1 opcache.use_cwd On On opcache.validate_timestamps On On zip Zip enabled Extension Version $Id: abc21c7f1559e732dba6db94c69ecf638ae5fa3f $ Zip version 1.11.0 Libzip version 0.10.1 zlib ZLib Support enabled Stream Wrapper compress.zlib:// Stream Filter zlib.inflate, zlib.deflate Compiled Version 1.2.3 Linked Version 1.2.3 Directive Local Value Master Value zlib.output_compression Off Off zlib.output_compression_level -1 -1 zlib.output_handler no value no value Additional Modules Module Name sysvsem sysvshm Environment Variable Value TERM xterm PATH /sbin:/usr/sbin:/bin:/usr/bin PWD / LANG C SHLVL 2 _ /usr/sbin/httpd.worker PHP Variables Variable Value _SERVER["HTTP_HOST"] radhanathswamiinspires.com _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (X11; Linux i686; rv:37.0) Gecko/20100101 Firefox/37.0 _SERVER["HTTP_ACCEPT"] text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 _SERVER["HTTP_ACCEPT_LANGUAGE"] en-US,en;q=0.5 _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate _SERVER["HTTP_CONNECTION"] keep-alive _SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin _SERVER["SERVER_SIGNATURE"] no value _SERVER["SERVER_SOFTWARE"] Apache/2.2.24 (CentOS) _SERVER["SERVER_NAME"] radhanathswamiinspires.com _SERVER["SERVER_ADDR"] 192.168.1.22 _SERVER["SERVER_PORT"] 80 _SERVER["REMOTE_ADDR"] 192.168.4.160 _SERVER["DOCUMENT_ROOT"] /home/sites/lwsites/inspires/public_html _SERVER["SERVER_ADMIN"] webservants.rns@gmail.com _SERVER["SCRIPT_FILENAME"] /home/sites/lwsites/inspires/public_html/sample.php _SERVER["REMOTE_PORT"] 58897 _SERVER["GATEWAY_INTERFACE"] CGI/1.1 _SERVER["SERVER_PROTOCOL"] HTTP/1.1 _SERVER["REQUEST_METHOD"] GET _SERVER["QUERY_STRING"] no value _SERVER["REQUEST_URI"] /sample.php _SERVER["SCRIPT_NAME"] /sample.php _SERVER["PHP_SELF"] /sample.php _SERVER["REQUEST_TIME_FLOAT"] 1437724624.872 _SERVER["REQUEST_TIME"] 1437724624 PHP License This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net. </code></pre> </div>

laravel和apache mod_status

<div class="post-text" itemprop="text"> <p>I have enabled Apache mod_status on my server: </p> <pre><code>OS: centos 6 Server version: Apache/2.2.15 (Unix) php version 7.1 </code></pre> <p>I get a 404 error page for <strong>example.com/server-status</strong> as i dont know how can i serv this route, with laravel(5.2) route api or any other way?<br> my configuration in httpd.conf:</p> <pre><code>&lt;Location /server-status&gt; SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 ::1 Allow from .example.com Allow from xxx.xxx.xxx.xxx #my ip address &lt;/Location&gt; </code></pre> <p>and in .htaccess</p> <pre><code>RewriteCond %{REQUEST_URI} !=/server-status </code></pre> </div>

通过yum安装php-pecl-memcache尝试安装php-cli,这与EasyApache的版本冲突

<div class="post-text" itemprop="text"> <p>I'm running 64-bit CentOS 7 with cPanel/WHM/EasyApache 4, and am trying to get memcache and memcached (PHP) installed.</p> <p>I installed memcache via yum without a hitch, but when trying to "yum install php-pecl-memcached", this is the error I get:</p> <pre><code>Transaction check error: file /usr/bin/php from install of php-cli-5.4.16-42.el7.x86_64 conflicts with file from package ea-php-cli-0.1.0-2.4.1.cpanel.x86_64 </code></pre> <p>This is happening on a live site, so I want to confirm that I can uninstall php-cli via EasyApache without affecting my front end. (I also tried installing memcached via EasyApache, but it complains about not being able to find libmemcached, which is not available through that interface.)</p> </div>

centos 安装 Apache2.4.25 问题

Linux 下安装 Apache2.4.25 ,安装完用网址跑,没有出现 It works! 显示 无法访问此网站 ,怎么解决? 不知道是否是配置文件httpd.conf问题? error_log : [mpm_event:notice] [pid 15465:tid 139991328282432] AH00489: Apache/2.4.25 (Unix) configured -- resuming normal operations [core:notice] [pid 15465:tid 139991328282432] AH00094: Command line: '/usr/local/apache2/bin/httpd'

无法重写URL CentOS 6.9

<div class="post-text" itemprop="text"> <p>I just changed server. The older server run CentOS 5 and my new Running CentOS 6.9.</p> <p>I didn't change any rewrite rule in .htaccess file this are the rules:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; Options FollowSymLinks RewriteEngine on #RewriteBase / ##security RewriteRule ^logo/(.*)\.(php|php3|pl|cgi)$ / [L] RewriteRule ^other/(.*)\.(php|php3|pl|cgi)$ / [L] RewriteRule ^logs/(.*)\.(php|php3|pl|cgi)$ / [L] ##end security ##test rewrite## RewriteRule ^(.*)?/testrewrite(/)?$ $1/testrewrite.php?mod_r=1 [L] ##end test rewrite## RewriteRule ^login/(.*)(/)$ login.php?login=$1 [L] RewriteRule ^support/(.*)(/)$ support.php?type=$1 [L] RewriteRule ^(.*)/?auth_sess=(.*)$ $1.php?auth_sess=$2 [L] RewriteRule ^index/(.*)$ $1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)/(.*)\.php(/)?$ $2.php [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/].*)/$ $1.php [L] &lt;/IfModule&gt; </code></pre> <p>When I check my httpd.conf file </p> <blockquote> <p>AllowOverride All</p> </blockquote> <p>When I run this command apachectl -M | sort , this are lauded modules </p> <pre><code> access_compat_module (shared) actions_module (shared) alias_module (shared) asis_module (shared) auth_basic_module (shared) authn_core_module (shared) authn_file_module (shared) authz_core_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) bwlimited_module (shared) cgi_module (shared) core_module (static) deflate_module (shared) dir_module (shared) env_module (shared) expires_module (shared) filter_module (shared) headers_module (shared) http_module (static) include_module (shared) Loaded Modules: log_config_module (shared) logio_module (shared) mime_module (shared) mpm_prefork_module (shared) negotiation_module (shared) proxy_fcgi_module (shared) proxy_http_module (shared) proxy_module (shared) rewrite_module (shared) security2_module (shared) setenvif_module (shared) slotmem_shm_module (shared) socache_dbm_module (shared) socache_shmcb_module (shared) so_module (static) ssl_module (shared) status_module (shared) suexec_module (shared) suphp_module (shared) unique_id_module (shared) unixd_module (shared) userdir_module (shared) version_module (shared) </code></pre> <p>Does anyone know what maybe wrong ?</p> </div>

问题缓存和我的本地Laravel / PHP / Apache安装

<div class="post-text" itemprop="text"> <p>I've been developing websites for <strong>years</strong> with PHP(7.1)/Laravel (5.6) on my local (Windows) computer. I don't use XAMPP or anything - I install Apache &amp; PHP &amp; MySQL directly, configure them, etc.</p> <p>Then I deploy the sites onto my shared hosting provider on HostGator. Both my PC &amp; HostGator are pretty slow.</p> <p>Yesterday I started playing with laravel Cache::. I put lots into the cache, played with different drivers - file, database, &amp; now Redis. But the more I use the Laravel Cache on my computer, the slower it gets - now insanely slow.</p> <p>BUT! I deploy the exact same code up to the Hostgator site, using just the default file cache driver, and suddenly it's like 3 times faster!</p> <p>Since the code &amp; PHP version are the same on my PC as Hostgator, I can only imagine it's either because HostGator is CentOS &amp; I'm windows 10, OR, something with how I configured my PHP or Apache that makes them play really badly with caching. Any quick thoughts? Even Redis didn't help!</p> <blockquote> <p>I'm including the output from phpinfo below:</p> </blockquote> <pre><code>PHP Version 7.1.4 System Windows NT BONDI 6.2 build 9200 (Windows 8 Home Premium Edition) AMD64 Build Date Apr 11 2017 19:50:45 Compiler MSVC14 (Visual C++ 2015) Architecture x64 Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-pdo-oci=c:\php-sdk\oracle\x64\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-sdk\oracle\x64\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--with-mcrypt=static" "--without-analyzer" "--with-pgo" Server API Apache 2.0 Handler Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File C:\App\php-7\php.ini Scan this dir for additional .ini files (none) Additional .ini files parsed (none) PHP API 20160303 PHP Extension 20160303 Zend Extension 320160303 Zend Extension Build API320160303,TS,VC14 PHP Extension Build API20160303,TS,VC14 Debug Build no Thread Safety enabled Zend Signal Handling disabled Zend Memory Manager enabled Zend Multibyte Support provided by mbstring IPv6 Support enabled DTrace Support disabled Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies with Xdebug v2.6.0, Copyright (c) 2002-2018, by Hostname:Port localhost:80 Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100 Timeouts Connection: 60 - Keep-Alive: 5 Virtual Server No Server Root C:/App/Apache24 Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_access_compat mod_actions mod_alias mod_allowmethods mod_asis mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_http2 mod_headers mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_socache_shmcb mod_ssl mod_php7 Directive Local Value Master Value engine 1 1 last_modified 0 0 xbithack 0 0 Apache Environment Variable Value HTTP_HOST localhost HTTP_CONNECTION keep-alive HTTP_UPGRADE_INSECURE_REQUESTS 1 HTTP_DNT 1 HTTP_USER_AGENT Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 HTTP_REFERER http://localhost/ HTTP_ACCEPT_ENCODING gzip, deflate, br HTTP_ACCEPT_LANGUAGE en-US,en;q=0.9,da;q=0.8 SystemRoot C:\WINDOWS COMSPEC C:\WINDOWS\system32\cmd.exe PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC WINDIR C:\WINDOWS SERVER_SIGNATURE no value SERVER_SOFTWARE Apache/2.4.23 (Win64) OpenSSL/1.0.2h PHP/7.1.4 SERVER_NAME localhost SERVER_ADDR ::1 SERVER_PORT 80 REMOTE_ADDR ::1 DOCUMENT_ROOT C:/App/Apache24/htdocs REQUEST_SCHEME http CONTEXT_PREFIX no value CONTEXT_DOCUMENT_ROOT C:/App/Apache24/htdocs SERVER_ADMIN pkirkaas@gmail.com SCRIPT_FILENAME C:/App/Apache24/htdocs/phpinfo.php REMOTE_PORT 2427 GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1 REQUEST_METHOD GET QUERY_STRING no value REQUEST_URI /phpinfo.php SCRIPT_NAME /phpinfo.php HTTP Headers Information HTTP Request Headers HTTP Request GET /phpinfo.php HTTP/1.1 Host localhost Connection keep-alive Upgrade-Insecure-Requests 1 DNT 1 User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 Accept text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8 Referer http://localhost/ Accept-Encoding gzip, deflate, br Accept-Language en-US,en;q=0.9,da;q=0.8 HTTP Response Headers X-Powered-By PHP/7.1.4 bcmath BCMath support enabled Directive Local Value Master Value bcmath.scale 0 0 calendar Calendar support enabled Core PHP Version 7.1.4 Directive Local Value Master Value allow_url_fopen On On allow_url_include Off Off arg_separator.input &amp; &amp; arg_separator.output &amp; &amp; auto_append_file no value no value auto_globals_jit On On auto_prepend_file no value no value browscap no value no value default_charset UTF-8 UTF-8 default_mimetype text/html text/html disable_classes no value no value disable_functions no value no value display_errors On On display_startup_errors On On doc_root no value no value docref_ext no value no value docref_root no value no value enable_dl Off Off enable_post_data_reading On On error_append_string no value no value error_log C:/tmp/php_errors.log C:/tmp/php_errors.log error_prepend_string no value no value error_reporting 32767 32767 expose_php On On extension_dir C:/App/php-7.1.4-Win32-VC14-x64/ext/ C:/App/php-7.1.4-Win32-VC14-x64/ext/ file_uploads On On hard_timeout 2 2 highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors Off Off ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .;C:\php\pear .;C:\php\pear input_encoding no value no value internal_encoding no value no value log_errors On On log_errors_max_len 1024 1024 mail.add_x_header On On mail.force_extra_parameters no value no value mail.log no value no value max_execution_time 5260 5260 max_file_uploads 20 20 max_input_nesting_level 64 64 max_input_time 260 260 max_input_vars 1000 1000 memory_limit 1999M 1999M open_basedir no value no value output_buffering 4096 4096 output_encoding no value no value output_handler no value no value post_max_size 120M 120M precision 14 14 realpath_cache_size 16M 16M realpath_cache_ttl 120 120 register_argc_argv Off Off report_memleaks On On report_zend_debug On On request_order GP GP sendmail_from no value no value sendmail_path no value no value serialize_precision 17 17 short_open_tag On On SMTP localhost localhost smtp_port 25 25 sql.safe_mode Off Off sys_temp_dir no value no value track_errors On On unserialize_callback_func no value no value upload_max_filesize 120M 120M upload_tmp_dir no value no value user_dir no value no value user_ini.cache_ttl 300 300 user_ini.filename .user.ini .user.ini variables_order GPCS GPCS windows.show_crt_warning Off Off xmlrpc_error_number 0 0 xmlrpc_errors Off Off zend.assertions 1 1 zend.detect_unicode On On zend.enable_gc On On zend.multibyte Off Off zend.script_encoding no value no value ctype ctype functions enabled curl cURL support enabled cURL Information 7.53.1 Age 3 Features AsynchDNS Yes CharConv No Debug No GSS-Negotiate No IDN Yes IPv6 Yes krb4 No Largefile Yes libz Yes NTLM Yes NTLMWB No SPNEGO Yes SSL Yes SSPI Yes TLS-SRP No HTTP2 Yes GSSAPI No KERBEROS5 Yes UNIX_SOCKETS No PSL No Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp Host x86_64-pc-win32 SSL Version OpenSSL/1.0.2h ZLib Version 1.2.8 libSSH Version libssh2/1.8.0 date date/time support enabled "Olson" Timezone Database Version 2017.2 Timezone Database internal Default timezone UTC Directive Local Value Master Value date.default_latitude 31.7667 31.7667 date.default_longitude 35.2333 35.2333 date.sunrise_zenith 90.583333 90.583333 date.sunset_zenith 90.583333 90.583333 date.timezone no value no value dom DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.9.4 HTML Support enabled XPath Support enabled XPointer Support enabled Schema Support enabled RelaxNG Support enabled exif EXIF Support enabled EXIF Version 1.4 $Id: 8bdc0c8f27c2c9dd1f7551f1f9fe3ab57a06a4b1 $ Supported EXIF Version 0220 Supported filetypes JPEG,TIFF Directive Local Value Master Value exif.decode_jis_intel JIS JIS exif.decode_jis_motorola JIS JIS exif.decode_unicode_intel UCS-2LE UCS-2LE exif.decode_unicode_motorola UCS-2BE UCS-2BE exif.encode_jis no value no value exif.encode_unicode ISO-8859-15 ISO-8859-15 fileinfo fileinfo support enabled version 1.0.5 libmagic 522 filter Input Validation and Filtering enabled Revision $Id: cdc5e15bb616f10210b94ecd8789e66c927a375f $ Directive Local Value Master Value filter.default unsafe_raw unsafe_raw filter.default_flags no value no value gd GD Support enabled GD Version bundled (2.1.0 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.7.0 GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 9 compatible PNG Support enabled libPNG Version 1.6.21 WBMP Support enabled XPM Support enabled libXpm Version 30512 XBM Support enabled WebP Support enabled Directive Local Value Master Value gd.jpeg_ignore_warning 1 1 gettext GetText Support enabled hash hash support enabled Hashing Engines md2 md4 md5 sha1 sha224 sha256 sha384 sha512/224 sha512/256 sha512 sha3-224 sha3-256 sha3-384 sha3-512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru snefru256 gost gost-crypto adler32 crc32 crc32b fnv132 fnv1a32 fnv164 fnv1a64 joaat haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5 MHASH support Enabled MHASH API Version Emulated Support iconv iconv support enabled iconv implementation "libiconv" iconv library version 1.15 Directive Local Value Master Value iconv.input_encoding no value no value iconv.internal_encoding no value no value iconv.output_encoding no value no value imap IMAP c-Client Version 2007f SSL Support enabled intl Internationalization support enabled version 1.1.0 ICU version 57.1 ICU Data version 57.1 Directive Local Value Master Value intl.default_locale no value no value intl.error_level 0 0 intl.use_exceptions 0 0 json json support enabled json version 1.5.0 ldap LDAP Support enabled RCS Version $Id: 1a2168f979730c42ec291285f5183076688f4509 $ Total Links 0/unlimited API Version 3001 Vendor Name OpenLDAP Vendor Version 20444 SASL Support Enabled Directive Local Value Master Value ldap.max_links Unlimited Unlimited libxml libXML support active libXML Compiled Version 2.9.4 libXML Loaded Version 20904 libXML streams enabled mbstring Multibyte Support enabled Multibyte string engine libmbfl HTTP input encoding translation disabled libmbfl version 1.3.2 oniguruma version 5.9.6 mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1. Multibyte (japanese) regex support enabled Multibyte regex (oniguruma) version 5.9.6 Directive Local Value Master Value mbstring.detect_order no value no value mbstring.encoding_translation Off Off mbstring.func_overload 0 0 mbstring.http_input no value no value mbstring.http_output no value no value mbstring.http_output_conv_mimetypes ^(text/|application/xhtml\+xml) ^(text/|application/xhtml\+xml) mbstring.internal_encoding no value no value mbstring.language neutral neutral mbstring.strict_detection Off Off mbstring.substitute_character no value no value mcrypt mcrypt support enabled mcrypt_filter support enabled Version 2.5.8 Api No 20021217 Supported ciphers cast-128 gost rijndael-128 twofish cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes arcfour Supported modes cbc cfb ctr ecb ncfb nofb ofb stream Directive Local Value Master Value mcrypt.algorithms_dir no value no value mcrypt.modes_dir no value no value mysqli MysqlI Support enabled Client API library version mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $ Active Persistent Links 0 Inactive Persistent Links 0 Active Links 0 Directive Local Value Master Value mysqli.allow_local_infile On On mysqli.allow_persistent On On mysqli.default_host no value no value mysqli.default_port 3306 3306 mysqli.default_pw no value no value mysqli.default_socket no value no value mysqli.default_user no value no value mysqli.max_links Unlimited Unlimited mysqli.max_persistent Unlimited Unlimited mysqli.reconnect Off Off mysqli.rollback_on_cached_plink Off Off mysqlnd mysqlnd enabled Version mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $ Compression supported core SSL supported extended SSL not supported Command buffer size 4096 Read buffer size 32768 Read timeout 31536000 Collecting statistics Yes Collecting memory statistics Yes Tracing n/a Loaded plugins mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password API Extensions mysqli,pdo_mysql mysqlnd statistics bytes_sent 73072 bytes_received 1229046 packets_sent 2578 packets_received 15941 protocol_overhead_in 63764 protocol_overhead_out 10312 bytes_received_ok_packet 0 bytes_received_eof_packet 0 bytes_received_rset_header_packet 11322 bytes_received_rset_field_meta_packet 0 bytes_received_rset_row_packet 2233 bytes_received_prepare_response_packet 812313 bytes_received_change_user_packet 394029 packets_sent_command 1287 packets_received_ok 0 packets_received_eof 0 packets_received_rset_header 1258 packets_received_rset_field_meta 0 packets_received_rset_row 430 packets_received_prepare_response 11023 packets_received_change_user 2798 result_set_queries 423 non_result_set_queries 7 no_index_used 13 bad_index_used 0 slow_queries 0 buffered_sets 0 unbuffered_sets 0 ps_buffered_sets 423 ps_unbuffered_sets 0 flushed_normal_sets 0 flushed_ps_sets 0 ps_prepared_never_executed 0 ps_prepared_once_executed 428 rows_fetched_from_server_normal 0 rows_fetched_from_server_ps 2375 rows_buffered_from_client_normal 0 rows_buffered_from_client_ps 2375 rows_fetched_from_client_normal_buffered 0 rows_fetched_from_client_normal_unbuffered 0 rows_fetched_from_client_ps_buffered 2375 rows_fetched_from_client_ps_unbuffered 0 rows_fetched_from_client_ps_cursor 0 rows_affected_normal 0 rows_affected_ps 0 rows_skipped_normal 0 rows_skipped_ps 2375 copy_on_write_saved 0 copy_on_write_performed 0 command_buffer_too_small 0 connect_success 2 connect_failure 0 connection_reused 0 reconnect 0 pconnect_success 0 active_connections 0 active_persistent_connections 0 explicit_close 1 implicit_close 0 disconnect_close 0 in_middle_of_command_close 0 explicit_free_result 851 implicit_free_result 0 explicit_stmt_close 428 implicit_stmt_close 0 mem_emalloc_count 21107 mem_emalloc_amount 16715406 mem_ecalloc_count 15711 mem_ecalloc_amount 4021976 mem_erealloc_count 6068 mem_erealloc_amount 3403496 mem_efree_count 36818 mem_efree_amount 20862820 mem_malloc_count 0 mem_malloc_amount 0 mem_calloc_count 0 mem_calloc_amount 0 mem_realloc_count 0 mem_realloc_amount 0 mem_free_count 0 mem_free_amount 0 mem_estrndup_count 11 mem_strndup_count 0 mem_estrdup_count 8 mem_strdup_count 0 mem_edupl_count 0 mem_dupl_count 0 proto_text_fetched_null 0 proto_text_fetched_bit 0 proto_text_fetched_tinyint 0 proto_text_fetched_short 0 proto_text_fetched_int24 0 proto_text_fetched_int 0 proto_text_fetched_bigint 0 proto_text_fetched_decimal 0 proto_text_fetched_float 0 proto_text_fetched_double 0 proto_text_fetched_date 0 proto_text_fetched_year 0 proto_text_fetched_time 0 proto_text_fetched_datetime 0 proto_text_fetched_timestamp 0 proto_text_fetched_string 0 proto_text_fetched_blob 0 proto_text_fetched_enum 0 proto_text_fetched_set 0 proto_text_fetched_geometry 0 proto_text_fetched_other 0 proto_binary_fetched_null 0 proto_binary_fetched_bit 533 proto_binary_fetched_tinyint 0 proto_binary_fetched_short 1156 proto_binary_fetched_int24 0 proto_binary_fetched_int 0 proto_binary_fetched_bigint 10240 proto_binary_fetched_decimal 0 proto_binary_fetched_float 3 proto_binary_fetched_double 0 proto_binary_fetched_date 0 proto_binary_fetched_year 288 proto_binary_fetched_time 0 proto_binary_fetched_datetime 0 proto_binary_fetched_timestamp 0 proto_binary_fetched_string 4340 proto_binary_fetched_json 3384 proto_binary_fetched_blob 215 proto_binary_fetched_enum 0 proto_binary_fetched_set 0 proto_binary_fetched_geometry 0 proto_binary_fetched_other 0 init_command_executed_count 0 init_command_failed_count 0 com_quit 1 com_init_db 0 com_query 2 com_field_list 0 com_create_db 0 com_drop_db 0 com_refresh 0 com_shutdown 0 com_statistics 0 com_process_info 0 com_connect 0 com_process_kill 0 com_debug 0 com_ping 0 com_time 0 com_delayed_insert 0 com_change_user 0 com_binlog_dump 0 com_table_dump 0 com_connect_out 0 com_register_slave 0 com_stmt_prepare 428 com_stmt_execute 428 com_stmt_send_long_data 0 com_stmt_close 428 com_stmt_reset 0 com_stmt_set_option 0 com_stmt_fetch 0 com_deamon 0 bytes_received_real_data_normal 0 bytes_received_real_data_ps 420039 openssl OpenSSL support enabled OpenSSL Library Version OpenSSL 1.0.2h 3 May 2016 OpenSSL Header Version OpenSSL 1.0.2k 26 Jan 2017 Openssl default config /usr/local/ssl/openssl.cnf Directive Local Value Master Value openssl.cafile no value no value openssl.capath no value no value pcre PCRE (Perl Compatible Regular Expressions) Support enabled PCRE Library Version 8.38 2015-11-23 PCRE JIT Support enabled Directive Local Value Master Value pcre.backtrack_limit 1000000 1000000 pcre.jit 1 1 pcre.recursion_limit 100000 100000 PDO PDO support enabled PDO drivers mysql, odbc, sqlite pdo_mysql PDO Driver for MySQL enabled Client API version mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $ PDO_ODBC PDO Driver for ODBC (Win32) enabled ODBC Connection Pooling Enabled, strict matching pdo_sqlite PDO Driver for SQLite 3.x enabled SQLite Library 3.15.1 Phar Phar: PHP Archive support enabled Phar EXT version 2.0.2 Phar API version 1.1.1 SVN revision $Id: 59c11f4e29768bfbbf6f41cb469abd81d8655850 $ Phar-based phar archives enabled Tar-based phar archives enabled ZIP-based phar archives enabled gzip compression enabled bzip2 compression disabled (install pecl/bz2) OpenSSL support enabled Phar based on pear/PHP_Archive, original concept by Davey Shafik. Phar fully realized by Gregory Beaver and Marcus Boerger. Portions of tar implementation Copyright (c) 2003-2009 Tim Kientzle. Directive Local Value Master Value phar.cache_list no value no value phar.readonly On On phar.require_hash On On readline Readline Support enabled Readline library WinEditLine Directive Local Value Master Value cli.pager no value no value cli.prompt \b \&gt; \b \&gt; Reflection Reflection enabled Version $Id: a06522d025b0af3e6ba10a0f6964086b7e6f5458 $ session Session Support enabled Registered save handlers files user Registered serializer handlers php_serialize php php_binary wddx Directive Local Value Master Value session.auto_start Off Off session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_httponly Off Off session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.gc_divisor 1000 1000 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.lazy_write On On session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path no value no value session.serialize_handler php php session.sid_bits_per_character 4 4 session.sid_length 32 32 session.upload_progress.cleanup On On session.upload_progress.enabled On On session.upload_progress.freq 1% 1% session.upload_progress.min_freq 1 1 session.upload_progress.name PHP_SESSION_UPLOAD_PROGRESS PHP_SESSION_UPLOAD_PROGRESS session.upload_progress.prefix upload_progress_ upload_progress_ session.use_cookies On On session.use_only_cookies On On session.use_strict_mode Off Off session.use_trans_sid 0 0 SimpleXML Simplexml support enabled Revision $Id: 7e5516dcdf2fe6ded7970eaeb6abd8d07df39a2a $ Schema support enabled soap Soap Client enabled Soap Server enabled Directive Local Value Master Value 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 sockets Sockets Support enabled SPL SPL support enabled Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, CallbackFilterIterator, DirectoryIterator, DomainException, EmptyIterator, FilesystemIterator, FilterIterator, GlobIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, MultipleIterator, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveCallbackFilterIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RecursiveTreeIterator, RegexIterator, RuntimeException, SplDoublyLinkedList, SplFileInfo, SplFileObject, SplFixedArray, SplHeap, SplMinHeap, SplMaxHeap, SplObjectStorage, SplPriorityQueue, SplQueue, SplStack, SplTempFileObject, UnderflowException, UnexpectedValueException standard Dynamic Library Support enabled Internal Sendmail Support for Windows enabled Directive Local Value Master Value assert.active 1 1 assert.bail 0 0 assert.callback no value no value assert.exception 0 0 assert.quiet_eval 0 0 assert.warning 1 1 auto_detect_line_endings 0 0 default_socket_timeout 60 60 from no value no value session.trans_sid_hosts no value no value session.trans_sid_tags a=href,area=href,frame=src,form= a=href,area=href,frame=src,form= url_rewriter.hosts no value no value url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry user_agent no value no value tokenizer Tokenizer Support enabled wddx WDDX Support enabled WDDX Session Serializer enabled xdebug xdebug support enabled Version 2.6.0 IDE Key BONDI$ Supported protocols DBGp - Common DeBuGger Protocol Directive Local Value Master Value xdebug.auto_trace Off Off xdebug.cli_color 0 0 xdebug.collect_assignments Off Off xdebug.collect_includes On On xdebug.collect_params 0 0 xdebug.collect_return Off Off xdebug.collect_vars Off Off xdebug.coverage_enable On On xdebug.default_enable On On xdebug.dump.COOKIE no value no value xdebug.dump.ENV no value no value xdebug.dump.FILES no value no value xdebug.dump.GET no value no value xdebug.dump.POST no value no value xdebug.dump.REQUEST no value no value xdebug.dump.SERVER no value no value xdebug.dump.SESSION no value no value xdebug.dump_globals On On xdebug.dump_once On On xdebug.dump_undefined Off Off xdebug.extended_info On On xdebug.file_link_format no value no value xdebug.filename_format no value no value xdebug.force_display_errors Off Off xdebug.force_error_reporting 0 0 xdebug.gc_stats_enable Off Off xdebug.gc_stats_output_dir C:\Windows\Temp C:\Windows\Temp xdebug.gc_stats_output_name gcstats.%p gcstats.%p xdebug.halt_level 0 0 xdebug.idekey no value no value xdebug.max_nesting_level 256 256 xdebug.max_stack_frames -1 -1 xdebug.overload_var_dump 2 2 xdebug.profiler_aggregate Off Off xdebug.profiler_append Off Off xdebug.profiler_enable Off Off xdebug.profiler_enable_trigger On On xdebug.profiler_enable_trigger_value no value no value xdebug.profiler_output_dir C:\tmp C:\tmp xdebug.profiler_output_name cachegrind.out.callgrind.%t-%s.out cachegrind.out.callgrind.%t-%s.out xdebug.remote_addr_header no value no value xdebug.remote_autostart Off Off xdebug.remote_connect_back Off Off xdebug.remote_cookie_expire_time 3600 3600 xdebug.remote_enable Off Off xdebug.remote_handler dbgp dbgp xdebug.remote_host localhost localhost xdebug.remote_log no value no value xdebug.remote_mode req req xdebug.remote_port 9000 9000 xdebug.remote_timeout 200 200 xdebug.scream Off Off xdebug.show_error_trace Off Off xdebug.show_exception_trace Off Off xdebug.show_local_vars Off Off xdebug.show_mem_delta Off Off xdebug.trace_enable_trigger Off Off xdebug.trace_enable_trigger_value no value no value xdebug.trace_format 0 0 xdebug.trace_options 0 0 xdebug.trace_output_dir C:\Windows\Temp C:\Windows\Temp xdebug.trace_output_name trace.%c trace.%c xdebug.var_display_max_children 128 128 xdebug.var_display_max_data 512 512 xdebug.var_display_max_depth 3 3 CommonProgramW6432 C:\Program Files\Common Files COMPUTERNAME BONDI ComSpec C:\WINDOWS\system32\cmd.exe CYGWIN mintty DriverData C:\Windows\System32\Drivers\DriverData GOPATH Q:\Common\Backups\Golangs GOROOT C:\App\Go JAVA_HOME C:\Program Files\Java\jdk-10.0.2 LANG en_US.UTF-8 LOCALAPPDATA C:\WINDOWS\system32\config\systemprofile\AppData\Local MOD_WSGI_APACHE_ROOTDIR C:/App/Apache24 NUMBER_OF_PROCESSORS 8 OnlineServices Online Services OS Windows_NT </code></pre> </div>

尽管mod_rewrite已启用,但在apache错误日志中不存在该文件

<div class="post-text" itemprop="text"> <p>On my live site, the first login screen, I have entered credentials for "username/password".</p> <p>I have submitted the form without error, it redirects me to login screen.</p> <p>I have checked in cpanel error log, the error is below:</p> <p><code>[Fri Aug 03 16:18:13 2018] [error] [client IP address] File does not exist: /home/folder/url, referer: url</code></p> <p>I have checked that mod_rewrite is enabled and also <code>AllowOverride all</code>.</p> <p>Is there any other setting required?</p> <p>My server is Linux with CentOS</p> <p>Below is my .htaccess file, please let me know if there is anything wrong,</p> <pre><code>RewriteEngine On RewriteBase / RewriteCond %{REQUEST_METHOD} !POST #RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*)$ /index.php/$1 [L] </code></pre> </div>

在Centos 6.4和Nginx服务器上使用PHP发送电子邮件[重复]

<div class="post-text" itemprop="text"> <div class="question-status question-originals-of-duplicate"> <p>This question already has an answer here:</p> <ul> <li> <a href="/questions/24644436/php-mail-function-doesnt-complete-sending-of-e-mail" dir="ltr">PHP mail function doesn't complete sending of e-mail</a> <span class="question-originals-answer-count"> 27 answers </span> </li> </ul> </div> <p><b>Please do not mark this as a duplicate issue</b>. I have tried the recommended steps (checking error logs, checking syntax, header info.. etc..) to troubleshoot which the mod has pointed me to and all those steps did not work. I am receiving a PERMISSION issue and I can not seem to figure out why. The error I get is:</p> <p>"Nov 13 14:19:08 centos64 sendmail[6611]: uADJJ80J006611: SYSERR(nginx): queueup: cannot create queue file ./qfuADJJ80J006611, euid=498, fd=-1, fp=0x0: Permission denied ~"</p> <p><b>Original Message</b>:</p> <p>Would like some help with sending email using PHP on a nginx centOS 6.4 server. I am new to this so want to first verify if my current setup is correct and diagnose what the exact issue is before I start tweaking config files.</p> <p>Goal: I would like to be able to send all the users in my SQL database email alerts, etc.. So eventually if I have a large user-base I could be sending a lot of emails..</p> <p>In my php.ini file I see..</p> <pre><code>sendmail_path = /usr/sbin/sendmail -t -i </code></pre> <p>And I have used command</p> <pre><code>/etc/init.d/postfix status </code></pre> <p>to verify that postfix is installed and is also up to date (yum -y install postfix, or whatever it was)</p> <p>I was looking at this helpful thread ( <a href="http://www.webhostingtalk.com/showthread.php?t=1238442" rel="nofollow noreferrer">http://www.webhostingtalk.com/showthread.php?t=1238442</a> ) and also looking to follow this guide ( <a href="http://www.server-world.info/en/note?os=CentOS_6&amp;p=mail" rel="nofollow noreferrer">http://www.server-world.info/en/note?os=CentOS_6&amp;p=mail</a> ) but again, didnt want to start messing with stuff until I had guidance.</p> <p>I tried to send mail using the following code, and simply visited the email.php page on my server and did not get my test email. The test email was attempted to be sent from and to a gmail email address.</p> <pre><code>&lt;?php $to = 'GMAIL_EMAIL@gmail.com'; $subject = 'Testing'; $message = 'Hello'; $headers = 'From: GMAIL_EMAIL@gmail.com' . " " . 'Reply-To: GMAIL_EMAIL@gmail.com' . " " . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?&gt; </code></pre> <p>As usual, any and all help is appreciated. Thanks!</p> <p><b>SOLUTION:</b></p> <ol> <li>I used commands </li> </ol> <p><code>sudo setsebool -P httpd_can_sendmail 1</code></p> <p><code>sudo setsebool -P httpd_can_network_connect 1</code></p> <p>And then the messages were sitting in the clientmqueue folder not being sent, so I looked at the /var/log/maillog and saw a message that said.. 'centos64 postfix/smtp[22..7]: connect to gmail-smtp-in.l.google.com[....]:25: Network is unreachable' so I googled the error message and read that I needed to do install of cyrus plain.. </p> <pre><code>yum install cyrus-sasl-plain </code></pre> <p>Hope this helps someone else out there in the same boat. </p> </div>

X-SendFile不支持centos

<div class="post-text" itemprop="text"> <p>i have the following intallation on cents 6.</p> <pre><code>apache version :Apache 2.0 httpd-tools-2.2.15-28.el6.centos.x86_64 httpd-devel-2.2.15-28.el6.centos.x86_64 httpd-2.2.15-28.el6.centos.x86_64 . </code></pre> <p>in httpd.conf i have added the line: LoadModule xsendfile_module /usr/lib64/httpd/modules/mod_xsendfile.so</p> <p>and apache_get_modules(); shows mod_xsendfile in loaded mod array... Now i have the .htaccess file which contains</p> <pre><code>&lt;Files files.php&gt; XSendFile on &lt;/Files&gt; </code></pre> <p>and the files.php have</p> <pre><code>$path='fileliste.txt'; $documentMIME="text/plain"; $modules = apache_get_modules(); if (in_array("mod_xsendfile", $modules)) { header ("X-Sendfile: ". $path); header ("Content-Type: " . $documentMIME); //header ('Content-Disposition: attachment; filename="textfile"'); } </code></pre> <p>every things seems corrects. but still it is not show any file.</p> </div>

linux环境lamp环境下,报503错误

![图片说明](https://img-ask.csdn.net/upload/201911/15/1573805148_362755.png) 使用的是腾讯香港服务器,环境lamp【话说之前使用的是lnmp,也是不行!!!!】 为啥我命运多舛,这么不顺了呢!干啥啥不行,弄啥啥出错! 求大佬指点!跪谢 错误日志: [Fri Nov 15 15:40:58.498474 2019] [ssl:warn] [pid 21563:tid 139903301691264] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Nov 15 15:40:58.498694 2019] [lbmethod_heartbeat:notice] [pid 21563:tid 139903301691264] AH02282: No slotmem from mod_heartmonitor [Fri Nov 15 15:40:58.505957 2019] [mpm_event:notice] [pid 21563:tid 139903301691264] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.1.1b configured -- resuming normal operations [Fri Nov 15 15:40:58.505998 2019] [core:notice] [pid 21563:tid 139903301691264] AH00094: Command line: '/www/server/apache/bin/httpd' [Fri Nov 15 15:41:10.605307 2019] [ssl:warn] [pid 21836:tid 140058249111424] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Nov 15 15:41:10.605516 2019] [lbmethod_heartbeat:notice] [pid 21836:tid 140058249111424] AH02282: No slotmem from mod_heartmonitor [Fri Nov 15 15:41:10.605629 2019] [core:warn] [pid 21836:tid 140058249111424] AH00098: pid file /www/server/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Fri Nov 15 15:41:10.611579 2019] [mpm_event:notice] [pid 21836:tid 140058249111424] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.1.1b configured -- resuming normal operations [Fri Nov 15 15:41:10.611610 2019] [core:notice] [pid 21836:tid 140058249111424] AH00094: Command line: '/www/server/apache/bin/httpd' [Fri Nov 15 15:41:10.721139 2019] [mpm_event:notice] [pid 21836:tid 140058249111424] AH00494: SIGHUP received. Attempting to restart [Fri Nov 15 15:41:10.728525 2019] [ssl:warn] [pid 21836:tid 140058249111424] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Nov 15 15:41:10.728602 2019] [lbmethod_heartbeat:notice] [pid 21836:tid 140058249111424] AH02282: No slotmem from mod_heartmonitor [Fri Nov 15 15:41:10.731409 2019] [mpm_event:notice] [pid 21836:tid 140058249111424] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.1.1b configured -- resuming normal operations [Fri Nov 15 15:41:10.731425 2019] [core:notice] [pid 21836:tid 140058249111424] AH00094: Command line: '/www/server/apache/bin/httpd' [Fri Nov 15 15:50:05.213767 2019] [ssl:warn] [pid 1402:tid 140669009205120] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Nov 15 15:50:05.225067 2019] [lbmethod_heartbeat:notice] [pid 1402:tid 140669009205120] AH02282: No slotmem from mod_heartmonitor [Fri Nov 15 15:50:05.225204 2019] [core:warn] [pid 1402:tid 140669009205120] AH00098: pid file /www/server/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Fri Nov 15 15:50:05.276213 2019] [mpm_event:notice] [pid 1402:tid 140669009205120] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.1.1b configured -- resuming normal operations [Fri Nov 15 15:50:05.276255 2019] [core:notice] [pid 1402:tid 140669009205120] AH00094: Command line: '/www/server/apache/bin/httpd' [Fri Nov 15 15:55:32.686438 2019] [mpm_event:notice] [pid 1402:tid 140669009205120] AH00493: SIGUSR1 received. Doing graceful restart [Fri Nov 15 15:55:32.694468 2019] [ssl:warn] [pid 1402:tid 140669009205120] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Nov 15 15:55:32.694570 2019] [lbmethod_heartbeat:notice] [pid 1402:tid 140669009205120] AH02282: No slotmem from mod_heartmonitor [Fri Nov 15 15:55:32.694816 2019] [mpm_event:notice] [pid 1402:tid 140669009205120] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.1.1b configured -- resuming normal operations [Fri Nov 15 15:55:32.694834 2019] [core:notice] [pid 1402:tid 140669009205120] AH00094: Command line: '/www/server/apache/bin/httpd' [Fri Nov 15 15:56:02.942880 2019] [mpm_event:notice] [pid 1402:tid 140669009205120] AH00493: SIGUSR1 received. Doing graceful restart [Fri Nov 15 15:56:02.951044 2019] [ssl:warn] [pid 1402:tid 140669009205120] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Nov 15 15:56:02.951136 2019] [lbmethod_heartbeat:notice] [pid 1402:tid 140669009205120] AH02282: No slotmem from mod_heartmonitor [Fri Nov 15 15:56:02.951472 2019] [mpm_event:notice] [pid 1402:tid 140669009205120] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.1.1b configured -- resuming normal operations [Fri Nov 15 15:56:02.951494 2019] [core:notice] [pid 1402:tid 140669009205120] AH00094: Command line: '/www/server/apache/bin/httpd' [Fri Nov 15 15:58:47.679633 2019] [mpm_event:notice] [pid 1402:tid 140669009205120] AH00493: SIGUSR1 received. Doing graceful restart [Fri Nov 15 15:58:47.687623 2019] [ssl:warn] [pid 1402:tid 140669009205120] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Nov 15 15:58:47.687704 2019] [lbmethod_heartbeat:notice] [pid 1402:tid 140669009205120] AH02282: No slotmem from mod_heartmonitor [Fri Nov 15 15:58:47.688041 2019] [mpm_event:notice] [pid 1402:tid 140669009205120] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.1.1b configured -- resuming normal operations [Fri Nov 15 15:58:47.688056 2019] [core:notice] [pid 1402:tid 140669009205120] AH00094: Command line: '/www/server/apache/bin/httpd' [Fri Nov 15 16:41:02.090591 2019] [autoindex:error] [pid 4031:tid 140668424939264] [client 150.109.180.237:45328] AH01276: Cannot serve directory /www/server/phpmyadmin/: No matching DirectoryIndex (index.php,index.html,index.htm,default.php,default.html,default.htm) found, and server-generated directory index forbidden by Options directive ![图片说明](https://img-ask.csdn.net/upload/201911/15/1573809741_179630.png) 能通过域名路径访问到图像或者html文件,php后缀的文件一旦访问就提示503错误! ![图片说明](https://img-ask.csdn.net/upload/201911/15/1573810477_770933.png)

程序员的兼职技能课

获取讲师答疑方式: 在付费视频第一节(触摸命令_ALL)片头有二维码及加群流程介绍 限时福利 原价99元,今日仅需39元!购课添加小助手(微信号:csdn590)按提示还可领取价值800元的编程大礼包! 讲师介绍: 苏奕嘉&nbsp;前阿里UC项目工程师 脚本开发平台官方认证满级(六级)开发者。 我将如何教会你通过【定制脚本】赚到你人生的第一桶金? 零基础程序定制脚本开发课程,是完全针对零脚本开发经验的小白而设计,课程内容共分为3大阶段: ①前期将带你掌握Q开发语言和界面交互开发能力; ②中期通过实战来制作有具体需求的定制脚本; ③后期将解锁脚本的更高阶玩法,打通任督二脉; ④应用定制脚本合法赚取额外收入的完整经验分享,带你通过程序定制脚本开发这项副业,赚取到你的第一桶金!

Windows版YOLOv4目标检测实战:训练自己的数据集

课程演示环境:Windows10; cuda 10.2; cudnn7.6.5; Python3.7; VisualStudio2019; OpenCV3.4 需要学习ubuntu系统上YOLOv4的同学请前往:《YOLOv4目标检测实战:训练自己的数据集》 课程链接:https://edu.csdn.net/course/detail/28745 YOLOv4来了!速度和精度双提升! 与 YOLOv3 相比,新版本的 AP (精度)和 FPS (每秒帧率)分别提高了 10% 和 12%。 YOLO系列是基于深度学习的端到端实时目标检测方法。本课程将手把手地教大家使用labelImg标注和使用YOLOv4训练自己的数据集。课程实战分为两个项目:单目标检测(足球目标检测)和多目标检测(足球和梅西同时检测)。 本课程的YOLOv4使用AlexyAB/darknet,在Windows系统上做项目演示。包括:安装软件环境、安装YOLOv4、标注自己的数据集、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算)和先验框聚类分析。还将介绍改善YOLOv4目标检测性能的技巧。 除本课程《Windows版YOLOv4目标检测实战:训练自己的数据集》外,本人将推出有关YOLOv4目标检测的系列课程。请持续关注该系列的其它视频课程,包括: 《Windows版YOLOv4目标检测实战:人脸口罩佩戴检测》 《Windows版YOLOv4目标检测实战:中国交通标志识别》 《Windows版YOLOv4目标检测:原理与源码解析》

lena全身原图(非256*256版本,而是全身原图)

lena全身原图(非256*256版本,而是全身原图) lena原图很有意思,我们通常所用的256*256图片是在lena原图上截取了头部部分的256*256正方形得到的. 原图是花花公子杂志上的一个

快速入门Android开发 视频 教程 android studio

这是一门快速入门Android开发课程,顾名思义是让大家能快速入门Android开发。 学完能让你学会如下知识点: Android的发展历程 搭建Java开发环境 搭建Android开发环境 Android Studio基础使用方法 Android Studio创建项目 项目运行到模拟器 项目运行到真实手机 Android中常用控件 排查开发中的错误 Android中请求网络 常用Android开发命令 快速入门Gradle构建系统 项目实战:看美图 常用Android Studio使用技巧 项目签名打包 如何上架市场

Java调用微信支付

Java 使用微信支付 一. 准备工作 1.

汽车租赁管理系统需求分析规格说明书

汽车租赁管理系统需求分析规格说明书,这只是一个模板,如果有不会的可以借鉴一下,还是蛮详细的。。。。

C/C++跨平台研发从基础到高阶实战系列套餐

一 专题从基础的C语言核心到c++ 和stl完成基础强化; 二 再到数据结构,设计模式完成专业计算机技能强化; 三 通过跨平台网络编程,linux编程,qt界面编程,mfc编程,windows编程,c++与lua联合编程来完成应用强化 四 最后通过基于ffmpeg的音视频播放器,直播推流,屏幕录像,

程序员的算法通关课:知己知彼(第一季)

【超实用课程内容】 程序员对于算法一直又爱又恨!特别是在求职面试时,算法类问题绝对是不可逃避的提问点!本门课程作为算法面试系列的第一季,会从“知己知彼”的角度,聊聊关于算法面试的那些事~ 【哪些人适合学习这门课程?】 求职中的开发者,对于面试算法阶段缺少经验 想了解实际工作中算法相关知识 在职程序员,算法基础薄弱,急需充电 【超人气讲师】 孙秀洋&nbsp;| 服务器端工程师 硕士毕业于哈工大计算机科学与技术专业,ACM亚洲区赛铜奖获得者,先后在腾讯和百度从事一线技术研发,对算法和后端技术有深刻见解。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27272 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程无限观看时长,但是大家可以抓紧时间学习后一起讨论哦~

机器学习初学者必会的案例精讲

通过六个实际的编码项目,带领同学入门人工智能。这些项目涉及机器学习(回归,分类,聚类),深度学习(神经网络),底层数学算法,Weka数据挖掘,利用Git开源项目实战等。

Python入门视频精讲

Python入门视频培训课程以通俗易懂的方式讲解Python核心技术,Python基础,Python入门。适合初学者的教程,让你少走弯路! 课程内容包括:1.Python简介和安装 、2.第一个Python程序、PyCharm的使用 、3.Python基础、4.函数、5.高级特性、6.面向对象、7.模块、8.异常处理和IO操作、9.访问数据库MySQL。教学全程采用笔记+代码案例的形式讲解,通俗易懂!!!

我以为我对Mysql事务很熟,直到我遇到了阿里面试官

太惨了,面试又被吊打

深度学习原理+项目实战+算法详解+主流框架(套餐)

深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)

Java62数据提取代码

利用苹果手机微信下面的wx.data文件提取出62数据,通过62可以实现不同设备直接登陆,可以通过文件流的方式用脚本上传到服务器进行解析

Python代码实现飞机大战

文章目录经典飞机大战一.游戏设定二.我方飞机三.敌方飞机四.发射子弹五.发放补给包六.主模块 经典飞机大战 源代码以及素材资料(图片,音频)可从下面的github中下载: 飞机大战源代码以及素材资料github项目地址链接 ————————————————————————————————————————————————————————— 不知道大家有没有打过飞机,喜不喜欢打飞机。当我第一次接触这个东西的时候,我的内心是被震撼到的。第一次接触打飞机的时候作者本人是身心愉悦的,因为周边的朋友都在打飞机, 每

2018年全国大学生计算机技能应用大赛决赛 大题

2018年全国大学生计算机技能应用大赛决赛大题,程序填空和程序设计(侵删)

Lena图像处理测试专业用图,高清完整全身原图

Lena图像处理测试专业用图,高清完整全身原图,该图片很好的包含了平坦区域、阴影和纹理等细节,这些都有益于测试各种不同的图像处理算法。它是一幅很好的测试照片!其次,由于这是一个非常有魅力女人的照片。

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

verilog实现地铁系统售票

使用 verilog 实现地铁售票

Python+OpenCV计算机视觉

Python+OpenCV计算机视觉系统全面的介绍。

Python可以这样学(第四季:数据分析与科学计算可视化)

董付国老师系列教材《Python程序设计(第2版)》(ISBN:9787302436515)、《Python可以这样学》(ISBN:9787302456469)配套视频,在教材基础上又增加了大量内容,通过实例讲解numpy、scipy、pandas、statistics、matplotlib等标准库和扩展库用法。

150讲轻松搞定Python网络爬虫

【为什么学爬虫?】 &nbsp; &nbsp; &nbsp; &nbsp;1、爬虫入手容易,但是深入较难,如何写出高效率的爬虫,如何写出灵活性高可扩展的爬虫都是一项技术活。另外在爬虫过程中,经常容易遇到被反爬虫,比如字体反爬、IP识别、验证码等,如何层层攻克难点拿到想要的数据,这门课程,你都能学到! &nbsp; &nbsp; &nbsp; &nbsp;2、如果是作为一个其他行业的开发者,比如app开发,web开发,学习爬虫能让你加强对技术的认知,能够开发出更加安全的软件和网站 【课程设计】 一个完整的爬虫程序,无论大小,总体来说可以分成三个步骤,分别是: 网络请求:模拟浏览器的行为从网上抓取数据。 数据解析:将请求下来的数据进行过滤,提取我们想要的数据。 数据存储:将提取到的数据存储到硬盘或者内存中。比如用mysql数据库或者redis等。 那么本课程也是按照这几个步骤循序渐进的进行讲解,带领学生完整的掌握每个步骤的技术。另外,因为爬虫的多样性,在爬取的过程中可能会发生被反爬、效率低下等。因此我们又增加了两个章节用来提高爬虫程序的灵活性,分别是: 爬虫进阶:包括IP代理,多线程爬虫,图形验证码识别、JS加密解密、动态网页爬虫、字体反爬识别等。 Scrapy和分布式爬虫:Scrapy框架、Scrapy-redis组件、分布式爬虫等。 通过爬虫进阶的知识点我们能应付大量的反爬网站,而Scrapy框架作为一个专业的爬虫框架,使用他可以快速提高我们编写爬虫程序的效率和速度。另外如果一台机器不能满足你的需求,我们可以用分布式爬虫让多台机器帮助你快速爬取数据。 &nbsp; 从基础爬虫到商业化应用爬虫,本套课程满足您的所有需求! 【课程服务】 专属付费社群+每周三讨论会+1v1答疑

获取Linux下Ftp目录树并逐步绑定到treeview

在linux下抓取目录树,双击后获取该节点子节点(逐步生成)。另外有两个类,一个是windows下的(一次性获取目录树),一个是linux下的(足部获取目录树)

YOLOv3目标检测实战系列课程

《YOLOv3目标检测实战系列课程》旨在帮助大家掌握YOLOv3目标检测的训练、原理、源码与网络模型改进方法。 本课程的YOLOv3使用原作darknet(c语言编写),在Ubuntu系统上做项目演示。 本系列课程包括三门课: (1)《YOLOv3目标检测实战:训练自己的数据集》 包括:安装darknet、给自己的数据集打标签、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算和画出PR曲线)和先验框聚类。 (2)《YOLOv3目标检测:原理与源码解析》讲解YOLOv1、YOLOv2、YOLOv3的原理、程序流程并解析各层的源码。 (3)《YOLOv3目标检测:网络模型改进方法》讲解YOLOv3的改进方法,包括改进1:不显示指定类别目标的方法 (增加功能) ;改进2:合并BN层到卷积层 (加快推理速度) ; 改进3:使用GIoU指标和损失函数 (提高检测精度) ;改进4:tiny YOLOv3 (简化网络模型)并介绍 AlexeyAB/darknet项目。

手把手实现Java图书管理系统(附源码)

【超实用课程内容】 本课程演示的是一套基于Java的SSM框架实现的图书管理系统,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的java人群。详细介绍了图书管理系统的实现,包括:环境搭建、系统业务、技术实现、项目运行、功能演示、系统扩展等,以通俗易懂的方式,手把手的带你从零开始运行本套图书管理系统,该项目附带全部源码可作为毕设使用。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27513 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化

微信小程序开发实战之番茄时钟开发

微信小程序番茄时钟视频教程,本课程将带着各位学员开发一个小程序初级实战类项目,针对只看过官方文档而又无从下手的开发者来说,可以作为一个较好的练手项目,对于有小程序开发经验的开发者而言,可以更好加深对小程序各类组件和API 的理解,为更深层次高难度的项目做铺垫。

Java 最常见的 200+ 面试题:面试必备

这份面试清单是从我 2015 年做了 TeamLeader 之后开始收集的,一方面是给公司招聘用,另一方面是想用它来挖掘在 Java 技术栈中,还有那些知识点是我不知道的,我想找到这些技术盲点,然后修复它,以此来提高自己的技术水平。虽然我是从 2009 年就开始参加编程工作了,但我依旧觉得自己现在要学的东西很多,并且学习这些知识,让我很有成就感和满足感,那所以何乐而不为呢? 说回面试的事,这份面试...

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

微信小程序 实例汇总 完整项目源代码

微信小程序 实例汇总 完整项目源代码

基于西门子S7—1200的单部六层电梯设计程序,1部6层电梯

基于西门子S7—1200的单部六层电梯设计程序,1部6层电梯。 本系统控制六层电梯, 采用集选控制方式。 为了完成设定的控制任务, 主要根据电梯输入/输出点数确定PLC 的机型。 根据电梯控制的要求,

相关热词 c#分级显示数据 c# 不区分大小写替换 c#中调用就java c#正则表达式 验证小数 c# vscode 配置 c#三维数组能存多少数据 c# 新建excel c#多个文本框 c#怎么创建tcp通讯 c# mvc 电子病例
立即提问