Continued from my last post.
The installation of ActivePerl.
Move printenv.pl from Apache24cgi-bin to drive_DC:WEBcgi-bin.
Access http://xxx.xxx.xxx.xxx/cgi-bin/printenv.pl from a web browser.
If you have the server environment variables list, the installation is complete.
The installation of PHP5.5.
Default | Custom | |
1 | ;default_charset = “UTF-8” | default_charset = “UTF-8” |
2 | ; extension_dir = “ext” | extension_dir = “Drive_SV:PHPext” |
3 | allow_url_fopen = On | allow_url_fopen = Off |
4 | ;extension=php_curl.dll | extension=php_curl.dll |
5 | ;extension=php_gd2.dll | extension=php_gd2.dll |
6 | ;extension=php_mbstring.dll | extension=php_mbstring.dll |
7 | ;extension=php_mysql.dll | extension=php_mysql.dll |
8 | ;extension=php_mysqli.dll | extension=php_mysqli.dll |
9 | ;extension=php_openssl.dll | extension=php_openssl.dll |
10 | ;date.timezone = | date.timezone =”Asia/Tokyo” |
11 | ;sendmail_from = me@example.com | sendmail_from = My email address |
12 | ;mbstring.language = Japanese | mbstring.language = Japanese |
13 | ;mbstring.internal_encoding = UTF-8 | mbstring.internal_encoding = UTF-8 |
14 | ;mbstring.http_input = UTF-8 | mbstring.http_input = pass |
15 | ;mbstring.http_output = pass | mbstring.http_output = pass |
16 | ;mbstring.encoding_translation = Off | mbstring.encoding_translation = Off |
17 | ;mbstring.detect_order = auto | mbstring.detect_order = UTF-8,ASCII,SJIS,EUC-JP,JIS |
18 | ;mbstring.substitute_character = none | mbstring.substitute_character = none |
(*) About the 14-18, it should work by leaving the default. The above 14-18 customization is particularly for my server.
Three additional settings by the security reason. The 19 and 21 settings might give some troubles on your server. It depends on your server environment. (Edit:Dec.27).
Default | Custom | |
19 | output_buffering = 4096 | output_buffering = Off |
20 | expose_php = On | expose_php = Off |
21 | mysql.allow_persistent = On | mysql.allow_persistent = Off |
Customize the httpd.conf (Location:Apache24conf).
DirectoryIndex index.html —> DirectoryIndex index.php index.html
Add the next two lines to at the end of the Supplemental configuration section:
# PHP settings
Include conf/extra/php55.conf
Restart Apache.
Access http://xxx.xxx.xxx.xxx/test.php from a web browser.
If you have the phpinfo list, the installation is complete.
Edit2(2014.Mar.24):
I enabled the Opcache on 2013 Dec. 27. If you use a lot of PHP scripts on your server, I also recommend the post “Enabled Opcache”.
The recipe for sweet potato yōkan that I often made this fall. Ingredients Sweet potato…
After a long time, when I checked broken links and fixed them, I got an…
I made a box, so I prepare the contents. Theme and Plugins. The theme is…
Hehe, it's been almost a year since my last post. I received a notification email…
About a week ago, I finally started to renew my sites, which I had been…
This website uses cookies.