> For the complete documentation index, see [llms.txt](https://hostpanel.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hostpanel.gitbook.io/untitled/php-fu-wu-guan-li-ming-ling.md).

# PHP服务管理命令

官网 https\://hostpanel.cc   群组: https\://t.me/hostpanelg

**HostPanel官网** [**https://hostpanel.cc**](https://hostpanel.cc)

**HostPanel站长交流群** [**https://t.me/hostpanelg**](https://t.me/hostpanelg)

### 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
```
