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

Zomro: $11.99/year/256MB RAM/5GB SSD space/unlimited traffic/OpenVZ/Netherlands

Zomro, a Ukrainian hosting provider, provides VPS...

Use cpulimit to limit VPS CPU usage and prevent suspend

Preface Because machines with small memory are of...

Nexim: $0.99/month/5GB space/unlimited traffic/10 sites

Nexim Web Hosting是成立于2010年10月的美國公司,2013年11月開始提供主機...

MondoServ: 20 €/month/E3-1220/16GB RAM/2TB HDD/Unlimited traffic/1 IP

MondoServ is a Romanian hosting company, a formal...

Windows VPS: $5/month/6G memory/20GB SSD space/2TB traffic/LXC/Dallas

WindowsVPS, an American hosting provider, seems t...

jaguarpc domain name discount: .org $1.99/year

Registration address: https://clients.jaguarpc.co...