<commit_before>---
layout: default
title: PHP Install
---
These instructions are the same for PHP version 5.3-5.5

## Download
Grab the latest source code tarball from:
http://www.php.net/downloads.php

```bash
tar xzvf php-5.5.X.tar.gz
cd php-5.5.X
```

## Configure, Make, and Install
```bash
sudo ./configure --prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--disable-short-tags \
--disable-cgi \
--enable-mbstring \
--with-curl \
--enable-exif \
--with-ldap \
--with-zlib \
--with-mysql=/usr \
--with-mysqli=/usr/bin/mysql_config \
--with-pdo-mysql=/usr \<commit_msg>PHP should now be configured without PEAR<commit_after>---
layout: default
title: PHP Install
---
These instructions are the same for PHP version 5.3-5.5

## Download
Grab the latest source code tarball from:
http://www.php.net/downloads.php

```bash
tar xzvf php-5.5.X.tar.gz
cd php-5.5.X
```

## Configure, Make, and Install
```bash
sudo ./configure --prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--without-pear \
--disable-short-tags \
--disable-cgi \
--enable-mbstring \
--with-curl \
--enable-exif \
--with-ldap \
--with-zlib \
--with-mysql=/usr \
--with-mysqli=/usr/bin/mysql_config \
--with-pdo-mysql=/usr \
{'fraction_non_alphanumeric': 0.1893877551020408, 'fraction_numerical': 0.014693877551020407, 'mean_word_length': 2.8193146417445485, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6237973', 'n_tokens_mistral': 493, 'n_tokens_neox': 459, 'n_words': 105}