BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Sojourner on August 27, 2005, 07:35:38 pm
-
Running on Ubuntu (Linux, Debian)
I installed php5.0 using "apt-get" (php5, php5-common, php5-cli)
In start.php I have this configured:
$php_bin = "/usr/bin/php";
When I try to run start.php, I get this message
AOChat class needs the Sockets extension to work.
When I look at the php.net pages, it seems to indicate that Socket Functions can only be installed at the same time you install PHP.
Am I missing something here?
-
Check if your php.ini contains the following line:
extension=php_sockets.dll
and that the file is in the folder from your bot.
-
Thought that was for windows only? Especially the .dll
When php was installed on this box, the php.ini file was placed in
/etc/php5.0/cli
Hmm, digging throught that php.ini file, I do see a directory extension variable, but its commented out
; Directory in which the loadable extensions (modules) reside.
;extension_dir = "/usr/local/lib/php5.0/20041030:/usr/local/lib/php5/20041030:/usr/local/lib/php:/usr/lib/php5.0/20041030:/usr/lib/php5/20041030"
And, a reference to dynamic extensions, just using .so instead of .dll
; If you wish to have an extension loaded automatically, use the following
; syntax:
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
; extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.
But, I can't seem to find any "php_sockets.so" file anywhere
-
Yes, you'll have to install a binary with the sockets extension compiled into it.
But I'm quite supprised that its not compiled into the ubuntu binary.... very supprised indeed! Gonna check that out right now...
*edit* what package-source did you download them from? Got a box running ubuntu here but didn't find php5.0-cli in any of the package-sources I'm using. Only as an apache module and php4 (version: "PHP 4.3.10-10ubuntu4.1 (cli) (built: Aug 19 2005 17:58:15)") worked fine with bebot.... Thats definatly got sockets working...
-
Had some problems with php4 working with mysql so I used this link to upgrade to php5
http://www.ubuntuforums.org/showthread.php?t=44082&highlight=php5
Maybe should go back to php4 and then work out the issues with mysql
** Went back to php4 (PHP 4.3.10-10ubuntu4.1 (cli)) The error I get of that version is:
Fatal error: Call to undefined function: mysql_connect() in /home/majwebadmin/bebot/MySQL.php on line 36
-
Ahh, found it! thanks for the help.
needed to install php4-mysql