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'] = '';