标签: php

4 篇文章

phpMyAdmin修改登录的用户名和密码
安装phpMyAdmin后,可以使用root账号登录,安全考虑,禁用root登录,修改如下: cd libraries vi config.default.php #修改如下代码 $cfg['Servers'][$i]['AllowRoot'] = false; 注:pma和pmapass为mysql数据库中的用户名和密码,mysql添加用户参照文…
PHP重新安装启用PDO扩展和PDO_MySQL扩展
一个项目需要开启PDO扩展,原来安装php时没有启用,configure配置了--disable-pdo。现在需要重新安装如下: 1、安装PDO扩展 cd /data/src/php-5.6.4/ext/pdo #执行phpize命令 /usr/local/php5/bin/phpize ./configure --with-php-config=…
Nginx与PHP(FastCGI)配置wordpress站点
FastCGI是一个可伸缩地、高速地在HTTP server和动态脚本语言间通信的接口。多数流行的HTTP server都支持FastCGI,包括Apache、Nginx和lighttpd等,同时,FastCGI也被许多脚本语言所支持,其中就有PHP。 vi nginx.conf 完整的server配置如下: server { listen 80;…