Fedora 15 64bit LAMP Stack w/ PHP 5.3.8 and Goodies

by corey_ballou
14 deployments · 11 still active · last rev. 5 years ago

Includes system updates/upgrades, RPM Fusion repository, REMI repository, and upgrade of PHP to the latest version.

Bonuses include git, subversion, postfix, wget, and

Included php modules:

* PEAR
* PDO
* MySQL
* PgSQL
* Memcache
* APC
* GD
* mbstring
* mcrypt
* xml

Compatible with: No distros currently supported
						#!/bin/bash

source <ssinclude StackScriptID="20">
source <ssinclude StackScriptID="154">

system_update
install_basics
postfix_install_loopback_only

yum -y install git subversion gcc glibc glibc-common gd gd-devel
yum -y localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
yum -y localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
yum -y localinstall --nogpgcheck http://rpms.famillecollet.com/remi-release-15.rpm

yum -y --enablerepo=remi install mysql mysql-server
yum -y --enablerepo=remi install httpd php php-common
yum -y --enablerepo=remi install php-pear php-pdo php-mysql php-pgsql php-pecl-memcache php-pecl-apc php-gd php-mbstring php-mcrypt php-xml

chkconfig --levels 2345 mysqld on
chkconfig --levels 2345 httpd on
chkconfig --levels 2345 postfix on
/etc/init.d/httpd start
/etc/init.d/mysqld start
/etc/init.d/postfix start

cp /etc/sysconfig/iptables /etc/sysconfig/iptables.bak
echo "# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8443 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT" > /etc/sysconfig/iptables

# restart iptables
/sbin/service iptables restart

goodstuff