【1】Apache/MySQLをstratボタン押下した時に開始できない
* 以下のエラー内容が表示され、開始できなかった
エラー内容
Apache 20:00:39 [Apache] Problem detected!
20:00:39 [Apache] Port 80 in use by "Unable to open process" with PID 4!
20:00:39 [Apache] Apache WILL NOT start without the configured ports free!
20:00:39 [Apache] You need to uninstall/disable/reconfigure the blocking application
20:00:39 [Apache] or reconfigure Apache and the Control Panel to listen on a different port
MySQL 20:00:49 [mysql] Error: MySQL shutdown unexpectedly.
20:00:49 [mysql] This may be due to a blocked port, missing dependencies,
20:00:49 [mysql] improper privileges, a crash, or a shutdown by another method.
20:00:49 [mysql] Press the Logs button to view error logs and check
20:00:49 [mysql] the Windows Event Viewer for more clues
20:00:49 [mysql] If you need more help, copy and post this
20:00:49 [mysql] entire log window on the forums
原因
* その環境で、Apache/MySQLを実行しているポート(デフォルト Apache 89 / MySQL 3306)が、
ほかのソフトで使用しているポートと重なっていたため
解決案
Apache [1] Apache の [config]-[Apache(httpd.conf)]を押下
[2] 以下の「■修正後」を参考して、ポートが重ならないようにする(【例】ポート「11180」)
【修正案】
L58付近
■修正前
Listen 80
■修正後
Listen 11180
L223付近
■修正前
ServerName localhost:80
■修正後
ServerName localhost:11180
MySQL [1] MySQLの [config]-[my.ini]を押下
[2] 以下の「■修正後」を参考して、ポートが重ならないようにする(【例】ポート「13306」)
【修正案】
L20付近
■修正前
port = 3306
■修正後
port = 13306
L28付近
■修正前
port= 3306
■修正後
port= 13306
【2】phpmyadminにアクセスしたらエラー
http://localhost:11180/phpmyadmin/index.phpにアクセスしたら、以下のエラー内容が表示され、開始できなかった
エラー内容
エラー
MySQL のメッセージ: ドキュメント
#1045 - Access denied for user 'root'@'localhost' (using password: NO)
mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)
設定ファイルに定義されている管理ユーザ(controluser)での接続に失敗しました。
mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO)
MySQL サーバに接続しようとしましたが拒否されました。config.inc.php のホスト、ユーザ名、パスワードが MySQL サーバの管理者から与えられた情報と一致するか確認してください。