multiple php versions on Debian 9

6 posts / 0 new
Last post
#1 Fri, 10/13/2017 - 16:04
adamjedgar

multiple php versions on Debian 9

I am having problems installing box billing (cannot connect to database and SQLSTATE[HY000] [1698] Access denied for user 'foo'@'localhost')

i wonder if these issues are because the last version of boxbilling was released i believe in 2015. That makes me wonder if i need to use an older version of php.

is it ok to install multiple php versions on debian 9 in webmin/virtualmin?

I know debian 9 does appear to allow it. What package name/s do i search for in apt?

I have tried the following and they are not there php5.6-fpm php5.6-cli

Fri, 10/13/2017 - 17:26
Joe
Joe's picture

I don't have a good answer on that. When I first started working with Debian 9, it looked like it had both php5 and php7, as it has packages named php and php7.0, but they actually install the same thing (one is just pointing to the other). As far as I know there is no php5 for Debian 9.

That said, I'm almost certain that error has nothing to do with PHP version. It looks like a simple authentication error. Make sure you have a user with that name, and that the user has access to the specified database. And, of course, make sure you're using the right password for that user.

--

Check out the forum guidelines!

Fri, 10/13/2017 - 20:36 (Reply to #2)
adamjedgar

Make sure you have a user with that name, and that the user has access to the specified database. And, of course, make sure you're using the right password for that user.
check, checked, and tripple checked.

I even tried creating a brand new database, new user with full privileges, copied and pasted username and password straight from the virtualmin mysql interface to the browser...still no luck.

I have found on github forum that there are some issues related to php versions with boxbilling...for example, they have not updated their coding to reflect mysqli (code still contains mysql). I have successfully installed this program on ISP Config, however it worked one day, the fell over the next. Its incredibly unpredictable. A lot of guys have complained that boxbilling are taking their money per month for the premium version, however no new updates are being released (so it is suspected that the developer is not actively developing the program anymore). Lots of promises of a major new release have been getting made for almost 3 years now.

I suspect its a dead horse for now!

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Sat, 10/14/2017 - 01:41
cyrus

I run PHP 7 on a Debian 9 server and did so with:

apt-get install php7.0-cgi and php7.0-mysql

To install other packages you can see what's available from:

apt-cache search php7.0

Hope that helps.

Sat, 10/14/2017 - 06:11
noisemarine

While I agree with Joe that your error doesn't look like a php issue, if you really want to run multiple php versions on Debian 9 you can read the following guide.

https://pehapkari.cz/blog/2017/03/27/multiple-php-versions-the-easy-way/

I'm curious why you'd want to run such fragile software that sounds like it has minimal updates, and then have your business depend on it. :)

Sat, 10/14/2017 - 17:02 (Reply to #5)
adamjedgar

I'm curious why you'd want to run such fragile software that sounds like it has minimal updates, and then have your business depend on it. :)
just experimenting...i am actually using whmcs for my website front end that is not quite finished development yet.

What i notice about php7.0 is that its directory structure appears a little different to previous versions...ie /php/php7.0 instead of just /php5.6 at the parent level. I am hoping that this will mean that additional php occurances would be like this...

php/php5.6
php/php7.0


Wondering if that means like Joe said, later versions dont mind being installed along with earlier ones? Final note about the tutorial you mention...i am not running nginx (am running apache2)

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

Topic locked