home archives github knives links
tags php wordpress xampp
categories
only title title and content
xampp搭建wordpress

windows

安装和配置

[Apache] Error: Apache shutdown unexpectedly.
[Apache] This may be due to a blocked port, missing dependencies,
[Apache] improper privileges, a crash, or a shutdown by another method.
[Apache] Press the Logs button to view error logs and check
[Apache] the Windows Event Viewer for more clues
[Apache] If you need more help, copy and post this
[Apache] entire log window on the forums

需要修改端口号:


Linux

xampp安装

sudo chmod a+x *.run
sudo ./*.run

出现

XAMPP: Starting Apache...fail.
XAMPP: Another web server is already running.

使用(待定)

sudo /usr/sbin/apache2ctl stop
sudo /opt/lampp/lampp start # https

wordpress安装

若出现数据库已经存在的报错(重装时),删除原数据库.先手动删除数据库(位置/opt/lampp/var/mysql/wordpress),然后再用phpmyadmin(localhost/phpmyadmin)删除

define('DB_NAME', 'wordpress');
define('DB_USER', 'root');
define('DB_PASSWORD', '');

好像最开始是不能有密码的

报错解决

sudo chmod a+w -R /opt/lampp/htdocs

htdocs/wp-config.php添加

define('FS_METHOD', "direct");

但还是一堆Warning

bug解决

127.0.0.1替代localhost

其他配置

仪表盘->设置->常规

插件