Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] "mysql_connect() or mysql_query()" deprecated
Date: Mon, 26 Oct 2020 07:59:45
Message-Id: 2554224.mvXUDI8C0e@lenovo.localdomain
In Reply to: Re: [gentoo-user] "mysql_connect() or mysql_query()" deprecated by thelma@sys-concept.com
1 On Monday, 26 October 2020 00:48:13 GMT thelma@×××××××××××.com wrote:
2 > On 10/25/2020 06:30 PM, Remco Rijnders wrote:
3 > > On Sun, Oct 25, 2020 at 05:24:26PM -0600, thelma wrote in
4 > >
5 > > <f091a4f7-7769-b1e8-3455-2e6af52dbe9a@×××××××××××.com>:
6 > >> The function in newer php "mysql_connect() or mysql_query()" were
7 > >> removed but I don't know starting from which version?
8 > >>
9 > >> I'm running PHP Version 5.6.33-pl0-gentoo and these function work.
10 > >> But I upgraded one of my system to php-5.6.40 and I'm getting an error:
11 > >>
12 > >> PHP Fatal error: Call to undefined function mysql_connect() in
13 > >> /var/www/catalog/admin/includes/functions/database.php on line 19
14 > >
15 > > Hi Thelma,
16 > >
17 > > I think mysql support was not removed between the two versions you
18 > > mention. The PHP website says "This extension was deprecated in PHP
19 > > 5.5.0, and it was removed in PHP 7.0.0.", which would be a logical
20 > > point to do this. Could it be that your "use" flags for PHP changed?
21 > > Make sure to emerge PHP with the mysql use flag to build with mysql
22 > > database support.
23 > >
24 > > I hope this helps.
25 > >
26 > > Kind regards,
27 > >
28 > > Remco
29 >
30 > I'm running the osCommerce server and upgraded one of the box to apache 2.4
31 > The server is running OK but I can not access admin:
32 >
33 > "apache 2.4 you don't have permission to access /index.php on this server"
34 >
35 > I disable almost everthing in server/admin/.htaccess
36
37 I would think this error points to an apache configuration issue rather than
38 php.

Attachments

File name MIME type
signature.asc application/pgp-signature