Ok,
first at all, after making any change in php.ini, you should force apache
to reload its configuration, otherwise the change won’t get any effect. At
least now you know that the mysql support for php is installed. Now, you
can ask the hosting company to make that extension available for your
website, if it is possible. Often php extensions are available to
customers of hosting service only if they ask for, there is no other
possibility to implement extensions in other ways.
If they don’t, maybe there are other possible ways, depending on your
privileges on the hosting site, but in any case, you’ll need to reload
apache configuration after doing the requested changes!
I didn’t catch exactly where you have writing access on the remote file
system.
However, for example, you can still try to configure a custom php.ini just
for your website, assuming that you have write access to your website’s
folder on the hosting server, and to the apache2.conf file (or similar, is
the file where directives for your virtual host are listed).
“AllowOverride Options” in webserver conf file must be set for allowing
you this.
I don’t think you can use an .htaccess file, because the extensions can
just be in php.ini, if i remember well.
For customizing php.ini directly, you’ll need to copy through ssh your
customized php.ini, from your computer to a remote folder readable by user
who runs the webserver process (tipically www-data), OR, if you have read
access to the php.ini on the remote server, you can copy it to a webserver
folder and then edit it following your needs, which should be better. Note
that php.ini must be OUTSIDE your webserver folder, for security reasons.
Example:
Your remote folder is:
/var/www/public_html/mysite.com/
your domain is mysite.com # scp php.ini yourid@remotehost:/var/www/public_html/
then edit your php.ini
in apache2.conf insert the following:
[...]
PHPINIDir /var/www/public_html
[...]
Inside the virtual host configuration file, if available for writing
access as I’ve said before, you can set several variables, like extension
for example, or setting the extensions folder, etc; I’m not so expert in
the syntax there, so better if you give a look at some example on internet
to see which variables you can set and which not, also depending on your
specific case.
bye
urodelo
Hi Uro,
Thanks for the great heads up. Thanks to your suggestion I checked for
msql: php -m | grep mysql
and the answer was:
mysql
mysqli
pdo_mysql
Unfortunately, when I looked at the apache file, that
"extension=mysql.so"
is commented out. I don’t have permission on the server (It’s my domain
name
server and web hosting company). So I can ssh in, and tweak SOME stuff,
but
the apache2 directory is off limits for me to make writes. So IF that’s
why
the problem is happening, I can’t change it from that file. Do you know
- or
someone else - of another way to fix this issue.
Just for kicks, I also tried typing in " extension=msql.so" - and it
takes
it, but I suppose it’s just setting a varialbe, not actually effecting
apache2. So any further ideas to fix the issue would be greatly
appreciated.
Peace
–
Creato con il rivoluzionario client e-mail di Opera:
http://www.opera.com/mail/
eGroupWare-users mailing list
eGroupWare-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-users