Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # bootstrap.sh
- PASSWORD = {PASSWORD}
- # Install Apache
- sudo yum install -y httpd
- # Start Apache service
- sudo systemctl start httpd.service
- # Enable Apache to start on boot
- sudo systemctl enable httpd.service
- # Install MariaDB
- sudo yum install -y mariadb-server mariadb
- # Start MariaDB service
- sudo systemctl start mariadb
- # Configure the MariaDB database
- # Not permitted to be done unattended in Fedora
- # sudo mysql_secure_installation
- # Enable MariaDB to start on boot
- sudo systemctl enable mariadb.service
- # Install PHP and PHP-MySQL
- sudo yum install -y php php-mysql
- # Restart the Apache server
- sudo systemctl restart httpd.service
- # Install Gearman from source
- # (Not available from repositories)
- # 1. Install the recommended packages
- yum install gcc gcc-c++ make bison flex autoconf libtool memcached libevent libevent-devel uuidd libuuid-devel boost boost-devel libcurl-dev libcurl curl gperf mysql-devel wget
- # 2. Download the latest files and extract them
- cd /vagrant/
- wget https://launchpad.net/gearmand/1.2/1.1.12/+download/gearmand-1.1.12.tar.gz
- tar -zxvf gearmand-1.1.12.tar.gz
- cd gearmand-1.1.12
- # 3. Compile the extracted code
- ./configure
- make
- make install
- # 4. Start the daemon
- mkdir -p /usr/local/var/log/
- gearmand --verbose DEBUG -d
- # 5. Check there are no errors
- tail /usr/local/var/log/gearmand.log
- DEBUG XXX [ 2 ] Entering thread event loop -> libgearman-server/gearmand_thread.cc:463
- # 6. Install the PHP pear package
- yum install install php-devel php-pear
- pecl install gearman
- # Restart apache (if thats what you are using)
- sudo systemctl restart httpd.service
- # Install GearmanManager
- sudo yum install git-core
- cd /vagrant
- git clone https://github.com/brianlmoon/GearmanManager.git /vagrant/gearman-manager
- /vagrant/gearman-manager/install/install.sh
- # Start the manager
- /etc/init.d/gearman-manager start
- # Check for any errors
- tail /var/log/gearman-manager.log
- # Restart the Apache server
- sudo systemctl restart httpd.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement