Posts

Showing posts from March, 2020

Install a LEMP Stack on CentOS 7

Here is a great tutorial for installing a LEMP stack on Linode https://www.linode.com/docs/web-servers/lemp/lemp-stack-on-centos-7-with-fastcgi/ I did this on Centos 7 and it worked great. Notes: 1. In your test.php file, remember to replace                     $username = "testuser";                    $password = "password"; with the username and password you created to login to  MariaDB  2. On Centos 7 you need to turn off SELinux or set it to permissive. Otherwise you'll get 'No Input file specified' when you test the web page If /var/log/nginx/error.log has '[error] 20049#20049: *43 FastCGI sent in stderr: "Unable to open primary script: /var/www/<yourwebsite>.com/test.php (No such file or directory)" Then you can temporarily set SELinux to permissive by running this command [root@linuxhost~]# setenforce 0 Then run [root@linuxhost~]# ...

OSSEC Version 3.6.0 Install Successful on Google Cloud

Created by Andrew Francis March 11, 2020 ******************    OSSEC v. 3.6.0 INSTALL SUCCESSFUL  ************* This is on a CentOS 7 vm on Google Cloud Platform  uname -a Linux ids-server 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 x86_64 x86_64  CentOS Linux release 7.7.1908 (Core) [andy@ids-server ossec-hids-3.6.0]$   sudo yum install zlib-devel pcre2-devel make gcc  sudo  yum install mysql-devel postgresql-devel  sudo  yum install sqlite-devel  sudo yum install  libevent libevent-devel.x86_64  wget https://github.com/ossec/ossec-hids/archive/3.6.0.tar.gz  tar -xzvf 3.6.0.tar.gz  cd ossec-hids-3.6.0/ [andy@ids-server ossec-hids-3.6.0]$ sudo  PCRE2_SYSTEM=yes ./install.sh (en/br/cn/de/el/es/fr/hu/it/jp/nl/pl/ru/sr/tr) [en]: OSSEC HIDS v3.6.0 Installation Script - http://www.ossec.net You are about to start the installation process of the OSSEC...