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

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

Author Topic: Error while starting the Bot  (Read 2642 times)

0 Members and 2 Guests are viewing this topic.

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Error while starting the Bot
« on: June 09, 2011, 02:22:10 pm »
hi @ all ... i get this error while i want to start the bot

Code: [Select]
Mitrabot@v39381:~> ./bot.sh start
Error: Make sure the PHPBIN variable is set
  The value /usr/lib/php5 is not valid

my system ...
suse 11.0
bcmath = intsalled
php5 sockets = installed
php5 = is running

here the base code from the bot.sh
Code: [Select]
#!/bin/sh
BASEDIR="/home/Mitrabot/BeBot"
PHPBIN="/usr/lib/php5"
CMD="/usr/bin/php5 ${BASEDIR}/StartBot.php"
# If you want to use your own INI file
# set the location of the ini file and
# comment out the two following lines
#INI="${BASEDIR}/php.ini"
#CMD="${PHPBIN} -c ${INI} ${BASEDIR}/bot.php"
NOHUP=/usr/bin/nohup

could someone help me by this error ... would be nice ... thanks

greetz drizz

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: Error while starting the Bot
« Reply #1 on: June 09, 2011, 03:54:32 pm »
Not really sure why you have a wrapper for the startup script.

Does this work:
Code: [Select]
`which php` -c ./ Main.php

Offline Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Error while starting the Bot
« Reply #2 on: June 09, 2011, 05:50:49 pm »
Not really sure why you have a wrapper for the startup script.

cause its easier ;) .....

./Main.php is given this

Code: [Select]
v39381:/home/Mitrabot/BeBot # ./Main.php
./Main.php: line 1: ?php: No such file or directory
./Main.php: line 2: /aquota.group: Permission denied
./Main.php: line 3: ChangeLog.txt: command not found
./Main.php: line 4: ChangeLog.txt: command not found
./Main.php: line 5: Age: command not found
./Main.php: line 5: ChangeLog.txt: command not found
./Main.php: line 6: syntax error near unexpected token `('
./Main.php: line 6: `* Copyright (C) 2004 Jonas Jax'
v39381:/home/Mitrabot/BeBot #

ah ja und hier noch die php info ... zur info ;)
http://178.254.1.81/info.php
« Last Edit: June 09, 2011, 06:08:52 pm by Drizzurdeen »

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Error while starting the Bot
« Reply #3 on: June 09, 2011, 06:43:37 pm »
Quote
Error: Make sure the PHPBIN variable is set
  The value /usr/lib/php5 is not valid

Have you checked out what the error message puts out?

Does /usr/lib/php5 exist?

Try with /usr/lib64/php5 ..
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 Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Error while starting the Bot
« Reply #4 on: June 09, 2011, 07:31:00 pm »

Have you checked out what the error message puts out?

Does /usr/lib/php5 exist?

Try with /usr/lib64/php5 ..

yes the direktory /usr/lib64/php5 is existing

Code: [Select]
v39381:~ # cd /usr/lib64/php5
v39381:/usr/lib64/php5 # dir
total 4
drwxr-xr-x 2 root root 4096 Jun  9 13:10 extensions
v39381:/usr/lib64/php5 #


and

Code: [Select]
v39381:/usr/lib64/php5 # cd extensions/
v39381:/usr/lib64/php5/extensions # dir
total 3960
-rw-r--r-- 1 root root   43832 Jun  7  2008 bcmath.so
-rw-r--r-- 1 root root   25184 Jun  7  2008 bz2.so
-rw-r--r-- 1 root root   16360 Jun  7  2008 ctype.so
-rw-r--r-- 1 root root   63656 Jun  7  2008 curl.so
-rw-r--r-- 1 root root  171432 Jun  7  2008 dom.so
-rw-r--r-- 1 root root   59096 Jun  7  2008 ftp.so
-rw-r--r-- 1 root root  394552 Jun  7  2008 gd.so
-rw-r--r-- 1 root root   16760 Jun  7  2008 gettext.so
-rw-r--r-- 1 root root  149120 Jun  7  2008 hash.so
-rw-r--r-- 1 root root   42424 Jun  7  2008 iconv.so
-rw-r--r-- 1 root root  108472 Jun  7  2008 imap.so
-rw-r--r-- 1 root root   31848 Jun  7  2008 json.so
-rw-r--r-- 1 root root 2063056 Jun  7  2008 mbstring.so
-rw-r--r-- 1 root root   41464 Jun  7  2008 mcrypt.so
-rw-r--r-- 1 root root   59704 Jun  7  2008 mysql.so
-rw-r--r-- 1 root root  124152 Jun  7  2008 mysqli.so
-rw-r--r-- 1 root root   96824 Jun  7  2008 openssl.so
-rw-r--r-- 1 root root  106616 Jun  7  2008 pdo.so
-rw-r--r-- 1 root root   32376 Jun  7  2008 pdo_mysql.so
-rw-r--r-- 1 root root   28408 Jun  7  2008 pdo_sqlite.so
-rw-r--r-- 1 root root   45600 Jun  7  2008 sockets.so
-rw-r--r-- 1 root root   76872 Jun  7  2008 sqlite.so
-rw-r--r-- 1 root root   19312 Jun  7  2008 tokenizer.so
-rw-r--r-- 1 root root   35008 Jun  7  2008 xmlreader.so
-rw-r--r-- 1 root root   34464 Jun  7  2008 xmlwriter.so
-rw-r--r-- 1 root root   32456 Jun  7  2008 xsl.so
-rw-r--r-- 1 root root   33488 Jun  7  2008 zlib.so
v39381:/usr/lib64/php5/extensions #

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: Error while starting the Bot
« Reply #5 on: June 09, 2011, 07:49:33 pm »
Just a thought though... php for apache and php for cli is two different packages on most linux systems.

Did `which php` return anything?

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Error while starting the Bot
« Reply #6 on: June 09, 2011, 10:31:15 pm »
Please pay attention to stuff here:

There is a difference between:
Quote
Does /usr/lib/php5 exist?
And:
Quote
Try with /usr/lib64/php5 ..

Do a "ls -la /usr/lib/php5"
Its this folder you have in your file:
Quote
PHPBIN="/usr/lib/php5"
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 Drizzurdeen

  • BeBot Apprentice
  • ***
  • Posts: 193
  • Karma: +0/-0
    • Obsidian-Cult
Re: Error while starting the Bot
« Reply #7 on: June 10, 2011, 12:51:03 am »
here the result of the comand

Code: [Select]
v39381:~ # ls -la /usr/lib/php5
ls: cannot access /usr/lib/php5: No such file or directory
v39381:~ #

so do i have to copy the files of /usr/lin64/php5 indo usr/lib/php5 ????? i am confused ;)


oooooookai ... i've created a folder php5 in the /usr/lib/ and now .... yeah it works ;) ... thanks alot ^^
« Last Edit: June 10, 2011, 01:08:17 am by Drizzurdeen »

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

* Who's Online
  • Dot Guests: 108
  • 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