Archive > AoC 0.6 support

PHP_Sockets.dll cannot be found..

(1/2) > >>

deathwarnt:
Hello.  Ok so I have researched this quite a bit and I have seen another thread on it, but what worked for him/her did not work for me.  Therefore I repost...
  The issue i'm having is attacked to this post...

Basiclly, from my understanding it says that it cannot find the php_sockets.dll  in the c:/php directory.  This is obvious, however...what's confusing is the damn sockets.dll "IS" acutally there.  I originally put the PHP folder into the bebot root directory and tried to run it there. Same issue.  in the php.ini, I removed the ";" in front of "extensions: phpext" this way it'll lookin the phpext folder.. again, it doesn't work.  Not sure why, or if it even is looking there. I asume it is not cause it says c:/php...   
With this beign said, I have put the php_sockets.dll in four locations to ensure that it will find this file.  I put it in the root directory of bebot, in the phpext directory that's in bebot 0.6.8, in php root directory, and in php's ext directory.  Even doing this, the bebot 0.6.8 is STILL unable to find this file.  I have changed the location for $php_bin: "php.exe" to several diffent directory paths.  Yet, still...once agian...nothing has worked.

I have uninstalled and re-installed both PHP, mysql (though didn't donothing,but I figured what the hell)....and the bebot 0.6.8 several times.  yet, no matter how close I follow the instructions...no matter what I do, the error persists.
Lastly, I was curious exactly where to put the php.ini file. again, I have it in a few different places to ensure i have it correctly,but the knowlege would be nice to know where to put it precisly.  Curious as to if having multiple files (the php.ini and php_sockets.dll) in different folders would cause issues or make a difference negativly.  If anyone is able to help me out, that would be great!
Thanks in advance.

Drizzurdeen:
u have to install the php5 sockets via yum or yast or someting else .... what os have u runing ?????

os linux use yast pls. do not forget to install the bcmath either ....

Cuval:

--- Quote from: Drizzurdeen on June 24, 2011, 11:06:38 am ---u have to install the php5 sockets via yum or yast or someting else .... what os have u runing ?????

os linux use yast pls. do not forget to install the bcmath either ....

--- End quote ---

If he says it's looking in c:/php, i would guess windows.

But yes, sockets is what you need imo too, though the instructions you have followed to the letter already have told you as much ofc.

Do please tell us a little more about op system version.

Kentarii:
If your php-installation is in C:\PHP, you should have your php.ini in C:\PHP\php.ini (copy from either php.ini-development or php.ini-production template)
Edit your php.ini file and look for

--- Code: ---; extension_dir = "ext"
--- End code ---
Take away the ; in front of this line.
(Or change extension_dir to whatever path you have your php_*.dll in. My php_sockets.dll is inside C:\PHP\ext\php_sockets.dll
Find the line with

--- Code: ---;extension=php_sockets.dll
--- End code ---
Remove the ; here as well.
Open your cmd and write the command:

--- Code: ---php -m
--- End code ---
You should see sockets now.

--- Code: ---C:\PHP>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
Core
ctype
date
dom
ereg
filter
ftp
hash
iconv
json
libxml
mcrypt
mhash
mysqlnd
odbc
pcre
PDO
Phar
Reflection
session
SimpleXML
sockets
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

[Zend Modules]

--- End code ---

You probably want to enable some more modules like php_curl, php_mysql (and perhaps some others)

Svartholtr:
Sorry for raising this old thread, but to spare forum redundancy and as my issue is exactly this one, I decided to go ahead still.


I have installed the following on my Windows 7 pro computer!

* MySql
* PhP (used Ms WebInstaller to get it running properly)
I have beBot unzipped, and setup in my fully functioning IIS here;
c:\inetpub\wwwroot\bebot\

I have PhP running and set up here;
c:\php\


I have changed PhP.ini in the following way;
; CBLS ->
extension_dir = "ext"
; <- CBLS

; CBLS ->
extension=php_sockets.dll
; <- CBLS
 
When I try to run StartDebugBot.bat I get the following error;

 

Doing a quick test by opening my cmd and typing the command; php -m
I get a list of several modules, but not sockets.dll

Now, BeBot.main line 129 is merely a feedback method in case it cant find the php_sockets.dll that actually does exist inside the ext folder, and not something the defines a path or similar, so I am lost at where its going wrong

-I have tried to read up on this, using BeBot forum, Google and whatnot, but must have overlooked the solution to this known problem in all threads I have plowed through, cause I have found no solution -and cant figure it out myself :/

Anyone that can see right through my blindness, or got some hints that haven't been been previously aired?

Navigation

[0] Message Index

[#] Next page

Go to full version