Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Tutorials
[Tutorial] How to setup UberCMS 2.0 with Nginx
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="iHarrison" data-source="post: 99690" data-attributes="member: 13942"><p>Hello,</p><p> </p><p>This is a small tutorial on setting up PHP, Nginx and UberCMS 2.0. You have hopefully executed and configured your Phoenix or Butterfly database already so I'll leave that out of this tutorial.</p><p> </p><p>For this you will need to download:</p><ul> <li data-xf-list-type="ul">PHP - <a href="http://windows.php.net/downloads/releases/php-5.3.13-Win32-VC9-x86.zip" target="_blank">http://windows.php.net/downloads/releases/php-5.3.13-Win32-VC9-x86.zip</a></li> <li data-xf-list-type="ul">Nginx - <a href="http://www.nginx.org/download/nginx-1.2.0.zip" target="_blank">http://www.nginx.org/download/nginx-1.2.0.zip</a></li> <li data-xf-list-type="ul">RunHiddenConsole - <a href="http://dl.dropbox.com/u/46466988/RunHiddenConsole.exe" target="_blank">http://dl.dropbox.com/u/46466988/RunHiddenConsole.exe</a></li> <li data-xf-list-type="ul">UberCMS 2.0 - <a href="http://www.mediafire.com/?rka93bi5xav36qd" target="_blank">http://www.mediafire.com/?rka93bi5xav36qd</a></li> </ul> <p style="text-align: center"><img src="http://wiki.nginx.org/local/nginx-logo.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><strong>Installing Nginx</strong></p><ol> <li data-xf-list-type="ol">Download the web server from the link mentioned earlier in the thread.</li> <li data-xf-list-type="ol">Extract the contents of the .zip to C:\nginx - this is the recommended directory.</li> <li data-xf-list-type="ol"><strong>Download RunHiddenConsole.exe and put it in the same folder!</strong></li> <li data-xf-list-type="ol">We now need to create a few files to stop, and start the server. So first, create a file called start_server.bat and put the following inside:<br /> [PHP]<br /> @ECHO OFF<br /> RunHiddenConsole.exe e:\nginx\nginx.exe<br /> RunHiddenConsole.exe e:\nginx\php\php-cgi.exe -b 127.0.0.1:9000 -c e:\nginx\php\php.ini<br /> pause<br /> EXIT<br /> [/PHP]</li> <li data-xf-list-type="ol">Then create a file called stop_server.bat and put this inside:<br /> [PHP]<br /> @ECHO OFF<br /> taskkill /f /IM nginx.exe<br /> taskkill /f /IM php-cgi.exe<br /> EXIT<br /> [/PHP]</li> <li data-xf-list-type="ol">As you can see, there is a line for PHP in each one, but if you want to test that the web server works, remove those and run start_server.bat. You should then be able to see a welcome page when browsing to <a href="http://localhost" target="_blank">http://localhost</a></li> <li data-xf-list-type="ol">We are now ready to install PHP!</li> </ol> <p style="text-align: center"><img src="http://www.codeunit.co.za/wp-content/uploads/2009/12/PHP-logo.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><strong>Installing PHP</strong></p><ol> <li data-xf-list-type="ol">Download PHP using the link shown earlier in the thread, and extract it to the /php inside where the web server is located.</li> <li data-xf-list-type="ol">Head inside the /php folder and search for a php.ini-production file. Rename this to php.ini.</li> <li data-xf-list-type="ol">Open up php.ini inside your favourite editor. First we need to configure the extension directory, to do this, search <strong>extension_dir</strong> until you see this:<br /> [PHP]<br /> ; Directory in which the loadable extensions (modules) reside.<br /> ; http://php.net/extension-dir<br /> ; extension_dir = "./"<br /> ; On windows:<br /> ; extension_dir = "ext"<br /> [/PHP]</li> <li data-xf-list-type="ol">Just below that, put this:<br /> [PHP] <br /> extension_dir = "ext"<br /> [/PHP]</li> <li data-xf-list-type="ol">Now we need to enable a few extensions so that UberCMS can run properly. Search for <strong>;extension=php_bz2.dll</strong> until you see a long list of extensions like this:<br /> [PHP] <br /> ;extension=php_bz2.dll<br /> ;extension=php_curl.dll<br /> ;extension=php_fileinfo.dll<br /> ;extension=php_gd2.dll<br /> ;extension=php_gettext.dll<br /> ;extension=php_gmp.dll<br /> ;extension=php_intl.dll<br /> ;extension=php_imap.dll<br /> ;extension=php_interbase.dll<br /> ;extension=php_ldap.dll<br /> ;extension=php_mbstring.dll<br /> ;extension=php_exif.dll ; Must be after mbstring as it depends on it<br /> ;extension=php_mysql.dll<br /> ;extension=php_mysqli.dll<br /> ;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client<br /> ;extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client<br /> ;extension=php_openssl.dll<br /> ;extension=php_pdo_firebird.dll<br /> ;extension=php_pdo_mssql.dll<br /> ;extension=php_pdo_mysql.dll<br /> ;extension=php_pdo_oci.dll<br /> ;extension=php_pdo_odbc.dll<br /> ;extension=php_pdo_pgsql.dll<br /> ;extension=php_pdo_sqlite.dll<br /> ;extension=php_pgsql.dll<br /> ;extension=php_pspell.dll<br /> ;extension=php_shmop.dll<br /> [/PHP]</li> <li data-xf-list-type="ol">Once you are at this point, un-comment (remove the ; symbol) from the following extensions:<br /> [PHP] <br /> ;extension=php_curl.dll<br /> ;extension=php_mbstring.dll<br /> ;extension=php_mysql.dll<br /> ;extension=php_mysqli.dll<br /> <br /> (tell me if i've missed any)<br /> [/PHP]</li> <li data-xf-list-type="ol">Feel free to change anything you want after this, just try not to break anything! Once you have done so, save the file and go back to the nginx directory.</li> <li data-xf-list-type="ol"><strong>If you removed the PHP lines from the .bat files just to test the web server, put them back!</strong></li> <li data-xf-list-type="ol">Now we need to configure Nginx to communicate with PHP. To make things easier, head over to the /conf folder and replace the contents of your nginx.conf file with this:<br /> [PHP] <br /> <br /> http://pastebin.com/raw.php?i=Hsyd6Xaq<br /> <br /> [/PHP]</li> <li data-xf-list-type="ol">This should configure everything for you. This also includes the rewrites that the CMS requires, similar to what the .htaccess and web.config files do.</li> <li data-xf-list-type="ol">Save the file and start the server.</li> <li data-xf-list-type="ol">To test that your PHP installation was successful, simply create a file called phpinfo.php under the /html directory with the following:<br /> [PHP] <br /> <?php phpinfo(); ?><br /> [/PHP]</li> <li data-xf-list-type="ol">Save this, and head over to <a href="http://localhost/phpinfo.php" target="_blank">http://localhost/phpinfo.php</a>. You should be introduced with a huge page with information about PHP, your server, configuration, etc.</li> <li data-xf-list-type="ol">Time for the most important part, the CMS!</li> </ol> <p style="text-align: center"><img src="http://zaphotel.net/images/logo.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><strong>Installing UberCMS</strong></p><ol> <li data-xf-list-type="ol">Extract the contents of the CMS to C:\nginx\html</li> <li data-xf-list-type="ol">Edit /includes/configuration/system_config.php</li> <li data-xf-list-type="ol">Edit /includes/configuration/ubercms_config.php</li> <li data-xf-list-type="ol">Run the SQLs in the text file</li> <li data-xf-list-type="ol">Add the `newcrypto` column to the `users` table, enum('1','0') not null default 1;</li> <li data-xf-list-type="ol">Run the following SQL into your database:<br /> [PHP] <br /> [COLOR=#666666][LEFT][URL='http://pastebin.com/raw.php?i=UKBgL7Cp'][COLOR=#53596e]http://pastebin.com/raw.php?i=UKBgL7Cp[/COLOR][/URL][/LEFT][/COLOR]<br /> [/PHP]</li> <li data-xf-list-type="ol">UberCMS should now be installed and ready to go!</li> </ol><p>I have probably missed something out so if I have, then just PM me or reply to the thread. Feel free to ask for any help if you need any.</p><p> </p><p>Enjoy ^^</p></blockquote><p></p>
[QUOTE="iHarrison, post: 99690, member: 13942"] Hello, This is a small tutorial on setting up PHP, Nginx and UberCMS 2.0. You have hopefully executed and configured your Phoenix or Butterfly database already so I'll leave that out of this tutorial. For this you will need to download: [LIST] [*]PHP - [URL]http://windows.php.net/downloads/releases/php-5.3.13-Win32-VC9-x86.zip[/URL] [*]Nginx - [URL]http://www.nginx.org/download/nginx-1.2.0.zip[/URL] [*]RunHiddenConsole - [URL]http://dl.dropbox.com/u/46466988/RunHiddenConsole.exe[/URL] [*]UberCMS 2.0 - [URL]http://www.mediafire.com/?rka93bi5xav36qd[/URL] [/LIST] [CENTER][IMG]http://wiki.nginx.org/local/nginx-logo.png[/IMG][/CENTER] [B]Installing Nginx[/B] [LIST=1] [*]Download the web server from the link mentioned earlier in the thread. [*]Extract the contents of the .zip to C:\nginx - this is the recommended directory. [*][B]Download RunHiddenConsole.exe and put it in the same folder![/B] [*]We now need to create a few files to stop, and start the server. So first, create a file called start_server.bat and put the following inside: [PHP] @ECHO OFF RunHiddenConsole.exe e:\nginx\nginx.exe RunHiddenConsole.exe e:\nginx\php\php-cgi.exe -b 127.0.0.1:9000 -c e:\nginx\php\php.ini pause EXIT [/PHP] [*]Then create a file called stop_server.bat and put this inside: [PHP] @ECHO OFF taskkill /f /IM nginx.exe taskkill /f /IM php-cgi.exe EXIT [/PHP] [*]As you can see, there is a line for PHP in each one, but if you want to test that the web server works, remove those and run start_server.bat. You should then be able to see a welcome page when browsing to [URL]http://localhost[/URL] [*]We are now ready to install PHP! [/LIST] [CENTER][IMG]http://www.codeunit.co.za/wp-content/uploads/2009/12/PHP-logo.jpg[/IMG][/CENTER] [B]Installing PHP[/B] [LIST=1] [*]Download PHP using the link shown earlier in the thread, and extract it to the /php inside where the web server is located. [*]Head inside the /php folder and search for a php.ini-production file. Rename this to php.ini. [*]Open up php.ini inside your favourite editor. First we need to configure the extension directory, to do this, search [B]extension_dir[/B] until you see this: [PHP] ; Directory in which the loadable extensions (modules) reside. ; http://php.net/extension-dir ; extension_dir = "./" ; On windows: ; extension_dir = "ext" [/PHP] [*]Just below that, put this: [PHP] extension_dir = "ext" [/PHP] [*]Now we need to enable a few extensions so that UberCMS can run properly. Search for [B];extension=php_bz2.dll[/B] until you see a long list of extensions like this: [PHP] ;extension=php_bz2.dll ;extension=php_curl.dll ;extension=php_fileinfo.dll ;extension=php_gd2.dll ;extension=php_gettext.dll ;extension=php_gmp.dll ;extension=php_intl.dll ;extension=php_imap.dll ;extension=php_interbase.dll ;extension=php_ldap.dll ;extension=php_mbstring.dll ;extension=php_exif.dll ; Must be after mbstring as it depends on it ;extension=php_mysql.dll ;extension=php_mysqli.dll ;extension=php_oci8.dll ; Use with Oracle 10gR2 Instant Client ;extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client ;extension=php_openssl.dll ;extension=php_pdo_firebird.dll ;extension=php_pdo_mssql.dll ;extension=php_pdo_mysql.dll ;extension=php_pdo_oci.dll ;extension=php_pdo_odbc.dll ;extension=php_pdo_pgsql.dll ;extension=php_pdo_sqlite.dll ;extension=php_pgsql.dll ;extension=php_pspell.dll ;extension=php_shmop.dll [/PHP] [*]Once you are at this point, un-comment (remove the ; symbol) from the following extensions: [PHP] ;extension=php_curl.dll ;extension=php_mbstring.dll ;extension=php_mysql.dll ;extension=php_mysqli.dll (tell me if i've missed any) [/PHP] [*]Feel free to change anything you want after this, just try not to break anything! Once you have done so, save the file and go back to the nginx directory. [*][B]If you removed the PHP lines from the .bat files just to test the web server, put them back![/B] [*]Now we need to configure Nginx to communicate with PHP. To make things easier, head over to the /conf folder and replace the contents of your nginx.conf file with this: [PHP] http://pastebin.com/raw.php?i=Hsyd6Xaq [/PHP] [*]This should configure everything for you. This also includes the rewrites that the CMS requires, similar to what the .htaccess and web.config files do. [*]Save the file and start the server. [*]To test that your PHP installation was successful, simply create a file called phpinfo.php under the /html directory with the following: [PHP] <?php phpinfo(); ?> [/PHP] [*]Save this, and head over to [URL]http://localhost/phpinfo.php[/URL]. You should be introduced with a huge page with information about PHP, your server, configuration, etc. [*]Time for the most important part, the CMS! [/LIST] [CENTER][IMG]http://zaphotel.net/images/logo.png[/IMG][/CENTER] [B]Installing UberCMS[/B] [LIST=1] [*]Extract the contents of the CMS to C:\nginx\html [*]Edit /includes/configuration/system_config.php [*]Edit /includes/configuration/ubercms_config.php [*]Run the SQLs in the text file [*]Add the `newcrypto` column to the `users` table, enum('1','0') not null default 1; [*]Run the following SQL into your database: [PHP] [COLOR=#666666][LEFT][URL='http://pastebin.com/raw.php?i=UKBgL7Cp'][COLOR=#53596e]http://pastebin.com/raw.php?i=UKBgL7Cp[/COLOR][/URL][/LEFT][/COLOR] [/PHP] [*]UberCMS should now be installed and ready to go! [/LIST] I have probably missed something out so if I have, then just PM me or reply to the thread. Feel free to ask for any help if you need any. Enjoy ^^ [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[Tutorial] How to setup UberCMS 2.0 with Nginx
Top