Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
installation [2009/08/02 21:05]
Khalem
installation [2009/08/02 22:49]
Khalem
Line 4: Line 4:
  
 TO DO: TO DO:
-  * Version information on PHP needs to be checked 
-  * Write up installation instructions for PHP on windows 
   * Write up installation instructions for PHP/MySQL on Unix/Linux   * Write up installation instructions for PHP/MySQL on Unix/Linux
  
Line 13: Line 11:
 To install and run BeBot you need the following: To install and run BeBot you need the following:
   * Anarchy Online (free or paid) or Age of Conan   * Anarchy Online (free or paid) or Age of Conan
-  * PHP version >= 5.2+  * PHP version >= 5.2 (PHP 5.3 is highly recommended)
   * MySQL database server version >= 4.1.1   * MySQL database server version >= 4.1.1
   * The BeBot files   * The BeBot files
Line 34: Line 32:
  
 **Important:​** if you are running on Windows Vista or Windows 7 you must NOT install the bot anywhere below C:\Program Files\ as the operating system will interfere with the normal operation of the bot. **Important:​** if you are running on Windows Vista or Windows 7 you must NOT install the bot anywhere below C:\Program Files\ as the operating system will interfere with the normal operation of the bot.
 +
 +===== Install PHP on Windows =====
 +
 +We highly recommend installing the parts of PHP you really need instead of a full PHP install.
 +First obtain the latest stable release of PHP from http://​windows.php.net/​download/​
 +At the time of writing this, you want the VC9 x86 Non Thread Safe version packaged as a zip archive.
 +
 +From this archive you want to copy the following files into your BeBot directory:
 +  * libeay32.dll
 +  * php.exe
 +  * php5.dll (If you have a php5ts.dll instead you have the thread safe binaries)
 +  * ssleay32.dll
 +
 +Then you want to create a folder in your BeBot directory named: phpext
 +In this directory copy the following files from the PHP archive ext/ folder:
 +  * php_curl.dll
 +  * php_mbstring.dll
 +  * php_mysql.dll
 +  * php_sockets.dll
 +
 +The last thing we need now is a php.ini file containing some PHP settings. You can use the following php.ini as a starting point:
 +<code php>
 +;;;;;;;;;;;;;;;;;​
 +; BeBot php.ini ;
 +;;;;;;;;;;;;;;;;;​
 +
 +; BeBot should normally stay way below this limit
 +memory_limit = 30M
 +
 +; The following settings control what warnings and errors PHP will output.
 +; Please note that BeBot 0.6 still outputs a lot of notices and warnings that can be safely ignored.
 +;
 +; Error Level Constants:
 +; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)
 +; E_ERROR ​          - fatal run-time errors
 +; E_RECOVERABLE_ERROR ​ - almost fatal run-time errors
 +; E_WARNING ​        - run-time warnings (non-fatal errors)
 +; E_PARSE ​          - compile-time parse errors
 +; E_NOTICE ​         - run-time notices (these are warnings which often result
 +;                     from a bug in your code, but it's possible that it was
 +;                     ​intentional (e.g., using an uninitialized variable and
 +;                     ​relying on the fact it's automatically initialized to an
 +;                     empty string)
 +; E_STRICT ​         - run-time notices, enable to have PHP suggest changes
 +;                     to your code which will ensure the best interoperability
 +;                     and forward compatibility of your code
 +; E_CORE_ERROR ​     - fatal errors that occur during PHP's initial startup
 +; E_CORE_WARNING ​   - warnings (non-fatal errors) that occur during PHP's
 +;                     ​initial startup
 +; E_COMPILE_ERROR ​  - fatal compile-time errors
 +; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
 +; E_USER_ERROR ​     - user-generated error message
 +; E_USER_WARNING ​   - user-generated warning message
 +; E_USER_NOTICE ​    - user-generated notice message
 +; E_DEPRECATED ​     - warn about code that will not work in future versions
 +;                     of PHP
 +; E_USER_DEPRECATED - user-generated deprecation warnings
 +;
 +; Common Values:
 +;   E_ALL & ~E_NOTICE ​ (Show all errors, except for notices and coding standards warnings.)
 +;   E_ALL & ~E_NOTICE | E_STRICT ​ (Show all errors, except for notices)
 +;   ​E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR ​ (Show only errors)
 +;   E_ALL | E_STRICT ​ (Show all errors, warnings and notices including coding standards.)
 +error_reporting = E_ALL & ~E_NOTICE
 +
 +display_errors = On
 +log_errors = On
 +error_log = log/​php_errors.log
 +
 +; This is where PHP can find the PHP extensions like sockets and mysql.
 +extension_dir = "​phpext"​
 +</​code>​
 +
 +
 +
 +
 +
 +
  
 ====== Configuring the bot ====== ====== Configuring the bot ======
 
installation.txt ยท Last modified: 2013/09/12 22:49 (external edit)
[unknown button type]
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
WikiForumIRCBugs
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki