[MaNGOS] Web pack php.ini config

Results 1 to 1 of 1
  1. #1
    Member THEWU is offline
    MemberRank
    Dec 2006 Join Date
    25Posts

    [MaNGOS] Web pack php.ini config

    This is a guide to configurate your php.ini to enable compatability between php 5 and MaNGOS web pack.

    Software used:
    MySQL 5
    Windows IIS
    PHP 5

    Well firstly I will start this off assuming you already have php installed in drive C: folder \php and IIS service and MySQL configured correctly and that you can actually log into the game on your own computer and play from your own computer.
    Now let us direct our attention to the original php installation.
    Was it the executable Windows install? or was it the source you installed from?

    If you installed from the executable lets make sure you installed IIS cgi and not IIS isapi.

    Please run the executable again to install IIS cgi.

    Now that IIS cgi is installed your php folder in drive C: needs some folders.

    The folder that will eliminate sql imcompatability will be the ext folder in the php source zip also available on the same page you downloaded the php executable installer.

    So download the source and extract the contents into a any folder you like.

    Inside the phpsource zipped archive should be a folder called ext

    Copy the ext folder into the php folder located on drive C:.

    You have just moved all the up to date .dll into the folder php will naturally look for them in but we must configure the php.ini to look in it (i know its a pain in the ass, in my opinion if the default dll folder is ext then php should automatically look for the dlls in the ext folder and the ext folder should install with php 5, bahh fawk)

    In the php.ini click Edit>Find... or ctrl+f and and look for:
    ; extension_dir = "./"

    if there turned up no results tick on the up option as you may have placed the cursor below where this text is located. Now click Find next.

    It should now be highlighted, so replace this text with:

    extension_dir = "./ext"

    we are not done, now look for:

    ;extension=php_mysql.dll

    replace this with

    extension=php_mysql.dll

    now replace directly below this is

    ;extension=php_mysqli.dll

    replace with

    extension=php_mysqli.dll

    Now save php.ini and reload your MaNGOS web and you should now longer get mysql errors.

    Now if you can't login thats a different issue. I have not figured out why but others have told me it has to do with the way that [Session] configuration portion of php.ini is set.

    So post here if this little guide has helped and additionally please post a new thread with an answer to the resetting login pages in MaNGOS.

    TY / YW
    P.S. ENJOY

    TUT for php.ini config could be found at:
    ThePHPGuy.com :: Installing PHP MySql under IIS on Windows
    Last edited by THEWU; 28-12-06 at 08:16 PM. Reason: Fixed translation




Advertisement