Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/top_msg.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/linux/CentOS/php/php_install/php_install.html on line 21
Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/top_msg.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/linux/CentOS/php/php_install/php_install.html on line 21
目次 |
---|
・PHPのインストール ・PHPを動作させる為httpd.conf編集 |
yum -y install phpと実行します。
LoadModule php5_module modules/libphp5.so #追加 DirectoryIndex index.html index.php #変更 AddType text/html .php #追加 AddType application/x-httpd-php-source .phps #追加 AddHandler php5-script .php #追加(PHP5.xの場合)