Archive > AoC 0.6 support

Line 99 StartBot.php

(1/2) > >>

Kepha:
Changing the whole post.

Anyone running the bot on Linux with LAMP installed?

I am encountering the follow error when launching the bot which is related to Line 99 on StartBot.php

--- Quote ---MySQL support required to run this bot
--- End quote ---

What is happening at this point. Is it related to the *.ini and Main.php files path or the Database?

Khalem:
Which distribution and release are you running?

The bot is failing to load the mysql php module which it needs to operate.

Kepha:
Thank you for the reply Khalem.

Ubuntu Gnone 16.04 LTS.

I just installed XAMPP 5.6 as opposed to LAMP since the latter is optimized for PHP 7.
I am hoping that my problem was passing through the PHP version and the bot code.

- when trying to "php StartBot.php" I get that the program php is currently not installed and suggests me to install php7.0-cli
- when trying "php5 StartBot.php" I get a similar message to also install php7.0-cli

Any suggestions?

Khalem:
The reason you are running into issues is because XAMPP installs itself into /opt which is outside the default path.

As such, you will need to specify the full path to the executeable, although you are likely to run into other issues as well since php support libraries won't be in the default path either.

However, given that XAMPP installs itself in such a way, you should probably not have any issues having the OS supplied php packages installed at the same time.
f.ex:
apt install php5 php5-mysql

I have not had a chance to test php7 yet, however the latest git snapshot should likely work.

Kepha:
Right.

I installed LAMP with PHP5.

I have placed the bebot folder under /var/www/html/ and tried to start the bot with "php5 start.php"(I have php and php5 listed)

On the first time it said "Could not open input file: start.php", to install php5 -cli, which I did; tried to repeat the command and now I only get the same message "Could not open input file: start.php".

Am I one step closer?

Navigation

[0] Message Index

[#] Next page

Go to full version