首次安装后 XAMPP Apache 和 MySQL 服务未启动或停止 [英] XAMPP Apache and MySQL services not starting or stopping after first installation

查看:49
本文介绍了首次安装后 XAMPP Apache 和 MySQL 服务未启动或停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始学习 PHP 和 MySql 并提高我对 Javascript 的了解,目前我只使用 jQuery 并且只知道该语言的核心语法.我选择阅读 学习 PHP MySQL 和 Javascript 似乎满足了我的所有需求.

Hi I want to start learning PHP and MySql and also polish my knowledge of Javascript witch is very limited at the moment having only use jQuery and knowing only the core sintax of the language.I choose to read Learning PHP MySQL and Javascript witch seemed to fit all my needs.

在安装新东西时总是运气不好,我立即在 XAMPP 1.7.7 上陷入了死胡同.

Having always had bad luck when installing something new I immediately hit a dead end with XAMPP 1.7.7.

服务器在第一次安装时正常运行,我可以从控制面板中停止 MySQL 和 Apache 的运行.但是如果关闭控制面板并重新打开它,我会出错.

The server runs corectly when is first installed and I can stop MySQL and Apache from running from the control panel.But if close the control panel and reopen it I get and error.

如果第一次打开时我离开了 apache 并打开了 Mysql 我得到错误 Apache 服务没有停止 [-1] MySQL 也是如此.如果服务关闭我得到同样的错误说 apache 服务不能启动相同的 MySQL.

If when it was first opened I left apache and Mysql opened I get the error Apache Service not stopped [-1] the same goes for MySQL.If the services were close I get the same error that says apache service can't start same for MySQL.

我尝试了多次安装,但发生了同样的事情.

I have tryed multiple instalations and the same thing happens.

我首先想到我会安装它并将它们打开以便我可以开始工作,但遗憾的是它不能正常工作,或者我不知道如何正确运行 PHP 脚本.

I first tought I will install it and live them open so I can start working but sadly it didn't work corectly or I don't know how to run a PHP script corectly.

这是我所做的:

我打开了 PHPStorm 并粘贴了这个带有 PHP 扩展名的小文件:

I opened PHPStorm and pasted this little scripped with a PHP extension :

  <?php

    echo "Hello world";

 ?>

之后我尝试运行它,但出现错误未安装 PHP 解释器".如果 apache 服务器正在运行,它不应该工作吗?

After that I tried to run it but I get the error "PHP interpretor is not installed". Shouldn't it have worked if the apache server was running?

推荐答案

你应该在你停止 apache 或 mysql 之后等待让他们清理.如果你想强制他们结束他们的进程,你可以从任务管理器中杀死 httpd.exemysqld.exe,然后尝试从 xampp 控制面板启动它.

You should wait after you stopped apache or mysql to let them clean things up. If you want to force them to end their processes, you can kill httpd.exe and mysqld.exe from task manager and then try starting it from xampp control panel.

这篇关于首次安装后 XAMPP Apache 和 MySQL 服务未启动或停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆