php5.1.4
PHPを入れてみました。
takatoshi@sarge:~/temp/php-5.1.4$ ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql takatoshi@sarge:~/temp/php-5.1.4$ make takatoshi@sarge:~/temp/php-5.1.4$ sudo make install Password: Installing PHP SAPI module: apache2handler /usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules /usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/ cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la libtool: install: warning: remember to run `libtool --finish /home/takatoshi/temp/php-5.1.4/libs' chmod 755 /usr/local/apache2/modules/libphp5.so [activating module `php5' in /usr/local/apache2/conf/httpd.conf] Installing PHP CLI binary: /usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing build environment: /usr/local/lib/php/build/ Installing header files: /usr/local/include/php/ Installing helper programs: /usr/local/bin/ program: phpize program: php-config Installing man pages: /usr/local/man/man1/ page: phpize.1 page: php-config.1 Installing PEAR environment: /usr/local/lib/php/ [PEAR] Archive_Tar - installed: 1.3.1 [PEAR] Console_Getopt - installed: 1.2 pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0) [PEAR] PEAR - installed: 1.4.9 Wrote PEAR system config file at: /usr/local/etc/pear.conf You may want to add: /usr/local/lib/php to your php.ini include_path Installing PDO headers: /usr/local/include/php/ext/pdo/
php.iniをコピー
takatoshi@sarge:~/temp/php-5.1.4$ sudo cp php.ini-dist /usr/local/lib/php.ini
httpd.conf
AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps
レスポンスヘッダ
Server: Apache/2.2.2 (Unix) DAV/2 SVN/1.1.4 mod_fastcgi/2.4.2 PHP/5.1.4 mod_perl/2.0.2 Perl/v5.8.8
なんかよさげだ。
Hello Worldのやりかたは知らないのでパス。
-
- -