enable php to load mysql module

6 posts / 0 new
Last post
#1 Mon, 09/07/2009 - 06:58
neorf

enable php to load mysql module

how can i php load mysql module under a new virtualmin installation? thanks

neorf

Mon, 09/07/2009 - 08:36
andreychek

PHP's MySQL module is typically loaded by PHP by default, when using the standard packages and such.

Make sure that the module is installed though -- it's probably called either php-mysql or php5-mysql.

-Eric

Tue, 09/08/2009 - 06:47
neorf

ok, i've done: apt-get install php5-mysql. Now all is ok or have i to enable it via virtualmin? thanks

neorf

Tue, 09/08/2009 - 09:03
andreychek

Well, that should be plenty -- but you'll of course have to try it out.

If there's any trouble after you give it a try, let us know and we'll figure out what's going awry :-)

-Eric

Tue, 09/08/2009 - 13:07
neorf

where can i find panel to edit php.ini file for every installation? thanks

neorf

Tue, 09/08/2009 - 13:16
andreychek

There isn't currently a way to edit every Virtual Server's php.ini file.

Your options are:

  1. If you make changes in the global php.ini in /etc/, it'll be used for all domains unless it's being overridden by the individual php.ini files

  2. If you need to make changes to all the php.ini files, you could always use a series of commands on the command line to edit them all. Running "find /home -type f -name php.ini" will fine all the php.ini files, then you can use a sed or Perl command to make your edits.

    -Eric

Topic locked