Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Call to undefined function mysql_connect()
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
yuriambrosio
n00b
n00b


Joined: 17 Oct 2009
Posts: 47

PostPosted: Sun Jul 24, 2016 9:07 am    Post subject: Call to undefined function mysql_connect() Reply with quote

Hello
I set up apache2 and php using these two manuals

https://wiki.gentoo.org/wiki/PHP
https://wiki.gentoo.org/wiki/Apache/it

on a x86_64 machine

Now the problem is that php seems to have no extensions (mysql, mysqli,...) and now of course I cannot use functions defined in those extensions for example mysql_connect().

How can I cope with this problem?

I've already checked the output of phpinfo() and I noticed that the set extension_dir (/usr/lib64/php5.6/lib/extensions/no-debug-non-zts-20131226) is empty, it doesnt exist.
I've also tryed a brutal way, since I can't find extensions installed on my system I downloaded the rpm php-mysql and extracted (it contains the folder extension with mysql.so, mysqli.so etc...) and set the php.ini properly. Same result. I'm going crazy since yesterday. Give me a hand please!
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 22505
Location: here

PostPosted: Sun Jul 24, 2016 1:09 pm    Post subject: Reply with quote

Use flag for mysql on php package is activated?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 14295

PostPosted: Sun Jul 24, 2016 3:59 pm    Post subject: Reply with quote

Please post the output of emerge --info --verbose dev-db/mysql dev-lang/php www-servers/apache.
Back to top
View user's profile Send private message
yuriambrosio
n00b
n00b


Joined: 17 Oct 2009
Posts: 47

PostPosted: Sun Jul 24, 2016 5:06 pm    Post subject: Reply with quote

Someone suggested me to install XAMPP, and I did it, resolving.
Thanks to you all
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 564
Location: France

PostPosted: Tue Jul 26, 2016 1:07 pm    Post subject: Reply with quote

yuriambrosio wrote:
Someone suggested me to install XAMPP

Someone should stop suggest... :roll:
It's like running a preconfigured VM on your machine (who said Docker ?). Install Windows and WAMP or EasyPHP, you'll get the same service.
Yes, that works. Today. But did you understand what you did ? Do you know what is running exactly ? How will you repair it once broken (yes, you will break it some day) ? How will you secure it ? Keep it up-to-date ?

Give you help. Uninstall XAMPP, and try to fix the small error you posted above. You'll learn lots of things about your system.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum