原创 apache2.4中輸入網址未能指向index
在apache的httpd.conf文件中第283行位置<IfModule dir_module>DirectoryIndex index.html</IfModule>寫入index.php即爲:<IfModule dir_module>
原创 centos7安裝php5.6.36的參數配置
./configure --prefix=/usr/local/php \--with-config-file-path=/usr/local/php/etc \--enable-inline-optimization \--disable
原创 高於5.3版本php安裝2.7版本echsop出現的各種問題
http://www.uuecs.com/article-shouce/402.html https://jingyan.baidu.com/article/574c52193092e76c8c9dc145.html http://www.
原创 centos7安裝php5.6報錯集合
安裝PHP時顯示,xml2-config not found這裏需要安裝的是libxml2-dev軟件包(該軟件爲Ubuntu-Server自帶的,需要使用Ubuntu-Server光盤安裝),操作如下:sudo apt-get insta
原创 TP3 Undefined class constant 'MYSQL_ATTR_INIT_C..
phpinfo();有個Configuration File (php.ini) 和Loaded Configuration File 後者優先級高於前者!如果後者爲空則以前者爲準;這才apache讀取php.ini的位置,並不是讀取php
原创 解決安裝Apache24安裝時443端口被佔用方法
找到D:\Apache24\conf\extra 下面的 httpd-ahssl.conf和httpd-ssl.conf,有443的地方改爲442就可以了。 然後restart Apache
原创 apache2.4 You don't have permission to access / on
apache2.4 You don't have permission to access / on this server. 在配置完apache2.4conf/extra/httpd-vhosts.conf 添加完虛擬主機後以及本地wi
原创 5.7.22mysql配置
Win10安裝MySQL5.7.22 解壓縮版(手動配置)方法 1.下載地址:https://dev.mysql.com/downloads/mysql/5.7.html#downloads 2.可以把解壓的內容隨便放到一個目錄,我的是如下
原创 安裝apache2.4.6的幾個報錯
在最小安裝centos6.3的系統上重現了這些報錯。並找到了解決方法。本來是想在服務器搭建系列裏面安裝apache時候說這些報錯,鑑於報錯比較多,而且服務器搭建裏面還有對比較重要配置文件詳細分析,大家在找解決方案時候可能會錯過,因此單獨提出
原创 最新cenos執行service httpd restart 報錯Failed to restart
原來是需要將Apache註冊到Linux服務裏面啊!註冊Apache到Linux服務在Linux下用源代碼方式編譯安裝完Apache後,啓動關閉Apache可以通過如下命令實現:/usr/local/apache/bin/apachectl
原创 php5.6 和apache2.2的相互配置
apache module AddType application/x-httpd-php .php<IfModule dir module>DirectoryIndex index.php index.html</IfModule>
原创 他人的php5.6參數設置
./configure --prefix=/data/server/php \ --with-config-file-path=/data/server/php/etc \ --with-mysql=mysqlnd \ --with-
原创 CentOS7查看和關閉防火牆
CentOS 7.0默認使用的是firewall作爲防火牆 查看防火牆狀態 firewall-cmd --state1停止firewall systemctl stop firewalld.service1禁止firewall開機啓動 sy
原创 Apache2.4.33安裝無systemctl/service status/state顯示
netstat -tlnp看端口 httpd的端口是80,如果80端口是監聽狀態,則說明 http服務已經開啓 ps -ef|grep http或者ps aux|grep http看httpd的進程 編譯安裝的systemctl stat
原创 使用get方法傳遞一個值爲.(點)的參數,導致文件夾目錄消失。用if判斷值爲.後追加/可解決此問題。
<?php $path='./'; if(isset($_GET['dir'])){ $path=$path.$_GET['dir']; } $dh=opendir($path); if($dh===false){ echo '打開出錯