BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => BeBot Hyborian support => Topic started by: laro on October 28, 2008, 09:30:26 am
-
Hi Folks,
first: my english is not so good ;),
System: Vserver, Debian 4 + Confixx 3.3 (PHP 4 + PHP 5)
I make like the install Guide says.
Every Time when i tried to start he says:
Egal wie ich ihm es sage, der sagt immer wieder :
vserverXXX:/home/ts# php5 startbot.php
bash: php5: command not found
vserverXXX:/home/ts# php startbot.php
bash: php: command not found
vserverXXX:/home/ts#
What is the Problem ?
Edit: How can i delete the PHP4 from the server
The Command "which php" brings no infos. That means it came no output to the display
I´m also not very good in Linux/unix
Help :/
-
It looks like you dont have PHP installed..
This because: "which php" does not respond any info, and "php"/"php5" tells you the command not exist.
If you are sure PHP 4 and 5 should be on your Virtual server, try to located the path (ex /bin/php, /usr/bin/php).
And as last suggestion, ask your provider if they can help you to locate or install PHP5.
Can be that the forgot to set it up..
-
Hi,
thx for your answer.
In the directories who you wrote is nothing but in the directory /etc/ is php5 and php4
i tried to install the php5 and he said me that the version who i use is already the newest Oo
is it possibly that i have to do anything in the php.ini ? or have it to copy the php.ini anywhere ?
Under windows i knows it . There is it important to use the PHP.EXE
But under Unix an exe doesn´t works.
Hmpf, what can i do ?
-
Try "locate php" and/or "locate php | grep bin"
Im running ubuntu on a machine (almost like debian) and got PHP files in following folders:
/usr/bin/php
/usr/bin/php5
Im not sure if your install is done correctly, or in any costume way...
Another try can be if you remove it and install it again..
Are you using "apt-get" or provider tool to do installes?
-
Yes i tried it with apt-get
with locate | grep bin comes following:
vserver1763:/# locate php |grep bin
/usr/share/phpmyadmin/libraries/engines/binlog.lib.php
/usr/share/phpmyadmin/server_binlog.php
vserver1763:/#
with locate php
.../var/lib/dpkg/info/php5-gd.conffiles
/var/lib/dpkg/info/php5-gd.list
/var/lib/dpkg/info/php5-gd.md5sums
/var/lib/dpkg/info/php5-gd.postinst
/var/lib/dpkg/info/php5-imap.conffiles
/var/lib/dpkg/info/php5-imap.list
/var/lib/dpkg/info/php5-imap.md5sums
/var/lib/dpkg/info/php5-imap.postinst
/var/lib/dpkg/info/php5.list
/var/lib/dpkg/info/php5-mysql.conffiles
/var/lib/dpkg/info/php5-mysql.list
/var/lib/dpkg/info/php5-mysql.md5sums
/var/lib/dpkg/info/php5-mysql.postinst
/var/lib/dpkg/info/phpmyadmin.config
/var/lib/dpkg/info/phpmyadmin.list
/var/lib/dpkg/info/phpmyadmin.md5sums
/var/lib/dpkg/info/phpmyadmin.postinst
/var/lib/dpkg/info/phpmyadmin.postrm
/var/lib/dpkg/info/phpmyadmin.preinst
/var/lib/dpkg/info/phpmyadmin.prerm
/var/lib/dpkg/info/phpmyadmin.templates
/var/lib/php4
/var/lib/php5
/var/lib/phpmyadmin
/var/lib/phpmyadmin/config.inc.php
/var/lib/ucf/cache/:etc:apache:conf.d:phpmyadmin.conf
/var/lib/ucf/cache/:etc:apache-perl:conf.d:phpmyadmin.conf
/var/lib/ucf/cache/:etc:apache-ssl:conf.d:phpmyadmin.conf
/var/lib/ucf/cache/:etc:phpmyadmin:apache.conf
/var/lib/ucf/cache/:etc:phpmyadmin:config.footer.inc.php
/var/lib/ucf/cache/:etc:phpmyadmin:config.header.inc.php
/var/lib/ucf/cache/:etc:phpmyadmin:config.inc.php
/var/lib/ucf/cache/:etc:phpmyadmin:htaccess
/var/www/phpmyadmin
/var/www/web0/phptmp
...
Oo
Now i´m nervous
anything here is not ok.
If you like you cann log on directly and show by yourself.
-
with locate | grep bin comes following:
vserver1763:/# locate php |grep bin
/usr/share/phpmyadmin/libraries/engines/binlog.lib.php
/usr/share/phpmyadmin/server_binlog.php
vserver1763:/#
Tells me that you dont have PHP installed...
If its not in a NON standard folder at all.. But thats verry little chance for i think...
sudo apt-get update
sudo apt-get install php5 php5-cli php5-common php5-mysql
NOTE: sudo is a option you dont need if you are logged in as root.
-
Ahhhh thx a lot .
Now he take the PHP correctly :)
Now we have a new Problem :/
Parse Error: syntax error, unexpected ´/´ in /opt/lampp/htdocs/startBot.php on line 53
Line 53: $php_args = "-c ./ ";
whats wrong in Line 53 ?
Edit: I make the Server new without confixx only Debian 4.0 and i use XAMPP now. It is easier for me to work with it
Edit2: If i say to the console:
php Main.php its start shortly and then comes:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /opt/lampp/htdocs/Sources/MySQL.php on line 124
MySQL error (# 0) on query: Cannot connect to the database server!
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Oo
-
Do you got MySQL up and running with user and Database?
-
Sure.
Under Lampp is everything running.
User ? there is only root wirh passwort.
I sign an Database with Name "bot"
What can id do ?
I test the bot on my own PC under windows and everthing runs without problems
-
I did it by myself :)
i played a little bit and now it works :))