「パーフェクトPHP」という書籍に沿って、PHPを勉強しています。
以下に、行った行動を記します。
① 「/Applications/XAMPP/xamppfiles/etc/httpd.conf」を開き、
#Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf
のコメントアウトを外した。
② 「/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf」を開き、元々あったコードを全てコメントアウトし、
<VirtualHost *:80>
ServerName mini-blog.localhost
DocumentRoot /mini-blog.localhost/web
DirectoryIndex index.php index.html
</VirtualHost><Directory "/mini-blog.localhost/web"> AllowOverride All Allow from All Require all granted </Directory>
を追加した。
③ 「/etc/hosts」を開き、
127.0.0.1 mini-blog.localhost
を追加した。
④Apache、MySqlを再起動した。
以上になります。
3時間以上格闘してます。ぜひ、よろしくお願いします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。