collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Bebot AoC doesn´t start  (Read 9034 times)

0 Members and 1 Guest are viewing this topic.

Offline laro

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Bebot AoC doesn´t start
« 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 :/
« Last Edit: October 28, 2008, 10:58:54 am by laro »

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Bebot AoC doesn´t start
« Reply #1 on: October 28, 2008, 12:31:33 pm »
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..
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline laro

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot AoC doesn´t start
« Reply #2 on: October 28, 2008, 12:53:02 pm »
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 ?

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Bebot AoC doesn´t start
« Reply #3 on: October 28, 2008, 03:07:20 pm »
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?

Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline laro

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot AoC doesn´t start
« Reply #4 on: October 28, 2008, 03:16:46 pm »
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.


Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Bebot AoC doesn´t start
« Reply #5 on: October 28, 2008, 08:39:02 pm »
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.
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline laro

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot AoC doesn´t start
« Reply #6 on: October 28, 2008, 10:21:04 pm »
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
« Last Edit: October 29, 2008, 01:14:12 pm by laro »

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Bebot AoC doesn´t start
« Reply #7 on: October 29, 2008, 02:47:40 pm »
Do you got MySQL up and running with user and Database?
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline laro

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot AoC doesn´t start
« Reply #8 on: October 29, 2008, 07:16:27 pm »
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

Offline laro

  • BeBot Rookie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Bebot AoC doesn´t start
« Reply #9 on: October 29, 2008, 09:37:57 pm »
I did it by myself :)

i played a little bit and now it works :))

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 258
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal