[英]Install the pdo_mysql extension and GD library without access to php.ini
I recently started hosting my own website thanks to the OVH "personal formula" and found some web-based app that I would like to install on my server. 由于OVH“个人公式”,最近我开始托管自己的网站,并找到了一些要安装在服务器上的基于Web的应用程序。 It requires the pdo_mysql extension and GD library to run. 它需要pdo_mysql扩展和GD库才能运行。 I read that I needed access to the php.ini file to download them. 我读到我需要访问php.ini文件才能下载它们。
However, I don't have access to the php.ini file. 但是,我无权访问php.ini文件。 Is there another way to install both of these extensions ? 是否有另一种方式来安装这两个扩展? (Maybe editing the htaccess file...?) (也许正在编辑htaccess文件...?)
I'm using windows, My current PHP version is : 5.6.17, I use a MYSQL v.5.5 database 我正在使用Windows,当前的PHP版本是:5.6.17,我使用的是MYSQL v.5.5数据库
Thanks 谢谢
Ubuntu Linux users Ubuntu Linux用户
Run the following command to install GD: 运行以下命令以安装GD:
sudo apt-get install php5-gd
Restart your Apache web server. 重新启动Apache Web服务器。
And in Windows you can use 在Windows中,您可以使用
bool dl ( string $library )
You normally need access to php.ini
to enable or disable modules. 通常,您需要访问php.ini
以启用或禁用模块。
It really would surprise me if your shared hosting provider didn't already have pdo_mysql and GD enabled though. 如果您的共享托管服务提供商尚未启用pdo_mysql和GD,那真的会让我感到惊讶。 Have you checked the modules aren't already available. 您是否检查过模块尚不可用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.