Forum

Banshee PHP Warning: system()

Banshee 3.7
15 February 2013, 23:12
I run into this issue/error message every time i execute "database/setup_database.
----------
database/setup_database
This script will create a MySQL user 'banshee' and the database 'banshee'.
Make sure the database settings in settings/website.conf are correct!
Enter MySQL root password: PHP Warning: system() has been disabled for security reasons in /home/banshee/database/setup_database on line 19
--------

MySQL version: 5.5
Hiawatha version: 8.7
Operating System: Debian 6.0
Hugo Leisink
15 February 2013, 23:15
Enable the system command or create a user and database manually and import the database/mysql.sql file.
Banshee 3.7
15 February 2013, 23:28
Thank you for the quick response. I enabled system command.

Enter MySQL root password: sh: /stty: not found
Hugo Leisink
15 February 2013, 23:32
Add the full path (/bin/stty) to the system() command or add /bin to your PATH environment setting.
Banshee 3.7
15 February 2013, 23:45
I tried adding /bin/ssty to the system() command. It didn't seem to work.
I also checked /etc/profile && ~/.profile and /bin was already a path.
Banshee 3.7
15 February 2013, 23:50
stty* typo on my part.
Hugo Leisink
16 February 2013, 08:07
Is /bin/stty present on your system? If not, where is it located?
This topic has been closed.