Hi,
I'm coming to install drupal on centos 5.5
I installev cia fantastico
and get the error message
"Fatal error: Class 'PDO' not found in /home/stu/public_html/drupal/includes/database/database.inc on line 185"
so visiting install.php i get
OK
|
Web server | Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 |
OK
|
PHP | 5.2.9 |
OK
|
PHP register globals | Disabled |
Error
|
PHP extensions | Disabled |
Drupal requires you to enable the PHP extensions in the following list (see the system requirements page for more information):
|
||
Error
|
Database support | Disabled |
Your web server does not appear to support PDO (PHP Data Objects). Ask your hosting provider if they support the native PDO extension. See the system requirements page for more information. | ||
OK
|
PHP memory limit | 128M |
OK
|
File system | Writable (public download method) |
Warning
|
Unicode library | Standard PHP |
Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support. | ||
OK
|
Settings file | The ./sites/default/settings.php file exists. |
OK
|
Settings file | The settings file is writable. |
I have followed info on other support forums
updated cent os
downloaded and attempted to install the extentions
ended up with a message saying "nothing to do"
so asuming that means already installed.
Added
"
extension="pdo.so"
extension="pdo_mysql.so"
upload_max_filesize = 10M
post_max_size =64M
memory_limit = 64M
upload_tmp_dir = 64M
max_execution_time = 128
"
in a seperate php.ini file.
added
extension="pdo.so"
extension="pdo_mysql.so"
with and without the " as different support forums had the " in.
no difference.
Have restarted the server each time i made a change.
Still getting the same error message,
tho i increaced the max file size to 128m
and that changed on the phpinfo.php file so believe i've edited the correct file.
php info file shows ini file to be located
/usr/local/lib/php.ini
any suggestions?
Comments
I encountered the same
I encountered the same problem:
I put a php.ini file in the root folder with this text:
memory_limit = "128M"
register_globals = Off
extension="pdo.so"
extension="pdo_mysql.so"
upload_max_filesize = 10M
post_max_size =64M
memory_limit = 64M
upload_tmp_dir = 64M
max_execution_time = 128
And still get exactly the same problem. Even the Memory limit problem of 24M! What am I doing wrong and is there a durable solution now?
Installation problem
I have problem in installing drupal
Error
PHP extensions Disabled
Drupal requires you to enable the PHP extensions in the following list (see the system requirements page for more information):
gd
Please solve this problem if anyone know...
Thanks
familiar with your question !
familiar with your question ! wait for the reply !
What worked for me....
I just did the following....
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
t@n
Had the same problem, this
Had the same problem, this fixed it! Thanks!
Solution?
Did anyone got the solution? If yes, please post it.
Do not use the PECL PDO installer
I was having the same problem when installing Drupal 7 on Ubuntu. After lot of searching on Google I found that we shouldn't install Pdo packages using Pear or Pecl.
As mentioned here, http://drupal.org/requirements/pdo, "Do not use the PECL PDO installer". So if those are already installed using Pecl then uninstall using following commands,
sudo pecl uninstall pdo_mysql
sudo pecl uninstall pdo
sudo apt-get install --reinstall php5-common php5-mysql
sudo /etc/init.d/apache2 reload
After that add the following in php.ini if these are not there,
extension=pdo.so
extension=pdo_mysql.so
Restart apache (sudo /etc/init.d/apache2 reload) and it should work for you as the same steps worked for me. :)
thanx amitgoyal
i did the sudo apt-get install --reinstall php5-common php5-mysql bit and restarted the server. as the only issue drupal install mentioned was the php extensions bit. it really did the job!
thanks a million your post is truly priceless!
Solution: $ sudo apt-get
Solution:
$ sudo apt-get install php5-gd php-db php5-mysql
For my its work !!
works
Thaks works for me!
This resolved my issue
I tried most of the other solutions in this post and the only one that resolved my PHP extension issue was $ sudo apt-get install php5-gd php-db php5-mysql
worked for me also
worked for me also thanks!!
thanks its works for me
thanks its works for me
Thanks a lot, it worked for me
Hey, thank you very much. Here I was trying to assemble a Drupal 7 PHP - APACHE - POSTGRES environment and was getting the error:
Your web server does not appear to support any common PDO database extensions. Check with your hosting provider to see if they support PDO (PHP Data Objects) and offer any databases that Drupal supports.
In my case doing this solved the thing:
sudo apt-get install --reinstall php5-common php5-mysql
Hi, I have tried my best to
Hi,
I have tried my best to co-relate the above solution to windows.....Does anyone knows to deal with the same problem in windows ?? As i am facing the same issue on windows XP. Thanks .
whats web environment you are
whats web environment you are using? Make sure to activates PDO and GD modules/libraries at the server.
ꦱꦠꦽꦶꦪ
Success!!!
Hi Bawoor,
Thanks for the reply. The concern is resolved now. After activating the PDO & GD modules in the php.ini file . Thanks you so much once again!!!!. :)
Drupal requires you to enable the PHP extensions
Hi
Actually problem is only that you have not installed PHP5 GD and PDO Modules or not placed entry in "/etc/php5/conf.d/".
There enable entry files are auto generated when you install the Modules, if not for some reason you will have to place them as well.
Ubuntu:
sudo apt-get install php5-gd php5-pdo -y
RHEL/CentOS:
yum install php5-gd php5-pdo -y
Check If gd.ini and pdo.ini files are not created
ls /etc/php5/conf.d/
If files not found then just create files
1. First file
Text in file.
2. Second file
Text in file
In my case (php 5.5, Ubuntu
In my case (php 5.5, Ubuntu 14.04) the following text worked for me in /etc/php5/mods-available/gd.ini
extension=gd.so
PHP Extension Disable While installing Drupal 8 using XAMPP
While installing Drupal 8 on Windows 7/8 an error message shows up " Error PHP extensions Disabled
Drupal requires you to enable the PHP extensions in the following list....."
I have solved the above specified error by adding the following line in the PHP.INI file :
extension=php_fileinfo.dll
then save it and restart the apache---- Its done.... thanks
gd vs gd2 and mbstring
Hi, I faced an issue installing Drupal 7.31 under Windows XP.
The environment configuration is
Web server Apache/2.2.17 (Win32) PHP/5.3.5
PHP 5.3.5
The problem:
MBSTRING
I am not going to use Japanese or Chinese or any other language, which might require mbstring. But OK - I've enabled the extension (and restarted Apache for changes to come in force). It didn't help. There is also
[mbstring]
section in php.ini, where all preferences are currently commented out. Which of those should I enable? Or should I pay any attention to the warning above if I'm not going to use Japanese etc.?Another solution for "PHP
Another solution for "PHP extensions Disabled" GD at https://www.drupal.org/node/2386065
[FIXED for CentOS Users]
I have run into this issue twice now. The fix that I did for this issue was:
yum install gd gd-devel php-gd
I was running CentOS 7 and attempting to get Drupal 7.33 up and running.
Don't forget to restart httpd and mariadb after with:
systemctl restart httpd.service
&systemctl restart mariadb.service
Hope this helps
Worked for me
In drupal 8, CentOS 7.
Thank you!
I have just uncommented the
I have just uncommented the line extension=gd2.so in php.ini file and it resolved the issue...
It's work for me ! with OpenAttrium
Hello Guys,
It's work for me on CPanel with OpenAttrium :
Best regards
In my case (php 5.6, Ubuntu
In my case (php 5.6, Ubuntu 14.04) the following command worked for me:
sudo apt-get install php5.6-gd
According to php version we need to change the php5.x-gd
resolved this on ubuntu server
while installing drupal with php7 version get below error:
Resolved this by below commands:
sudo apt-get install php7.0-gd
sudo apt-get install php-xml
sudo apt install php7.0-mbstring php7.0-zip php7.0-xml
after installing packages, write command for apache restart
sudo /etc/init.d/apache2 restart
Works for me
Thanks Works for me
Re: How can i drop my account (unsubscribe)
Hi, I faced an issue installing Drupal 7.31 under Windows XP.
What errors it displays
Please write the error messages you get while installation.
Requires you to enable the PHP extensions dom gd SimpleXML xml
almost same as @VarunKrSingh answer. I was facing the same issue during the initial steps of installation, i am using drupal 8, ubuntu and php 7.*. I first checked which php.ini am referring to by using phpinfo(). then based on my version, just changed php7.0-gd to php7.2-gd and ran apt-get commands, restarted apache2 to take effect...
sudo apt-get install php7.2-gd
sudo apt-get install php7.2-xml
It worked!
Apart from the phpinfo();
Apart from the phpinfo(); thing (it does not work for me; navigating to where I've put it just gives me the text of the info.php file, specifically the text: phpinfo(); in the browser, or nothing if I try wrapping it in some html—I have to use php -r 'phpinfo();'), I've done all this, and I get as far as database configuration but it simply will not accept the dbname/dbusername/password.
I've kept it simple: no spaces in the db password and the names for both dbname/dbusername are the same two-character lowercase strings. This could not be simpler.
Drupal 8 has been an absolutely exhausting to install, so it seems a shame to get this far only to be stymied by this.
Same problem with Drupal 9 Ubuntu Custom server
PHP_VERSION: php 7.4 nts, installed with (sudo apt-get install php)
Drupal version: Drupal 9.2.3 (Downaloded, and unzipped the zip file, then from /Downloads/ to /var/www/html/domain_test/)
I was stuck with the same issue - that
Drupal requires you to enable the PHP extensions in the following list: GD
Now,
After
sudo apt-cache search php-gd
it returned - php-gd is default, but the php-gd extension was not showing up to - php.sudo apt-get install php7.4-gd
this installed the php7.4-gd, and written, .ini file in /etc/php/7.4/mods_available/ with the new versionNow. after -
systemctl restart apache2
the issue of "Drupal requires enabling the PHP extensions" resolved.