![]() |
|
[TUT] How to install Nginx + php5 + mysql [TUT] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88) +---- Forum: Linux (https://hackforums.net/forumdisplay.php?fid=85) +---- Thread: [TUT] How to install Nginx + php5 + mysql [TUT] (/showthread.php?tid=2637455) |
[TUT] How to install Nginx + php5 + mysql [TUT] - Loki123 - Jul 1, 2012 How to install Nginx with PHP5 and MySQL Ummmm, I'm going to help you to install Nginx with MySQL and PHP and I will include how to setup PhpMyAdmin. This will be tut on a Debian based distro so if you use CentOS or some other distro, the config part should be the same but other way to install the package. 😎 Install MySQL services Spoiler (Click to View) Install NginxSpoiler (Click to View) Install PHP5 and configure itSpoiler (Click to View) install & starting spawn-fcgiSpoiler (Click to View) Configure Nginx Ok, this is the part I HATE. We need to edit /etc/nginx/sites-available/default... PHP Code and change from Server { listen 80; CRAAP } to this : Spoiler (Click to View) Then restart Nginx and try the PHP out. Now, Nginx with PHP + MYSQL should be up... PHP Code Installing PhpMyAdmin Lets install phpmyadmin first. PHP Code and then edit default again. PHP Code and add this above "# deny access to .htaccess files, if Apache's document root" Spoiler (Click to View) Then restart nginx and test SERVERIP/phpmyadmin 🤗 PHP Code And everything should be up and running. If not comment or PM me and I will try to help any way I can. ✌ * - D3RP - Jul 1, 2012 nice tutorial it should be useful to someone.. the commands are pretty basic knowledge though. * - Your mum - Jul 2, 2012 Spoiler those codes mate, idk about you guys but they are running off the edge of my 42inch monitor and I know thats going to be hell for some of you guys running 12inches. * - FaulT - Jul 2, 2012 (Jul 2, 2012 08:56 AM)Robby Wrote: Spoiler those codes mate, idk about you guys but they are running off the edge of my 42inch monitor and I know thats going to be hell for some of you guys running 12inches. For me its fine when i have full screen on. But for people with smaller screens its going to run off like crazy. But thanks for the guide anyways never used nginx before. * - Loki123 - Jul 2, 2012 added spoilers :-) Should be better for those who have small screens. mine is 1920x1080 so it was fine for me :D * - SEANoEv0l - Nov 2, 2012 Was Experimenting with Nginx today for the first time in awhile looking too make a compleate switch from apache2 too nginx but im having some problems. Phpinfo.php displays fine.. But i have uploaded some other php files and they all show white page no error/404 just white... What could be the issue? Regards * - bozak - Nov 2, 2012 (Nov 2, 2012 04:09 AM)Pernaty Wrote: Was Experimenting with Nginx today for the first time in awhile looking too make a compleate switch from apache2 too nginx but im having some problems. nginx sucks dick for dynamic content (especially php). just stick with apache22 * - terminal - Nov 2, 2012 Don't gravedig old threads. And just flame what other people have said. * - NeyZ - Nov 2, 2012 (Nov 2, 2012 04:09 AM)Pernaty Wrote: Was Experimenting with Nginx today for the first time in awhile looking too make a compleate switch from apache2 too nginx but im having some problems. Do you upload it on other directory's? Ie /var/www/(nginx-default ?)/thisismydirectory/yourphppage.php |