apache启动失败,应该是端口冲突,修改配置文件
17:43:55 [Apache] Attempting to start Apache service...
17:43:58 [Apache] Status change detected: running
17:43:58 [Apache] Status change detected: stopped
17:43:58 [Apache] Error: Apache shutdown unexpectedly.
17:43:58 [Apache] This may be due to a blocked port, missing dependencies,
17:43:58 [Apache] improper privileges, a crash, or a shutdown by another method.
17:43:58 [Apache] Press the Logs button to view error logs and check
17:43:58 [Apache] the Windows Event Viewer for more clues
17:43:58 [Apache] If you need more help, copy and post this
17:43:58 [Apache] entire log window on the forums
17:44:42 [Apache] Problem detected!
17:44:42 [Apache] Port 443 in use by ""E:\Program Files (x86)\VMware\VMware Workstation\vmware-hostd.exe" -u "C:\ProgramData\VMware\hostd\config.xml"" with PID 8856!
17:44:42 [Apache] Apache WILL NOT start without the configured ports free!
17:44:42 [Apache] You need to uninstall/disable/reconfigure the blocking application
17:44:42 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
端口被占用
杀掉被占用端口
重新启动
服务器部署成功
点击explorer进入xampp根目录
服务器默认的网站路径是htdocs文件夹的路径,将网站放在此路劲下即可
htdocs路径下的index.php文件
404
apache修改配置文件
<Directory />
AllowOverride none
Require all denied
</Directory>
<Directory />
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
开启:LoadModule rewrite_module modules/mod_rewrite.so
@DESKTOP D:\xampp\mysql
# mysql -u root -p
Enter password: ****
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
@DESKTOPD:\xampp\mysql
# mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 4493
Server version: 10.1.31-MariaDB mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use mysql
Database changed
MariaDB [mysql]> update user set password=PASSWORD("root") where user='root';
Query OK, 3 rows affected (0.00 sec)
Rows matched: 3 Changed: 3 Warnings: 0
MariaDB [mysql]>
重启mysql,mysql -u root -p,输入密码,连接mysql成功
找到开phpmyadmin文件夹下面的config.inc.php文件,把下面两行修改为设置的用户名和密码
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
来源:oschina
链接:https://my.oschina.net/u/4354006/blog/3322994