依照網路上的說明安裝了php伺服器,測試時卻無法通過。
經過搜索,發現是由於權限問題導致,記錄如下:
If you open your /etc/php5/fpm/pool.d/www.conf file, you'll notice that fastcgi is listening to /var/ run/php5-fpm.sock. You'll need to grant your webserver privileges to the unix socket by uncommenting the following lines:
listen.owner = www-data
listen.owner = www-data
listen.mode = 0660以上就介紹了ubuntu 1204安裝php的權限配製,包含了方面的內容,希望對PHP教學有興趣的朋友有幫助。