Last updated March 23, 2013. Created by gpk on February 2, 2003.
Edited by klausi, silverwing, LeeHunter, chx. Log in to edit this page.
Note: this page should not be edited without first discussing the changes in a Drupal Core issue as the requirements for each version of Drupal are decided upon by the Drupal Core developers.
Disk space
A minimum installation requires 15 Megabytes. 60 MB is needed for a website with many contributed modules and themes installed. Keep in mind you need much more for the database, files uploaded by the users, media, backups and other files.
Web server
Apache, Nginx, or Microsoft IIS
More details about web server requirements.
Database
Drupal 6: MySQL 4.1 or higher, PostgreSQL 7.1,
Drupal 7: MySQL 5.0.15 or higher with PDO, PostgreSQL 8.3 or higher with PDO, SQLite 3.3.7 or higher
Microsoft SQL Server and Oracle are supported by additional modules.
More details about database requirements.
PHP
Drupal 6: PHP 4.4.0 or higher (5.2 recommended).
Drupal 7: PHP 5.2.5 or higher (5.3 recommended).
Drupal 8: PHP 5.3.10 or higher.
More details about PHP requirements.
See also the Site Performance section of the Administration Guide and the webhosting troubleshooting FAQ.
Comments
FreeBSD note
I had an issue while installing Drupal yesterday on my FreeBSD system, and I think others have had this issue too.
It turns out it was an issue with the PCRE (Perl Common Regular Expressions) extension of PHP. I think FreeBSD deals with PHP extensions in a different way than on most systems.
If you're getting warning messages about PCRE not having UTF-8 support, try this:
You might have to make deinstall in the /usr/ports/lang/php5-extensions directory and apachectl restart.
For reference, check out these pages:
http://drupal.org/node/97673 (scroll to bottom)
http://jake.wyrr.org/content/fix-pcre_utf8-errors-in-drupal-sites-hosted...
OS X pdo Troubeshooting
If you have issues related to pdo on os x like Warning: PDO::__construct(): [2002]...
Have a look at this post for a possible fix : Document OS X PDO socket installation issues
Safe Mode
In addition to interfering with file and image upload, safe_mode on will also cause warnings when sending users mail.
Do not enable apc.include_once_override
Note that in Drupal 7,
apc.include_once_overrideAPC setting cannot be enabled (the php session dies with an error message that says that some Class is already defined).PDO documentation needs updating
I think that PDO documentation needs updating - it currently says:
My Ubuntu (Natty Narwhal version) has no such lines in the php.ini, yet phpinfo() says that PDO drivers for mysql are enabled out of the box.
Same on Debian Squeeze
Perhaps simply note that nothing needs to be changed on Debian and Ubuntu.
This was true for everything wrt PHP.INI except error_reporting, which defaulted to E_ALL & ~E_DEPRECATED.
However it seems this gets overridden by includes/common.inc anyway? or is it bootstrap?
And perhaps note the fact that phpinfo() returns numbers 22527 vs 30711
All that needs to be clarified/simplified, spend a lot of time googling to verify stuff that's already OK.
Installing Drupal 8 on Dev Desktop
If you are getting a parse error when installing Drupal 8 on Dev Desktop, make sure it is using PHP 5.3.2 or higher.
Here is the error message you might be seeing:
Parse error: syntax error, unexpected T_CONST in /Users/[username]/Sites/[sitename]/core/install.php on line 19
Here are instructions:
ownsourcing.com - Drupal training
PHP Handler
So I haven't seen anything mentioned on here about this, but it keeps creeping up as an issue for me so I thought I'd mention it.
The server's PHP handler needs to be set so that your scripts run as a user allowed to read,write and execute any and all files in your install. For example, whenever your compressed CSS and JS files need to be updated. I'd recommend setting SuPHP as your PHP handler although I think there are other ways of achieving this with CGI. DSO has always given me problems.
I'm not really a SysAd myself, maybe someone on here could better explain or have better recommendations for a setup, but that's just what I have discovered for my sites.
Drupal 8 requires PHP 5.3.3; won't install on 5.3.2
The requirements above are incorrect as of this date. However, http://symfony.com/doc/current/reference/requirements.html shows that the requirements for the framework are PHP 5.3.2. I'll look into why, and possibly file a bug report.
Simple way to see if server meets requirements
I remember that there was a php file that would analyze your server's installed modules and software versions to tell if it is compatible with drupal 7. I'm unable to find this file. Does anyone know where is that file located, or i downloaded it from another site?
I remember that there was a
I think this is a good idea. Every few years I have to set up a new IDE but things change (including my memory) and I am very unfamiliar with server settings. Perhaps this page could also make a reference to the essential apache settings (I have seen them somewhere on this domain). For example, most LAMPs come with the doc-root set as /var/www but I may want to change this for various reasons or to line up with my hosted server (/home/public-html). Many new users will have little idea on how to edit apache settings (a danger area).
fabius
fabius
Create a phpinfo.php file
Create a new file named phpinfo.php and place it in the root of your Drupal installation.
Edit it and place the following in your phpinfo.php file:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
Open up the URL for the phpinfo.php and you can read the details of your server.
"Setting Up Database"
Hi There!
I have these warnings on top of the page when I am installing drupal 7.17 in the "set up database" step:
Warning: fileowner() has been disabled for security reasons in install_check_requirements() (line 1605 of /home3/literatu/public_html/includes/install.core.inc).
Warning: fileowner() has been disabled for security reasons in install_check_requirements() (line 1605 of /home3/literatu/public_html/includes/install.core.inc).
what's the problem?
help me solve this, please.
_
If you face this problem while you enter your database name, password and etc.. , i suggest you to type your database information manually and without copy/pasting them. I say it because sometimes when you copy your database information, one space will be copied and it makes your database information wrong. I hope i could tell my meaning well.
Doubt is the father of invention..... Hubmesh
PHP 5.4
FYI, there are a known issues with PHP 5.4 and the Views module and the Panels module. The first is warnings from Views due to PHP's E_ALL including E_STRICT as of 5.4, and the second is empty output in Panels.
There may be other issues with PHP 5.4 and Drupal; search the issue queue first or simply be aware of this when developing or upgrading.
No existance of php_pdo.dll
I'm using EasyPHP latest version , where PHP version - 5.4.6 . But with in \php\ext directory , 'php_pdo.dll' file is not present & as a result corresponding 'php.ini' file also not containing the 'extension=php_pdo.dll' . So right now what should i do ?? ( To add php_pdo.dll by downloading or check for other version and include it within 'php.ini' file . plz , anyone has the 'php_pdo.dll' file of PHP version 5.4.6 , share the link . Thanks .
Jayanta Sarkar
Drupal 8 and Redhat 6.4
Drupal wont work if you running PHP older than 5.3.10, Redhat runs PHP 5.3.3 the 02/22/2013 built. There is a way to update PHP is to install and enable a 3rd party repo like Remi, but the think is a lot of corporations use Redhat so they don't have to deal with updates and configurations etc... i was sys admin in a Bank where i faced that problem with Zend Framework and i had to upgrade PHP but i couldn't cause their info security department didn't allow 3rd party Repos like Remi.
Bottom line... do you have to stick with a distro like Ubuntu or it will be a solution in the near future to run Drupal 8 in environment running a lower PHP version than 5.3.10?
Youssef Lamani,
Youssef Lamani,
Drupal 8 and Redhat 6.4
good link if you want to wget/enable Remi and upgrade PHP on you Centos or Redhat server:
http://kb.parallels.com/en/115875
Youssef Lamani,
Youssef Lamani,