Legacy PHP Functions

Just setup a small github repo of some deprecated php function replacements.
I have many websites that I maintain and other old software and always trying to stay on the latest version of PHP. These functions help if you are going from PHP 5 to PHP 7 and PHP 7 to PHP 8

Includes: mysql_* create_function ereg eregi ereg_replace eregi_replace split spliti


https://github.com/VBGAMER45/legacyphpfunctions

Installing Elastic Search 8.0 on CentOS 8 Orcale Linux

A quick guide on setting up Elastic Search

yum install java-1.8.0-openjdk.x86_64
cd /etc/yum.repos.d/
ls
vi elasticsearch.repo
yum install –enablerepo=elasticsearch elasticsearch
systemctl start elasticsearch.service

curl –cacert /etc/elasticsearch/config/certs/http_ca.crt -u elastic hcurl –cacert /etc/elasticsearch/certs/http_ca.crt -u elastic https://localhost:9200

yum install kibana
cd /etc/yum.repos.d/
vi kibana.repo
yum install kibana

/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana
/bin/systemctl daemon-reload
/bin/systemctl enable kibana.service

sestatus
setsebool httpd_can_network_connect 1 -P

systemctl status firewalld

firewall-cmd –new-zone=elastic-access –permanent


firewall-cmd –zone=elastic-access –add-source=192.68.0.1 –permanent

firewall-cmd –zone=elastic-access –add-port=9200/tcp –permanent

firewall-cmd –zone=elastic-access –add-port=9300/tcp –permanent
firewall-cmd –zone=elastic-access –add-port=5601/tcp –permanent

firewall-cmd –zone=elastic-access –add-port=80/tcp –permanent
firewall-cmd –zone=elastic-access –add-port=443/tcp –permanent

firewall-cmd –reload

/usr/share/kibana/bin/kibana-verification-code

netstat -ntlp

yum -y install nginx httpd-tools

cd /etc/nginx/conf.d

vi es.yoursite.com.conf

nginx -t

service nginx restart