Tune PHP environment on server with IIS (as Fast-CGI module).
Comparing to development environment Up and running PHP development environment on Linux and Windows. this task need only a couple mouse click. Firstly need to download Not Thread safe version from PHP site - https://windows.php.net/download/. Automatic installation usually don't working properly therefore I prefer manual installation.
So, first step is install PHP to C:\PHP, unfortunately changing this directory is worst idea.
![](/Php-Server/Php-1_1.png)
Second step is adding PHP to Path on windows environment.
![](/Php-Server/Php-2_1.png)
![](/Php-Server/Php-3_1.png)
Next step is tune IIS, allow PHP need only a couple click on IIS.
![](/Php-Server/Php-4_1.png)
![](/Php-Server/Php-5_1.png)
And currently this is time to check IIS.
![](/Php-Server/Php-6_1.png)
Pay attention to most important IIS future - send details error to browser, because IIS by default hide any errors.
![](/Php-Server/Php-7_1.png)
![](/Php-Server/Php-8_1.png)
Next step is add extension, usually need at least MySQL.
![](/Php-Server/Php-9_1.png)
![](/Php-Server/MySQL-6_1.png)
And next step usually install MySQL and tune PHP login to Database.
![](/Php-Server/MySQL-1_1.png)
![](/Php-Server/MySQL-2_1.png)
![](/Php-Server/MySQL-3_1.png)
![](/Php-Server/MySQL-4_1.png)
![](/Php-Server/MySQL-5_1.png)
Than we need to create DB user and database (schema). Check user password, port, login and schema by MySQLWorkbench, than remote login, and finally check whole PHP application.
![](/Php-Server/App-1_1.png)
![](/Php-Server/App-2_1.png)
![](/Php-Server/MySQL-7_1.png)
![](/Php-Server/MySQL-8_1.png)
![](/Php-Server/App-3_1.png)
For debugging on server environment we need to use Log only technology, and we need to add permission to log folder.
![](/Php-Server/PhpLog-1_1.png)
For connect various 3-rd party library without Composer I usually downloaded needed library to PHP folder. And than include path to this library to PHP.ini.
![](/Php-Server/PhpLib-1_1.png)
![](/Php-Server/PhpLib-2_1.png)
![](/Php-Server/PhpLib-3_1.png)
![](http://forum.vb-net.com/GetTopicCount.png?id=c3c4c01d-1419-4c6c-b18a-8187c38ddbcc)
<SITEMAP> <MVC> <ASP> <NET> <DATA> <KIOSK> <FLEX> <SQL> <NOTES> <LINUX> <MONO> <FREEWARE> <DOCS> <ENG> <CHAT ME> <ABOUT ME> < THANKS ME> |