centos

CentOS 6.x

As user mtcs posted below, this one-liner will grab the necessary packages without grabbing non-Fedora/RedHat packages (which my previous instructions did, causing needless headaches):

> yum install ftp://linuxsoft.cern.ch/cern/updates/slc6X/${ARCH}/RPMS/php-pecl-uploadprogress-1.0.1-1.slc6.${ARCH}.rpm

Next, restart Apache / httpd to have PHP load the UploadProgress extension:
> service httpd restart

Finally, test by going to /admin/reports/status on your site to see if UploadProgress is reported to be working.

OpenVZ VPS / PHP 5.4.11

if you indeed use the latest PHP version from remi repository and install uploadprogress rpm you may end up with incompatible PHP/uploadprogress API versions. If you run a CentOS 6 openVZ VPS you should install first the relevant kernel headers from openvz.org, then install php-devel 5.4.11 and php-pear from remi repository, and finally build/install uploadprogress via pecl:

> uname -rm  (e.g.: 2.6.32-042stab065.3 x86_64 )
> wget http://download.openvz.org/kernel/branches/rhel6-2.6.32/042stab065.3/vzkernel-headers-2.6.32-042stab065.3.x86_64.rpm

> yum --nogpgcheck localinstall vzkernel-headers-2.6.32-042stab065.3.x86_64.rpm
> yum install gcc-c++ php-devel php-pear
> pecl install uploadprogress
> echo "extension=uploadprogress.so" >> /etc/php.ini
Read more

SELinux Download Notes

Note for SELinux users

To install on a Fedora-based distro (RHEL, CentOS, etc.) there are two main options:

  • Install from the repository through a yum install drupal command.
  • Install it yourself.

The installation instructions will vary a bit depending on your choice, as will the version you wind up with in some cases.

To be compliant with FHS guidelines on architecture independent system components (http://www.pathname.com/fhs/pub/fhs-2.3.html#THEUSRHIERARCHY) vs transient data placement (http://www.pathname.com/fhs/pub/fhs-2.3.html#THEVARHIERARCHY) and to enforce Fedora-ish system segregation Fedora and its derivatives place the code part of systems like Drupal and WikiMedia in /usr/share and the data elements (like files/ and images/) in /var/www. These parts are bound together through a series of symlinks, as the original development concept behind Drupal and other such systems did not take the FHS into account (there is a pretty big generation/culture gap between core Unix developers and web developers -- and embedding code to this extent inside of what used to be public data files (.html files becoming .php files and totally bypassing cgi-bin) was never thought of when the FHS was originally conceived). This can be confusing for newcomers.

Read more

What is PDO?

PDO is an acronym for PHP Data Objects. PDO is a lean, consistent way to access databases. This means developers can write portable code much easier. PDO is not an abstraction layer like PearDB. PDO is a more like a data access layer which uses a unified API (Application Programming Interface).

How to enable PDO

To enable PDO, configure --enable-pdo and --with-pdo-sqlite --with-pdo-mysql or whatever database needs supporting by PDO (see the PHP manual for more information).

Windows users

  • For Apache, you will need to make sure php_pdo.dll and php_pdo_mysql.dll exist in the php/ext directory, un-comment or add the appropriate lines in php.ini, and restart the web server.
  • For IIS, PDO DLLs are not enabled by default. The preferred method for enabling them is to go to the Control Panel | Add/Remove Programs, highlight your PHP installation and click "Change" (Change/Remove - XP). Specify "FastCGI", then modify the installed extensions to include these two, then restart your server.

Macintosh users

Method 1

OS X 10.5: Detailed, step-by-step instructions are available here:

Read more
Subscribe with RSS Syndicate content
nobody click here