dポイントプレゼントキャンペーン実施中!

http://localhost/test.php

<?php
phpinfo();
?>

見ると、タグがそのまま表示されてしまい、実行されません。
何を直せばローカルでも動くようになりますか?

Win8.1
アパッチインストール済
サーバー上にアップしてみると、きちんと動作確認できます。
文字コードUTF-8 BOMなし


・・でもアップする前にローカルで確認したいんです。
php.ini ファイルがないのが原因でしょうか。

詳しい方、よろしくお願い致します。

A 回答 (3件)

こんにちは。



Error: Apache shutdown unexpectedly.
14:53:12 [Apache] This may be due to a blocked port, missing dependencies,
14:53:12 [Apache] improper privileges, a crash, or a shutdown by another method.
14:53:12 [Apache] Press the Logs button to view error logs and check
14:53:12 [Apache] the Windows Event Viewer for more clues
14:53:12 [Apache] If you need more help, copy and post this
14:53:12 [Apache] entire log window on the forums

エラーメッセージをそのまま検索すれば答えはすぐ見つかると思いますよ。

ポートの競合が起きてるんでは?
通常Webサーバは80ポートを利用します。
Skypeが入って起動していませんか?Skypeは80ポートを利用します。
    • good
    • 0
この回答へのお礼

出来ました!
ポート番号を変更したらちゃんとPHPファイルが実行されました。

朝からずーっともんもんとしていたので、
出来て良かったです^^

重ねてアドバイス頂きありがとうございました!
これでPHPの勉強が出来ます(笑)

心よりお礼申し上げます。

お礼日時:2014/05/01 15:37

とりあえずXAMMPなど、ローカルサーバーを作るのが一番らく

この回答への補足

早々とご回答くださいましてありがとうございます!

XAMMPインストールしました。
回答下さりありあとうございました

補足日時:2014/05/01 14:57
    • good
    • 0

こんにちは。



apacheをインストールしただけではただWebサーバが動作するだけです。
phpもセットアップする必要があります。

xamppでセットアップするのが手っ取り早いと思いますよ。
https://www.apachefriends.org/jp/download_succes …

この回答への補足

早々とご回答いただきありがとうございます!

さっそくxamppインストールしてアパッチを起動?
しようとしたらエラーが吐き出されました。
Error: Apache shutdown unexpectedly.
14:53:12 [Apache] This may be due to a blocked port, missing dependencies,
14:53:12 [Apache] improper privileges, a crash, or a shutdown by another method.
14:53:12 [Apache] Press the Logs button to view error logs and check
14:53:12 [Apache] the Windows Event Viewer for more clues
14:53:12 [Apache] If you need more help, copy and post this
14:53:12 [Apache] entire log window on the forums


・・・・何が原因でしょうか。
すみません、わかりましたらご教授下さい

補足日時:2014/05/01 14:56
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!