EPEL & Remi Repo Added
- wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
- wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
- rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm
MySQL Community Repo Added 
- http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

Installed httpd
- systemctl start httpd
Installed mysql
- systemctl start mysqld
- yum install mysql-community-server
Installed PHP
- yum install php php-mysqlnd
Installed PHP Modules
- yum install php-gd
- yum install php-ldap
- yum install php-mbstring
- yum install php-mysql
- yum install php-pdo
- yum install php-soap
- yum install php-xmlrpc
- yum install php-snmp
- yum install php-mcrypt
- yum install php-xml
Installed unzip
- yum install unzip

SELinux Disabled
- vi /etc/selinux/config
- Set 'SELINUX=disabled'
- Reboot server
Uploaded PME files to Apache server
- Upload to /var/www/html/pme
Applied appropriate modifications for Linux
Opened Firewall Ports
- firewall-cmd --zone=public --add-port=80/tcp --permanent
- firewall-cmd --zone=public --add-port=443/tcp --permanent
- firewall-cmd --reload
ionCube Loaded
Modified Permissions on PME folder
- chmod -R 755 /var/www/html/pme
- chown -R apache /var/www/html/pme
Change MySQL Root Password to PME Configuration
Upload & Run PME SQL Creation Scripts
- mysql -u root -p < pme_script.sql
- mysql -u root -p < call_manager_install.sql
- mysql -u root -p < views_script.sql
Rum PME SQL Update Scripts (If Any)
Install & Configure mod_ssl
- Add HTTPS enforcement through PME .htaccess file - /etc/httpd/conf/httpd.conf 
...
<Directory />
	Options FollowSymLinks
	AllowOverride All
</Directory>
...
<Directory "/var/www/html/pme">
	AllowOverride All
	Options FollowSymLinks
	Require all granted
</Directory>

Add for Certs Upload Permissions CHOWN Apache for directory and R/W Access for files	
- chown apache /etc/pki/tls/private/localhost.key
- chmod 755 /etc/pki/tls/private/localhost.key
- chown apache /etc/pki/tls/certs/localhost.crt
- chmod 755 /etc/pki/tls/certs/localhost.crt

Modify php.ini Configuration
...
max_execution_time = 0 
...
short_open_tag = On
...
memory_limit = 1024M
...
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 20M
post_max_size = 20M
...
display_errors = Off
...
;html_errors = Off ;Commented out

Modify MySQL Configuration File
- File Location: my.ini
- Add to top of file
event_scheduler=ON
- Remove Parameter 'STRICT_TRANS_TABLES
-- sql_mode=NO_ENGINE_SUBSTITUTION #,STRICT_TRANS_TABLES

Install & Configure NTPD
- yum install ntp ntpdate ntp-doc
- firewall-cmd --add-service=ntp --permanent
- firewall-cmd --reload

Install gcc
Downloaded and Altinstalled Python 2.7.9 (Python 2.7.5 default)
- wget http://www.python.org/ftp/python/2.7.9/Python-2.7.9.tar.xz
- yum install xz
- xz -d Python-2.7.9.tar.xz
- tar -xvf Python-2.7.9.tar
- cd Python-2.7.9
# - ./configure --enable-shared
- ./configure --prefix=/usr
- resolve dependencies (if any)
-- yum install sqlite-devel
-- yum install bzip2-devel
-- yum install zlib-devel
-- yum install openssl-devel
-- yum install ncurses-devel
-- yum install readline-devel
-- yum install gdbm-devel
- make again to verify dependency resolution
-- Use http://rajaseelan.com/2012/01/28/installing-python-2-dot-7-2-on-centos-5-dot-2/ for reference

- make && make install
Add SymLink to overcome install issues in CentOS 5.11
- LD_LIBRARY_PATH=/usr/local/lib /usr/local/bin/python2.7
- ldconfig
- sudo ln -s /usr/local/lib/libpython2.7.so.1.0 /usr/lib/libpython2.7.so.1.0

Add User 'akkadianuser'
- adduser akkadianuser
- Configure CLI User Password
-- passwd akkadianuser
Add akkadianuser to Sudoers file
- sudo visudo
<after 'root 	ALL=(ALL)	ALL'>
...
akkadianuser	ALL=(ALL:ALL)	ALL
...
<after # %wheel        ALL=(ALL)       NOPASSWD: ALL>
akkadianuser ALL=(ALL:ALL)	NOPASSWD: ALL
...
- Save file
-- :wq
Load CLI files over akkadianuser directory (includes modified .bashrc files for autostart into CLI at login)
- chown -R akkadianuser /home/akkadianuser
- chmod -R 755 /home/akkadianuser
Modify .bashrc file
- Add at end of file
# User specific aliases and functions
sudo akkadianAppManager menu

Python Install EasySetup
---Need to perform insecure runs since we have a self signed cert---
- wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
- sudo python ez_setup.py --insecure
-- insecure because of self signed cert

Get netifaces 0.10.4
- https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.4.tar.gz
- tar xvzf netifaces-0.10.4.tar.gz
- cd netifaces-0.10.4
- python setup.py install

Install CLI files
- python2.7 setup.py build
- python2.7 setup.py install

mkdir /home/backups
mkdir /home/backups/akkappmanager
mkdir /home/backups/pme
chmod -R 755 /home/backups
chown -R akkadianuser /home/backups

Log into CLI
Modify Apache CRON File & Save
#59 23 * * * php /var/www/sql_script/trunk.php
5 * * * * php /var/www/html/pme/index.php --task=Sync
*/10 * * * * php /var/www/html/pme/index.php --task=Schedule
*/10 * * * * php /var/www/html/pme/index.php --task=BackupSchedule
