1. Tired of not being able to see links? Want to chat with other members? Need help?

[Tutorial] Setting up PHP, IIS and UberCMS 2.0

Discussion in 'Habbo Tutorials' started by iHarrison, May 13, 2012.

  1. iHarrison
    Offline

    iHarrison Member

    Joined:
    Mar 11, 2012
    Messages:
    306
    Likes Received:
    149
    Best Answers:
    0
    Hello again,

    Following the previous tutorial I just posted, I have done up another one for those that want to use IIS. This is probably the easiest way of doing things, but there are more fixes that are required to ensure that CMS is running fine with IIS.

    You will need to download
    Web Platform Installer - [ Want to see this link? Register ! ]
    UberCMS - [ Want to see this link? Register ! ]

    Installing IIS
    For Windows 7:
    1. In Windows, access the Control Panel and click Add or Remove Programs.
    2. In the Add or Remove Programs window, click Add/Remove Windows Components.
    3. Select the Internet Information Services (IIS) check box, click Next, then click Finish
    4. Now, go to your browser, and in the URL bar, type localhost/ then you should see an IIS page, like this.
      [​IMG]
    5. And there we go, you now have IIS running.
    For Windows Server:
    1. In Windows Server, access the Server Manager and scroll down until you see Add Roles. When you do, click it.
    2. Click next until you are introduced to a screen like this.
      [​IMG]
    3. Select Web Server (IIS). Then keep going until you see the list of Role Services you can install.
      [​IMG]
    4. Select CGI, as this is required for PHP which you will be installing later in the tutorial.
    5. Ensure that you have selected anything else that you require for IIS also. Once you have done, click install.

    Installing PHP
    1. Download the Web Platform Installer, then run it. It should take a few seconds to install.
    2. You should then be introduced to a screen, like this.
      [​IMG]
    3. Click products, and check the following items:
      PHP:
      .NET Framework 4.0 (You should already have this for Phoenix or Butterfly)
      URL Rewrite 2.0
      PHP 5.3
      .x
      PHP Manager

      Note 
      if you don't see PHP 5.3.x then just install PHP Manager. This should install PHP for you.
    4. Then hit install, then I accept. This should take a few minutes, or a slightly more if you're installing .NET, to complete.
    5. Once you have done this, head into the IIS manager and hit restart. You should have now installed PHP.
    Installing UberCMS
    1. Download UberCMS from the link above, then extract the contents into C:\inetpub\wwwroot
    2. Edit /includes/configuration/system_config.php - this is the file which contains your database information!
    3. Edit /includes/configuration/ubercms_config.php
    4. Run the SQLs in the SETUP_NOTES.txt file included.
    5. Add the `newcrypto` column to the `users` table, enum('1','0') not null default 1;
    6. Running the following file into your database:
      PHP:
      http://pastebin.com/raw.php?i=8TUQ87z1
    7. Because IIS does not read from .htaccess we will need to import it to a web.config. To save the hassle I have done it for you:
      PHP:
      <?xml version="1.0" encoding="UTF-8"?>
      <configuration>
          <system.webServer>
              <rewrite>
                  <rules>
                      <rule name="Imported Rule 1">
                          <match url="^(.*)\.html" ignoreCase="false" />
                          <action type="Rewrite" url="{R:1}\.php" />
                      </rule>
                      <rule name="Imported Rule 2">
                          <match url="^out/([^/]+)(|/)$" ignoreCase="false" />
                          <conditions logicalGrouping="MatchAll">
                              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                              <add input="{REQUEST_FILENAME}\.php" matchType="IsFile" ignoreCase="false" />
                          </conditions>
                          <action type="Rewrite" url="/out.php?out={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 3">
                          <match url="^crossdomain.xml$" ignoreCase="false" />
                          <action type="Rewrite" url="/crossdomain.php" />
                      </rule>
                      <rule name="Imported Rule 4">
                          <match url="^gamedata/external(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/externals.php" />
                      </rule>
                      <rule name="Imported Rule 5">
                          <match url="^vip/vouchers(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/redeem.php" />
                      </rule>
                      <rule name="Imported Rule 6">
                          <match url="^vote(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/api.php" />
                      </rule>
                      <rule name="Imported Rule 7">
                          <match url="^texts(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/externals.php?id=external_flash_texts" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 8">
                          <match url="^vars(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/externals.php?id=external_variables" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 9">
                          <match url="^productdata(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/gamedata/ACTIVE/productdata.txt" />
                      </rule>
                      <rule name="Imported Rule 10">
                          <match url="^furnidata(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/gamedata/ACTIVE/furnidata.txt" />
                      </rule>
                      <rule name="Imported Rule 11">
                          <match url="^access_denied(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/access_denied.php" />
                      </rule>
                      <rule name="Imported Rule 12">
                          <match url="^client_denied(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/access_denied.php?gateway=client?novote" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 13">
                          <match url="^order/vip(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/ordervip.php?pass=true" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 14">
                          <match url="^home/([^/]+)/id(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/home.php?qryId={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 15">
                          <match url="^home/([^/]+)(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/home.php?qryName={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 16">
                          <match url="^avatarimage(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/inc/imager.php?figure={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 17">
                          <match url="^quickmenu/friends_all(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/quick-friends.php" />
                      </rule>
                      <rule name="Imported Rule 18">
                          <match url="^quickmenu/groups(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/quick-groups.php" />
                      </rule>
                      <rule name="Imported Rule 19">
                          <match url="^quickmenu/rooms(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/quick-rooms.php" />
                      </rule>
                      <rule name="Imported Rule 20">
                          <match url="^security_check(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="security_check.php" />
                      </rule>
                      <rule name="Imported Rule 21">
                          <match url="^profile(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/profile.php" />
                      </rule>
                      <rule name="Imported Rule 22">
                          <match url="^values(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/values.php" />
                      </rule>
                      <rule name="Imported Rule 23">
                          <match url="^client(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/newclient.php" />
                      </rule>
                      <rule name="Imported Rule 24">
                          <match url="^flash_client_error(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/client_error.php" />
                      </rule>
                      <rule name="Imported Rule 25">
                          <match url="^client_error(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/client_error.php" />
                      </rule>
                      <rule name="Imported Rule 26">
                          <match url="^me(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/me.php" />
                      </rule>
                      <rule name="Imported Rule 27">
                          <match url="^login_popup(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/login-popup.php" />
                      </rule>
                      <rule name="Imported Rule 28">
                          <match url="^buyvip(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/vippage.php" />
                      </rule>
                      <rule name="Imported Rule 29">
                          <match url="^community(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/community.php" />
                      </rule>
                      <rule name="Imported Rule 30">
                          <match url="^community/staff(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/staff.php" />
                      </rule>
                      <rule name="Imported Rule 31">
                          <match url="^credits(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/credits.php" />
                      </rule>
                      <rule name="Imported Rule 32">
                          <match url="^credits/pixels(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/pixels.php" />
                      </rule>
                      <rule name="Imported Rule 33">
                          <match url="^credits/club(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/habboclub.php" />
                      </rule>
                      <rule name="Imported Rule 34">
                          <match url="^credits/habboclub(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/habboclub.php" />
                      </rule>
                      <rule name="Imported Rule 35">
                          <match url="^credits/uberclub(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/habboclub.php" />
                      </rule>
                      <rule name="Imported Rule 36">
                          <match url="^credits/uberclub/tryout(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/clubtryout.php" />
                      </rule>
                      <rule name="Imported Rule 37">
                          <match url="^credits/habboclub/tryout(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/clubtryout.php" />
                      </rule>
                      <rule name="Imported Rule 38">
                          <match url="^register(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/register.php" />
                      </rule>
                      <rule name="Imported Rule 39">
                          <match url="^register_submit(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/register.php?doSubmit" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 40">
                          <match url="^register_messages(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/register-messages.php" />
                      </rule>
                      <rule name="Imported Rule 41">
                          <match url="^register/cancel(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/register-cancel.php" />
                      </rule>
                      <rule name="Imported Rule 42">
                          <match url="^register/welcome(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/welcome.php" />
                      </rule>
                      <rule name="Imported Rule 43">
                          <match url="^register/undefined(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/index.php" />
                      </rule>
                      <rule name="Imported Rule 44">
                          <match url="^vip/shop(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/vipshop.php" />
                      </rule>
                      <rule name="Imported Rule 45">
                          <match url="^vip/getpoints(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/vippoints.php" />
                      </rule>
                      <rule name="Imported Rule 46">
                          <match url="^account/policy-verify(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/policyver.php" />
                      </rule>
                      <rule name="Imported Rule 47">
                          <match url="^account/password/forgot(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/forgot.php" />
                      </rule>
                      <rule name="Imported Rule 48">
                          <match url="^account/submit(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/index.php" />
                      </rule>
                      <rule name="Imported Rule 49">
                          <match url="^account/logout(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/logout.php" />
                      </rule>
                      <rule name="Imported Rule 50">
                          <match url="^account/logout_ok(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/logout-ok.php" />
                      </rule>
                      <rule name="Imported Rule 51">
                          <match url="^account/disconnected(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/disconnected.php" />
                      </rule>
                      <rule name="Imported Rule 52">
                          <match url="^articles(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/article.php?mostRecent" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 53">
                          <match url="^articles/archive(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/article.php?mostRecent&amp;archiveMode" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 54">
                          <match url="^articles/([^/]+)/in/archive(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/article.php?rel={R:1}&amp;archiveMode" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 55">
                          <match url="^articles/([^/]+)(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/article.php?rel={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 56">
                          <match url="^articles/category/([^/]+)(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/article.php?category={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 57">
                          <match url="^myhabbo/save(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/myhabbo/save.php" />
                      </rule>
                      <rule name="Imported Rule 58">
                          <match url="^home/(.*)/startSession/(.*)$" ignoreCase="false" />
                          <action type="Rewrite" url="/startSession.php?id={R:2}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 59">
                          <match url="^home/([^/]+)/id(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/home.php?qryId={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 60">
                          <match url="^home/([^/]+)(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/home.php?qryName={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 61">
                          <match url="^myhabbo/cancel/(.*)(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/myhabbo/cancel.php?id={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 62">
                          <match url="^myhabbo/(.*)/(.*)(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/myhabbo/{R:1}_{R:2}.php" />
                      </rule>
                      <rule name="Imported Rule 63">
                          <match url="^register/undefined/([^/]+)$" ignoreCase="false" />
                          <action type="Rewrite" url="/me.php" />
                      </rule>
                      <rule name="Imported Rule 64">
                          <match url="^habblet/cproxy(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/habbletProxy.php" />
                      </rule>
                      <rule name="Imported Rule 65">
                          <match url="^habblet/ajax/([^/]+)(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/habbletAjax.php?cmd={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 66">
                          <match url="^habblet/([^/]+)(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/habblet.php?cmd={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 67">
                          <match url="^myhabbo/([^.]+)(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/myhabbo.php?cmd={R:1}" appendQueryString="false" />
                      </rule>
                      <rule name="Imported Rule 68">
                          <match url="^minimail/loadMessage(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/minimail-view.php" />
                      </rule>
                      <rule name="Imported Rule 69">
                          <match url="^minimail/([^/]+)(|/)$" ignoreCase="false" />
                          <action type="Rewrite" url="/minimail.php?cmd={R:1}" appendQueryString="false" />
                      </rule>
                  </rules>
              </rewrite>
          </system.webServer>
      </configuration>
    8. If you test the CMS now, it's probably still throwing you an IIS error or a blank page. To fix this, open the global.php file within the root folder and search for:
      PHP:
      $headers = @apache_request_headers();  
    9. Then replace it with:
      PHP:
      // $headers = @apache_request_headers();  
    10. If you ever switch to another web server, you may want to remove the // comments on that line to avoid any problems.
    11. If everything went as planned, you should see a page like this!
      [​IMG]
    12. Congratulations, you have successfully installed IIS, PHP and UberCMS 2.0.
    Have fun.
    Deion likes this.
  2. StyleCreationz
    Offline

    StyleCreationz New Member

    Joined:
    Apr 28, 2012
    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    In my control panel i dont see add/remove i have a thing that says programs uninstall prgrams please help i dont see nothing for Internet Information Services (IIS) either. Help please, thanks!
  3. LeRubaz
    Offline

    LeRubaz New Member

    Joined:
    May 19, 2012
    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    I cant Logout.. have anyone a fix?
  4. Peter Griffin
    Offline

    Peter Griffin New Member

    Joined:
    Sep 10, 2011
    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Please update the link above, with the least UberCMS 2.0.1 & Database.

    Thank you
  5. Nike
    Offline

    Nike #MGK

    Joined:
    Jun 9, 2012
    Messages:
    530
    Likes Received:
    108
    Best Answers:
    0
    Nice tutorial. I recommend RevCMS though.
    iHarrison likes this.
  6. Lounge
    Offline

    Lounge #dat habbo nigga

    Joined:
    Apr 12, 2012
    Messages:
    299
    Likes Received:
    31
    Best Answers:
    0
    Good Job!

    Nice tutorial for beginners ;)
    iHarrison likes this.
  7. BeamHotel
    Offline

    BeamHotel Member

    Joined:
    Jun 30, 2012
    Messages:
    88
    Likes Received:
    4
    Best Answers:
    0
    Best Tutorial So Far :up: [10/10]
    iHarrison likes this.
  8. Sledmore
    Offline

    Sledmore Super Moderator Staff Member

    Joined:
    Jul 24, 2010
    Messages:
    3,753
    Likes Received:
    1,905
    Best Answers:
    8
    Nice detailed and lengthy tutorial, I still prefer RevCMS other than UberCMS, especially if your new at creating a retro, but good share.
    iHarrison likes this.
  9. BeamHotel
    Offline

    BeamHotel Member

    Joined:
    Jun 30, 2012
    Messages:
    88
    Likes Received:
    4
    Best Answers:
    0
    May u help me tho With My housekeeping Says:
    Server error

    The website encountered an error while retrieving [ Want to see this link? Register ! ]. It may be down for maintenance or configured incorrectly.
    Here are some suggestions:

    • [ Want to see this link? Register ! ] this web page later.

    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.
  10. Flint
    Offline

    Flint http://Dusk-Hotel.com

    Joined:
    Jul 10, 2012
    Messages:
    459
    Likes Received:
    51
    Best Answers:
    0
    Why do people use uber? i heard it was exploited or so, is it better then rev?
    Thanks
  11. BeamHotel
    Offline

    BeamHotel Member

    Joined:
    Jun 30, 2012
    Messages:
    88
    Likes Received:
    4
    Best Answers:
    0
    ubercms2 has one exploit which is an easy fix. people think it is due to more features, and easy to code and habbo styled.
    i prefer ubercms but revCMS is cool :cool:
    Flint likes this.
  12. Tomm
    Offline

    Tomm The Legend

    Joined:
    Aug 19, 2012
    Messages:
    189
    Likes Received:
    105
    Best Answers:
    0
    Add the `newcrypto` column to the `users` table, enum('1','0') not null default 1;


    Please could you include the actual SQL query I need to run please.
  13. DrPepper
    Offline

    DrPepper I drink myself on a regular basis get over it

    Joined:
    Jul 14, 2012
    Messages:
    188
    Likes Received:
    28
    Best Answers:
    0
    One thing man it asks "default look" anyone got the code for the noob look so I can throw it on there?
  14. James238
    Offline

    James238 New Member

    Joined:
    Dec 13, 2012
    Messages:
    3
    Likes Received:
    2
    Best Answers:
    0
    I need a tut how to fix ubercms client D;;;; it s
  15. djmike575
    Offline

    djmike575 Member

    Joined:
    Dec 17, 2012
    Messages:
    29
    Likes Received:
    2
    Best Answers:
    0
    tomm run this ALTER TABLE users ADD newcrypto ENUM('1', '0') NOT NULL DEFAULT 1;

Share This Page