LoginSignup
0
0

More than 3 years have passed since last update.

localhost wget出来ない(ローカルサーバーで出来ない)

Posted at

wget http://localhost.exemple
でエラーになる。

phpでfile_get_contents("localhost.exemple");
でも取得できない時

php.ini の設定確認

/etc/php.ini
allow_url_fopen = true

/etc/hosts の設定確認

127.0.0.1 localhost.localdomain localhost localhost.exemple

/etc/httpd/conf/httpd.conf の設定確認

Listen 127.0.0.1:80
が追加されているか。
→見落としがちListenは複数指定できます。

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