phpBB and MySQL

Issues related to applications and software problems
Post Reply
Ramon F. Herrera
Posts: 53
Joined: 2020/07/29 14:56:14

phpBB and MySQL

Post by Ramon F. Herrera » 2020/08/12 22:11:04

Yes, I realize that I am pressing my luck. I have been unable to get any assistance in the phpBB forum and since you guys have been so nice to this poor noob, plus you happen to be running exactly that forum platform here, maybe you can provide the guidance I need.

I have spent hours Googling, etc. and nothing.

This is my latest obstacle to overcome:

http://vps62316.inmotionhosting.com/php ... hp/install (Click on "Install")

I followed the PHP code behind the "Retest requirements" button. What exactly is being tested?

Is there any file that I need to edit in order to inform phpBB about the existence of MySQL?

I installed the MySQL package but it is sitting dormant. Do I have to create a database?

What about MySQLi? Is it required? Where do I get it?

TIA,

-Ramon
JFK Numbers

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: phpBB and MySQL

Post by TrevorH » 2020/08/12 23:13:37

Rather than exposing the installation dialog for phpBB to anyone who cares to run it, how about you lock it down and then post screenshots of the error(s) you get.

Did you install mariadb-server? Did you start it? Did you run mysql_secure_installation afterwards and set root password and secure the set up?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Ramon F. Herrera
Posts: 53
Joined: 2020/07/29 14:56:14

Re: phpBB and MySQL

Post by Ramon F. Herrera » 2020/08/12 23:38:48

TrevorH wrote:
2020/08/12 23:13:37
Rather than exposing the installation dialog for phpBB to anyone who cares to run it, how about you lock it down and then post screenshots of the error(s) you get.
I was doing exactly that, Trevor. See here:
mysqld is up and running.jpg
mysqld is up and running.jpg (117.32 KiB) Viewed 1499 times
Plus this:
Supported Databases.jpg
Supported Databases.jpg (50.84 KiB) Viewed 1499 times
TrevorH wrote:
2020/08/12 23:13:37
Did you install mariadb-server? Did you start it? Did you run mysql_secure_installation afterwards and set root password and secure the set up?
I have not install mariadb-server, I did install mysql-community-server.

I have not done the secure_installation. Will do it next.

Thanks!

-Ramon
JFK Numbers

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: phpBB and MySQL

Post by TrevorH » 2020/08/12 23:53:51

Run yum list \*php\*mysql\* and check that you have a package installed for your version of php that provides mysql support.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Ramon F. Herrera
Posts: 53
Joined: 2020/07/29 14:56:14

Re: phpBB and MySQL

Post by Ramon F. Herrera » 2020/08/13 03:55:14

TrevorH wrote:
2020/08/12 23:53:51
Run yum list \*php\*mysql\* and check that you have a package installed for your version of php that provides mysql support.
If I am not mistaken, I need a version of PHP which comes with the file mysqli.so

That is not as easy as it should be. Will keep on looking.

Thanks!

-Ramon
JFK Numbers
MySQLi Required.jpg
MySQLi Required.jpg (156.42 KiB) Viewed 1474 times

Ramon F. Herrera
Posts: 53
Joined: 2020/07/29 14:56:14

Re: phpBB and MySQL

Post by Ramon F. Herrera » 2020/08/13 15:44:19

Eureka! I found the solution!

If you want to implement the phpBB application in a CentOS 7 box, these are the steps, starting with a recently re-OSed VPS:

Code: Select all

# yum install centos-release-scl
# yum install rh-php73-php-mysqlnd.x86_64   // MySQLi
# yum install rh-php73-php                  // PHP with htppd
# yum install php73-xml                     // DOM
The fascinating part that some will notice is that there is no database whatsoever installed.

The web based phpBB installation procedure only checks the status of your PHP.

As usual, many thanks to Trevor (and remirepo) ...

-Ramon
JFK Numbers
Last edited by Ramon F. Herrera on 2020/08/13 16:03:02, edited 1 time in total.

Ramon F. Herrera
Posts: 53
Joined: 2020/07/29 14:56:14

Re: phpBB and MySQL

Post by Ramon F. Herrera » 2020/08/13 15:59:33

Step 1.jpg
Step 1.jpg (118.26 KiB) Viewed 1442 times
Step 2.jpg
Step 2.jpg (57.52 KiB) Viewed 1442 times
-Ramon
JFK Numbers

User avatar
remirepo
Posts: 447
Joined: 2014/09/21 09:07:12
Location: France
Contact:

Re: phpBB and MySQL

Post by remirepo » 2020/08/14 05:41:33

# yum install rh-php73-php-mysqlnd.x86_64 // MySQLi
# yum install rh-php73-php // PHP with htppd
# yum install php73-xml // DOM
Again, php73-xml is NOT the proper package

Good practice, when you need a "foo" extension, yum install <package namespace>-<foo>

So in your case

Code: Select all

yum install rh-php73-php-mysqli rh-php73-php-dom ...
Package name is not interesting, package layout have changed, and may change again
Remi's Repository - Forum - Blog

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: phpBB and MySQL

Post by TrevorH » 2020/08/14 08:29:53

You want rh-php73-php-xml.x86_64 not php73-xml.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Ramon F. Herrera
Posts: 53
Joined: 2020/07/29 14:56:14

Re: phpBB and MySQL

Post by Ramon F. Herrera » 2020/08/14 23:48:41

TrevorH wrote:
2020/08/14 08:29:53
You want rh-php73-php-xml.x86_64 not php73-xml.
I will Re-OS the VPS and try that approach. I have done it only like 40 times. : -)

Once I have the phpBB forum up&running in my cheap VPS ($5/month), I will repeat the procedures in my real VPS ($50/month).

-Ramon
JFK Numbers

Post Reply