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: php_exec ?  (Read 7443 times)

0 Members and 1 Guest are viewing this topic.

Offline DarkGord

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
php_exec ?
« on: October 21, 2008, 05:19:26 am »
hi all!
I was under the impression of being able to run the bot of my hosted webspace since it offered me mysql database and php. however since i can't specify a direct path to the php.exe i am not able to mkae it run from there.
so first question is there a way to run the existent version of the bot from such a web host without any modefications? a trick? something i didn't think of ?

anyway after back and forth with the support of my web host i was told that the php executable can be accessed using php_exec, which is a design issue and therefore i should look for support on how to do it elsewhere since it was outside the scope of their support. so anyone has any idea how to go about that? or does a solution already exist that i wasn't able to spot?

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: php_exec ?
« Reply #1 on: October 21, 2008, 05:41:44 am »
webspace is not recomments nt only for security issues
its can be difficult i know from experiance
i was unable to get StartBot.php to work
howeva Main.php did
but with out StartBot.php if the bot crashed or restarted for whateva reason it wouldnt load back up by its self
i eventually gave up on it and Rented a full VDS it didnt cost much less than £10/m, nowadays i Got my own Server to Host my bots and Other peeps on

incase u dont know VDS = Virtual Dedicated Server
which is Full Root access Server so u can do ANYTHING, but ofc this means you also need to know abit about how to do it :D

Offline DarkGord

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: php_exec ?
« Reply #2 on: October 21, 2008, 10:13:09 am »
incase u dont know VDS = Virtual Dedicated Server
which is Full Root access Server so u can do ANYTHING, but ofc this means you also need to know abit about how to do it :D
Cough yeah that is kind of part of the problem ;)
When you say you are hosting other people bots, you mean friends? or people who ask nicely? :P (seriously though, what is needed to have you help out with that ?)

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: php_exec ?
« Reply #3 on: October 23, 2008, 07:13:33 pm »
You cannot run BeBot on a web hosting site that offers PHP and MySQL.

You must have full shell (Linux, UNIX systems) or console (for Windows) to run BeBot.

BeBot is written in PHP but it is not a web application. Like Python, Perl, and many other interpreted languages, PHP can be invoked multiple ways. The most common way is via a web server where the webserver runs the PHP code and displays HTML output.

For BeBot, we use the command line method and output goes to the console. BeBot requires sockets to function. Any sane webhost will have php sockets disabled. This alone will prevent you from running BeBot as a webpage. ;)

On a Unix system, you should be able to run the command:

which php
or
which php5

To get the full path the php executable.

 

* 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: 241
  • 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