# 宝塔PHP服务管理命令

### **宝塔站长群** [**https://TG.HostCLi.COM**](https://TG.HostCLi.COM)

### PHP服务管理

php安装目录

```
/www/server/php
```

启动(请根据安装PHP版本号做更改，例如：/etc/init.d/php-fpm-54 start)

```
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} start
```

停止(请根据安装PHP版本号做更改，例如：/etc/init.d/php-fpm-54 stop)

```
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} stop
```

重启(请根据安装PHP版本号做更改，例如：/etc/init.d/php-fpm-54 restart)

```
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} restart
```

启载(请根据安装PHP版本号做更改，例如：/etc/init.d/php-fpm-54 reload)

```
/etc/init.d/php-fpm-{52|53|54|55|56|70|71|72|73|74} reload
```

配置文件(请根据安装PHP版本号做更改，例如：/www/server/php/52/etc/php.ini)

```
/www/server/php/{52|53|54|55|56|70|71|72|73|74}/etc/php.ini
```

### **宝塔站长群** [**https://TG.HostCLi.COM**](https://TG.HostCLi.COM)

End.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.hostcli.com/bt-command/php.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
