Difference between revisions of "PHP"

From Atomicorp Wiki
Jump to: navigation, search
m
Line 3: Line 3:
 
== Features ==
 
== Features ==
  
* Currently using the 5.3.x branch
+
* Currently using the 5.4.x branch
 
* Uses the internal PCRE library, with extended UTF-8 support
 
* Uses the internal PCRE library, with extended UTF-8 support
* Linked against the Mysql 5.1,
+
* Linked against the atomic Mysql library, currently 5.5
 
* Based on the Fedora design and includes the following core modules:
 
* Based on the Fedora design and includes the following core modules:
 
** php-bcmath: support for using the bcmath library
 
** php-bcmath: support for using the bcmath library
Line 20: Line 20:
 
** php-mcrypt: mcrypt support
 
** php-mcrypt: mcrypt support
 
** php-mssql: Microsoft SQL server support
 
** php-mssql: Microsoft SQL server support
** php-mysql: mysql, mysqlng, and mysqli database modules
+
** php-mysql: mysql, and mysqli database modules
** php-ncurses: ncurses library support
+
** php-mysqlnd: Native mysql driver, this does not require external mysql libraries
 
** php-odbc: ODBC support
 
** php-odbc: ODBC support
 
** php-pdo: database access abstraction layer to PHP.  This module provides a common interface for accessing MySQL, PostgreSQL or other databases
 
** php-pdo: database access abstraction layer to PHP.  This module provides a common interface for accessing MySQL, PostgreSQL or other databases
Line 30: Line 30:
 
** php-snmp: SNMP support
 
** php-snmp: SNMP support
 
** php-soap: SOAP web services protocol support
 
** php-soap: SOAP web services protocol support
** php-sqlite: extension for the SQLite V2 Embeddable SQL Database Engine
 
 
** php-tidy: tidy library support
 
** php-tidy: tidy library support
 
** php-xml: support manipulating XML documents using the DOM tree, and performing XSL transformations on XML documents.
 
** php-xml: support manipulating XML documents using the DOM tree, and performing XSL transformations on XML documents.
Line 39: Line 38:
 
** php-suhosin
 
** php-suhosin
 
** php-eaccelerator:
 
** php-eaccelerator:
 +
** php-zend-guard-loader:
  
 
== Installation ==
 
== Installation ==
Line 45: Line 45:
 
[http://www.atomicorp.com/products.html Brought to you by the makers of Atomic Secured Linux.  Secure your server now!]
 
[http://www.atomicorp.com/products.html Brought to you by the makers of Atomic Secured Linux.  Secure your server now!]
  
To upgrade to PHP 5.3.x on CentOS/RHEL/Fedora:
+
To upgrade to PHP 5.4.x on CentOS/RHEL/Fedora:
  
 
Step 1) Set up the atomic channel:
 
Step 1) Set up the atomic channel:
 
  wget -q -O - http://www.atomicorp.com/installers/atomic | sh
 
  wget -q -O - http://www.atomicorp.com/installers/atomic | sh
  
Step 2) Upgrade to PHP 5.3.x:
+
Step 2) Upgrade to PHP 5.4.x:
 
  yum upgrade
 
  yum upgrade
  
Line 56: Line 56:
 
  mv /etc/php.ini.rpmnew /etc/php.ini
 
  mv /etc/php.ini.rpmnew /etc/php.ini
  
Step 4) Replace the php.conf with the PHP 5.3.x php.conf (if applicable):
+
Step 4) Replace the php.conf with the PHP 5.4.x php.conf (if applicable):
 
  mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf
 
  mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf
  
Line 67: Line 67:
  
  
1) Source code  installations of extensions, like Ioncube loader, or other extensions that have to be updated. Ive created php-ioncube-loader, php-zend-optimizer, and php-eaccelerator packages to fix this for you automatically.  
+
1) Source code  installations of extensions, like Ioncube loader, or other extensions that have to be updated. php-ioncube-loader, php-zend-optimizer, and php-eaccelerator packages are available to fix this automatically.  
  
 
2) php.ini settings, like memory_limit
 
2) php.ini settings, like memory_limit

Revision as of 14:44, 1 August 2013

Brought to you by the makers of Atomic Secured Linux. Secure your server now!

Contents

Features

  • Currently using the 5.4.x branch
  • Uses the internal PCRE library, with extended UTF-8 support
  • Linked against the atomic Mysql library, currently 5.5
  • Based on the Fedora design and includes the following core modules:
    • php-bcmath: support for using the bcmath library
    • php-cli: the command line and cgi interface for PHP
    • php-common: files used by both the php package and the php-cli package
    • php-dba: support for using the DBA database abstraction layer to PHP
    • php-devel: files needed for building PHP extensions
    • php-embedded: library which can be embedded into applications to provide PHP scripting
    • php-enchant: Enchant library support
    • php-gd: support for using the gd graphics library
    • php-imap: IMAP support
    • php-ldap: LDAP support
    • php-mbstring: multi-byte string handling
    • php-mcrypt: mcrypt support
    • php-mssql: Microsoft SQL server support
    • php-mysql: mysql, and mysqli database modules
    • php-mysqlnd: Native mysql driver, this does not require external mysql libraries
    • php-odbc: ODBC support
    • php-pdo: database access abstraction layer to PHP. This module provides a common interface for accessing MySQL, PostgreSQL or other databases
    • php-pgsql: postgres support
    • php-process: system interfaces for inter-process communication
    • php-pspell: pspell library support
    • php-recode: recode library support
    • php-snmp: SNMP support
    • php-soap: SOAP web services protocol support
    • php-tidy: tidy library support
    • php-xml: support manipulating XML documents using the DOM tree, and performing XSL transformations on XML documents.
    • php-xmlrpc: support for the XML-RPC protocol to PHP
    • php-zts: Module for Apache HTTP Server which can operate under a threaded server processing model
  • Additional modules:
    • php-ioncube-loader
    • php-suhosin
    • php-eaccelerator:
    • php-zend-guard-loader:

Installation

Brought to you by the makers of Atomic Secured Linux. Secure your server now!

To upgrade to PHP 5.4.x on CentOS/RHEL/Fedora:

Step 1) Set up the atomic channel:

wget -q -O - http://www.atomicorp.com/installers/atomic | sh

Step 2) Upgrade to PHP 5.4.x:

yum upgrade

Step 3) Replace the PHP 4 php.ini with PHP 5.3.x's (if applicable):

mv /etc/php.ini.rpmnew /etc/php.ini

Step 4) Replace the php.conf with the PHP 5.4.x php.conf (if applicable):

mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf

Step 5) Restart the webserver

service httpd restart
(or)
/etc/init.d/httpd restart

Checklist

1) Source code installations of extensions, like Ioncube loader, or other extensions that have to be updated. php-ioncube-loader, php-zend-optimizer, and php-eaccelerator packages are available to fix this automatically.

2) php.ini settings, like memory_limit

3) execstack -c on any extensions that claim to need an executible stack (ASL users only).

FAQ

Q: How do I install PHP 5.3 with Mysql 5.0?

A: First run:

 yum install mysqlclient16
Personal tools