dev-os

[Ubuntu] Ubuntu + lighttpd + php5 + mysql (Using apt-get)

검은바람 2014. 6. 27. 09:03
반응형

# sudo su

# apt-get install mysql-server mysql-client

# apt-get install lighttpd

# apt-get install php5-fpm php5-cgi php5-mysql php5

# vim /etc/php5/fpm/php.ini

;주석 해제cgi.fix_pathinfo=1

# vim /etc/lighttpd/conf-available/15-fastcgi-php.conf

fastcgi.server += ( ".php" =>
        ((
                "socket" => "/var/run/php5-fpm.sock",
                "broken-scriptfilename" => "enable"
        ))
)

# lighttpd-enable-mod fastcgi
# lighttpd-enable-mod fastcgi-php

# /etc/init.d/lighttpd force-reload

# vim /etc/php5/fpm/pool.d/www.conf

;주석해제
listen.owner = www-data
listen.group = www-data
listen.mode = 0660

# service php5-fpm restart

 

반응형