PHP 5.5.9 installation

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

PHP 5.5.9 installation

Post by cah »

After downloading and unzipping, I had to run the following command to configure PHP 5.5.9:

Code: Select all

configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-mysqli --without-iconv
NOTICE: the "--with-aspx2" flag gets libphp5.so created and later installed to Apache modules/ directory.

Then, compiled it:

Code: Select all

make
I then installed it:

Code: Select all

cahtoh02:/work/applications/php-5.5.9%make install
/bin/sh /work/applications/php-5.5.9/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /work/applications/php-5.5.9/modules
Installing PHP SAPI module:       apache2handler
Use of assignment to $[ is deprecated at /usr/local/apache2/bin/apxs line 86.
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
cp .libs/libphp5.so /usr/local/apache2/modules/libphp5.so
chmod +x /usr/local/apache2/modules/libphp5.so
cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /work/applications/php-5.5.9/libs'
chmod 755 /usr/local/apache2/modules/libphp5.so
[activating module `php5' in /usr/local/apache2/conf/httpd.conf]
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20121212/
Installing PHP CLI binary:        /usr/local/bin/
Installing PHP CLI man page:      /usr/local/php/man/man1/
Installing PHP CGI binary:        /usr/local/bin/
Installing PHP CGI man page:      /usr/local/php/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/php/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar    - already installed: 1.3.11
[PEAR] Console_Getopt - already installed: 1.3.1
[PEAR] PEAR           - already installed: 1.9.4
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] Structures_Graph- already installed: 1.0.4
[PEAR] XML_Util       - already installed: 1.2.1
/work/applications/php-5.5.9/build/shtool install -c ext/phar/phar.phar /usr/local/bin
ln -s -f /usr/local/bin/phar.phar /usr/local/bin/phar
Installing PDO headers:          /usr/local/include/php/ext/pdo/
Then, a restart of Apache loaded the latest libphp5.so in /usr/local/apache2/modules.

Code: Select all

%/usr/local/apache2/bin/apachectl stop
%/usr/local/apache2/bin/apachectl start
CAH, The Great
Post Reply