PHP3.0.x の初期設定、動作確認 | HTTPD Installation Last modified : 2001/02/20 |
# cd /usr/local/src/php-3.0.x # cp php3.ini-dist /usr/local/lib/php3.ini |
#AddType application/x-httpd-php3 .php3 ↓ AddType application/x-httpd-php3 .php3 |
AddType application/x-httpd-php3 .html |
# /usr/local/www/bin/apachectl restart apachectl restart: httpd restarted |
# cd /usr/local/src/php-3.0.x/examples # cp date.php3 /usr/local/www/htdocs |
別のPCからブラウザを使用し目的のURL(http://localhost/date.php3)をアクセスして、
以下のように時間表示されればPHPのインストール成功です!
Date/Time Functions Demo ... For example, if we wanted to print the current date and time, we might use a tag like: . This looks like: Wed Aug 25, 1999 16:00:45 ... |