| | 96 | }}} |
| | 97 | |
| | 98 | == lighttpd install == |
| | 99 | |
| | 100 | Install base part. |
| | 101 | {{{ |
| | 102 | $ sudo aptitude install lighttpd |
| | 103 | }}} |
| | 104 | |
| | 105 | Install PHP modules. |
| | 106 | {{{ |
| | 107 | $ sudo aptitude install php5-cgi php5-mysql php5-xmlrpc |
| | 108 | }}} |
| | 109 | To enable PHP5 in Lighttpd, we must modify /etc/php5/cgi/php.ini and add the line cgi.fix_pathinfo = 1 right at the end of the file: |
| | 110 | {{{ |
| | 111 | $ sudo vi /etc/php5/cgi/php.ini |
| | 112 | |
| | 113 | cgi.fix_pathinfo = 1 |
| | 114 | }}} |
| | 115 | |
| | 116 | To enable the fastcgi configuration (which is stored in /etc/lighttpd/conf-available/10-fastcgi.conf), run the following command: |
| | 117 | {{{ |
| | 118 | $ sudo lighttpd-enable-mod fastcgi |
| | 119 | }}} |
| | 120 | This creates a symlink /etc/lighttpd/conf-enabled/10-fastcgi.conf which points to /etc/lighttpd/conf-available/10-fastcgi.conf |
| | 121 | |
| | 122 | Then reload Lighttpd: |
| | 123 | |
| | 124 | {{{ |
| | 125 | $ sudo /etc/init.d/lighttpd force-reload |