41 | | *** /etc/fstab |
| 40 | apt-get install mysql-server mysql-client nginx lighttpd php5-cgi php5-mysql php5-curl php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl |
| 41 | update-rc.d -f lighttpd remove |
| 42 | emacs /etc/php5/cgi/php.ini |
| 43 | - add this line in the end of file |
| 44 | cgi.fix_pathinfo = 1 |
| 45 | - save and exit (ctrl+x, ctrl+c) - make sure to add a new line in every end of file for safety |
| 46 | emacs /etc/rc.local |
| 47 | - add this line before exit |
| 48 | /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid |
| 49 | mount /mnt/Media |
| 50 | - save and exit |
| 51 | }}} |
| 52 | 3. create folder /mnt/Media then add mount point in fstab for reboot [[BR]] |
| 53 | {{{ |
| 54 | emacs /etc/fstab |
| 55 | - add this line |