0% found this document useful (0 votes)
10 views

./configure - With-Apxs2 /usr/local/apache2/bin/apxs - With-Mysql Mysqlnd

This document provides instructions for installing and configuring Apache, PHP, MySQL, and the OAuth extension on macOS. It involves: 1. Installing OpenSSL, Apache, and configuring Apache with SSL support. 2. Installing PHP and configuring it with extensions like MySQL, OpenSSL, and pear. 3. Installing pear. 4. Building the OAuth PHP extension after installing its dependencies. 5. Installing MySQL.

Uploaded by

prayanks123
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

./configure - With-Apxs2 /usr/local/apache2/bin/apxs - With-Mysql Mysqlnd

This document provides instructions for installing and configuring Apache, PHP, MySQL, and the OAuth extension on macOS. It involves: 1. Installing OpenSSL, Apache, and configuring Apache with SSL support. 2. Installing PHP and configuring it with extensions like MySQL, OpenSSL, and pear. 3. Installing pear. 4. Building the OAuth PHP extension after installing its dependencies. 5. Installing MySQL.

Uploaded by

prayanks123
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

2. Install OpenSSL ./Configure darwin64-x86_64-cc --openssldir=/usr/local/openssl make make test make install 1.

Install Apache export CFLAGS="-arch x86_64" configure options ./configure --enable-authn-anon --enable-authn-dbm --enable-authz-dbm --enable-auth-digest --enable-cache --enable-cern-meta --enable-deflate --enable-disk-cache --enable-expires --enable-file-cache --enable-headers --enable-info --enable-logio --enablemem-cache --enable-rewrite --enable-so --enable-ssl --enable-unique-id --enable-usertrack --with-mpm=prefork --enablemodule=so --host=i686-apple-darwin11.2.0 --build=i686-apple-darwin11.2.0 --with-ssl=/usr/local/openssl make make install 2. Install PHP

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=mysqlnd --host=i686-appledarwin11.2.0 --build=i686-apple-darwin11.2.0 --enable-debug --with-iconv --enable-zip --enable-mysqlnd --enable-exif --enable-ftp --with-openssl=/usr/local/openssl --enable-bcmath --enable-calendar --with-mhash --with-mysqli=mysqlnd --with-pdomysql=mysqlnd --enable-mbstring=all --with-tidy --with-curl --enable-sqlite-utf8 --with-kerberos --enable-soap -with-imapssl=/usr/local/openssl --enable-sockets --with-pear --prefix=/usr/local/php --with-pcre-regex --with-EXTENSION=[shared[,PATH]] NOTE: Not all extensions can be build as 'shared'. Example: --with-foobar=shared,/usr/local/foobar/ o Builds the foobar extension as shared extension. o foobar package install prefix is /usr/local/foobar/ EXTRA LIBS: --enable-intl --mhash --with-gd

Enable internationalization support

--with-imap[=DIR] Include IMAP support. DIR is the c-client install prefix --with-mysql-sock[=DIR] MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer. If unspecified, the default locations are searched --with-pear=DIR Install PEAR in DIR [PREFIX/lib/php] --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes]

--with-jpeg-dir[=DIR] GD: Set the path to libjpeg install prefix --with-png-dir[=DIR] GD: Set the path to libpng install prefix --with-zlib-dir[=DIR] GD: Set the path to libz install prefix --with-xpm-dir[=DIR] GD: Set the path to libXpm install prefix --with-freetype-dir[=DIR] GD: Set the path to FreeType 2 install prefix --with-t1lib[=DIR] GD: Include T1lib support. T1lib version >= 5.0.0 required --enable-gd-native-ttf GD: Enable TrueType string function --enable-gd-jis-conv GD: Enable JIS-mapped Japanese font support 3. install pear 4. oauth phpize

./configure CPPFLAGS=-I/usr/local/php/include/php LDFLAGS=-L/usr/local/php/lib/php

3. Install MySQL

cmake . make make install

cmake . -DCMAKE_OSX_ARCHITECTURES:STRING=x86_64 -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=x86_64 -L

You might also like