1,install apach2
sudo apt-get install apache2
http://localhost
It Works!
アパッチの導入に10回以上やっているのですが、Apach2.2は名前の入力に「localhost」と入れてやればアパッチ2.2は作ることが出来るのですが、色々やってみても、「httpd.conf」が悪いのか、エラー403しか出ません。
htmlファイルは出力出来るのに、設定ミスなのかなぁ。
はまって動けなくなっています。
ヘルプミーと叫んでもビスタ用のファイルはありません。
アパッチさんにローカルインストーラ付きのを出してもらいたいですぅ。
ビスタは条件が変わっていますので、c:は互換モードとかファイルの書き込み、自動作成が許可無しで動かないから、許可の要らないd:に設置しています。
元々、英語が苦手なんです
2,install php5
sudo apt-get install php5
then
sudo /etc/init.d/apache2 restart
let's test it
sudo gedit /var/www/testphp.php
<?php phpinfo(); ?>
http://localhost
my infomation:
PHP Version 5.2.6-3ubuntu4.2
System | Linux ubuntu 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 |
Build Date | Aug 21 2009 18:45:50 |
Server API | Apache 2.0 Handler |
Virtual Directory Support | disabled |
Configuration File (php.ini) Path | /etc/php5/apache2 |
Loaded Configuration File | /etc/php5/apache2/php.ini |
Scan this dir for additional .ini files | /etc/php5/apache2/conf.d |
additional .ini files parsed | /etc/php5/apache2/conf.d/pdo.ini |
PHP API | 20041225 |
PHP Extension | 20060613 |
Zend Extension | 220060519 |
Debug Build | no |
Thread Safety | disabled |
Zend Memory Manager | enabled |
IPv6 Support | enabled |
Registered PHP Streams | zip, php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps |
Registered Stream Socket Transports | tcp, udp, unix, udg, ssl, sslv3, sslv2, tls |
Registered Stream Filters | string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.* |
/*3,install mysql
sudo apt-get install mysql-server
then
Install MYSQL Administrator
sudo apt-get install mysql-admin
Install MYSQL for Apache HTTP Server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install phpmyadmin*/