Composer official site: https://getcomposer.org
According to the official guide, Java (JVM) version
Only Oracle’s Java and the OpenJDK are supported. The same JVM version should be used on all Elasticsearch nodes and clients.
We recommend installing the Java 8 update 20 or later, or Java 7 update 55 or later. Previous versions of Java 7 are known to have bugs that can cause index corruption and data loss. Elasticsearch will refuse to start if a known-bad version of Java is used.
The version of Java to use can be configured by setting the JAVA_HOME environment variable.
At the beginning, login mysql , then run following commands:
then import sql files, and at the end
As centos enable SELinux as default, and SELinux is preventing httpd from read access on the file and access db, we need to allow them.
Note: if cloud server disable the SELinux or allow relevant httpd services, the following commands doesn’t need, so try to see SELinux status first.
Apache modules: mod_rewrite, mod_deflate, mod_filter
Google PageSpeed Module (optional)
Official site: https://developers.google.com/speed/pagespeed/module/
We may want a service such as Apache to be allowed to bind and listen for incoming connections on a non-standard port. By default, the SELinux policy will only allow services access to recognized ports associated with those services.
A full list of ports that services are permitted access by SELinux can be obtained with:
If we wanted to allow Apache to listen on tcp port 82, we can add a rule to allow that using the ‘semanage’ command: