# cd /usr/local/src/ # wget https://packages.zendframework.com/releases/ZendFramework-2.2.2/ZendFramework-2.2.2.zip # unzip ZendFramework-2.2.2.zip # cp -R ZendFramework-2.2.2/library/Zend /usr/local/lib/php/Zend # mkdir MyProject # cd MyProject # git clone git://github.com/zendframework/ZendSkeletonApplication.git # cd ZendSkeletonApplication/ # vim /usr/local/nginx/conf/nginx.conf
server { listen 8080; server_name localhost; root MyProject/ZendSkeletonApplication/public; index index.php index.html index.htm; location / { if (!-e $request_filename) { rewrite ^.*$ /index.php last; } } location ~ .php$ { fastcgi_pass unix:/tmp/php.socket; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_param APPLICATION_ENV development; fastcgi_param ZF2_PATH /usr/local/lib/php; include fastcgi_params; } }
# service nginx restart
0 件のコメント:
コメントを投稿