Install HHVM using the LTMH one-click installation package

Install HHVM using the LTMH one-click installation package

The LTMH one-click installation package used was tested on Centos 6.5 64 and Ubuntu 14 64, but failed on Debian.

Install:

screen -S ltmh

wget -c http://soft.hhvmc.com/dl/0.4v/ltmh.tar.xz
tar Jxvf ltmh.tar.xz
cd ltmh
chmod +x install_ltmh.sh
./install_ltmh.sh

There is a system upgrade option in the middle, but it is recommended not to upgrade.

Add website execution (execute in the /root/ltmh directory):
./vhost_hhvm.sh

Back up the website and database (execute in the /root/ltmh directory):
./backup.sh

uninstall:
./uninstall.sh

Notice:
After building a website, such as wordpress, there may be no rules. It is recommended to add corresponding rules under /usr/local/nginx/conf.
For example, for wordpress, add the following pseudo-static rules in wordpress.conf:
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
Just restart Nginx/Tengine.

Set crontab and restart hhvm
New program, prone to problems, restart hhvm task settings:
Under SSH:
select-editor
Option 2
crontab -e
Add to

          • root [ -z “ ps -ef | grep hhvm | grep -v grep ” ] && service hhvm restart

Related commands:
Nginx/Tengine:
service nginx {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}
##tengine:/usr/local/nginx/sbin/nginx -t ,-v ,-m , -V
##tengine:/usr/local/nginx/sbin/dso_tool –add-module=……

MySQL/MariaDB:
service mysqld {start|stop|restart|reload|force-reload|status}

PHP:
service php-fpm {start|stop|force-quit|restart|reload|status}

HHVM:
service hhvm {start|stop|restart|reload|status}

Redis:
service redis-server {start|stop|status|restart|condrestart|try-restart|reload|force-reload}

Memcached:
service memcached {start|stop|status|restart|reload|force-reload}

renew:
./up_php.sh # upgrade PHP
./up_web_ser.sh # upgrade Nginx/Tengine
./up_redis.sh # upgrade Redis
./up_phpmyadmin.sh # upgrade phpMyAdmin

<<:  Install HHVM on CentOS 6.5 (64-bit)

>>:  How to turn off MYSQL logging and disable mysql-bin.0000X files

Recommend

vps.net: $5/month/1GB RAM/30GB SSD space/2TB traffic/Xen/Salt Lake/UK

vps.net, a long-established hosting provider, pro...

EntryDNS —— Supports unlimited resolution of domain names

EntryDNS has been providing free domain name reso...

VPSCreed: $7.5/month/6 cores/2GB memory/60GB SSD/3TB bandwidth/KVM

VPSCreed, a recently launched managed VPS, is off...

xCiteHub: $16/month/1GB RAM/30GB SSD/2TB bandwidth/KVM/Singapore

xCiteHub 99.99% online rate 10GB port Buy VPS and...

infomaniak: Free 1 top-level domain name + virtual host + email space

infomaniak, Christmas event, give away 1 domain n...

DMIT: $9.88/month/512MB memory/6GB SSD space/600GB traffic/DDOS/KVM/Hong Kong

DMIT, an American hosting company (operated by Ch...