Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は新しいphpとMySQLの本を読んでいて、「WebサーバーがローカルにインストールされていてPHPをサポートしている場合は、PHPスクリプトを直接コンピューターでテストできる」と書かれていました。Linuxでこれをすべて取得するにはどうすればよいですか?また、取得したら、phpスクリプトが機能しているかどうかをテストするにはどうすればよいですか?
LAMPスタックをインストールします。あなたはすでにUbuntuを持っているので、AMPスタック。 sudo apt-get install apache2 php5 php5-mysqlコマンドラインから、phpを使用してWebサーバーをセットアップします。次に、スクリプトを/ var /www/に配置できます。
sudo apt-get install apache2 php5 php5-mysql