0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【開発メモ~LinuxでWebサーバー立てるために、ApacheのPHP有効化】

Posted at

開発環境: 

・LinuxOS Ubunt
・PHP version5.6
・Apache

phpとApacheインストール&rootDri作成後

①拡張子を変換

index. html → index. php

②libapache2-mod-php(各ver) をインストール

③viエディタでphpのconfigを編集

ex) sudo vi /etc/apache2/mods-enabled/php(各ver).conf

php5.6.conf
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>

の部分をすべてコメントアウトする

④再起動

shell
sudo service apache2 restart

☆思ったこと

初期段階のコンフィグの設定いじらないといけないのかよ!w
この設定のおかげで三日間無駄にしてしまった...。
参考

・学校の先生
http://d.hatena.ne.jp/tosi29/20131124/1385285173
https://linux.keicode.com/servers/apache-userdir.php?fbclid=IwAR2QRCm76Pm-2kHXo1jkEyQ5DyYvP1GyrwPd1wfketVAX9rtBhhOqAOUUm8

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?