enable php to load mysql module

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

neorf

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

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

neorf

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 :slight_smile:

-Eric

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

neorf

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