PHP
Linux
Apache
httpd

Linuxにhttpdサーバを立てる

sudo yum install httpd
sudo systemctl start httpd

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

エラーが出たので修正
sudo vim /etc/httpd/conf/httpd.conf

User nobody
Group nobody

起動した!

ついでに.htmlでphpを動作させるために
sudo vim /etc/httpd/conf.d/php.conf


AddType application/x-httpd-php .html