PHP
Installation
In order to process PHP requests, Nginx needs an additional package
$ sudo apt-get install php-fpm Configure Nginx to Use the PHP Processor
Now, we need to tell Nginx to use the PHP processor for dynamic content.
We edit the /etc/nginx/sites-enabled/task.woezzon.com.conf file and put
$ sudo nano /etc/nginx/sites-enabled/task.woezzon.com.confWe can check the configuration file with
$ sudo nginx -tIf everything is ok , we simply restart the server
$ sudo /etc/init.d/nginx restartTo test the PHP configuration, we create a simple php file with the content
$ sudo nano /var/www/html/info.php
// with the content
<?php
phpinfo();
?>Configuration of php.ini
We can visit the page with the link http://task.woezzon.com/info.php
After we update php.ini configuration in order to accept big file upload
Last updated
Was this helpful?