Spyderserve Web Development

Category: Hosting and Databases

NFS Server Setup on CentOS 6

Install the needed software for nfs operations: yum install nfs-utils nfs-utils-lib Setup the directories that need to be shared: vim /etc/exports Here is an example of a setting in the exports file: [directory that is being shared] [IP address of client or network (ex. 10.0.0.0/24)](rw,anonuid=[uid],anongid=[gid],async) Force the update from the exports file: exportfs -r See […]

Installing PHP 7.3 on Centos 7

Make sure the EPEL repository is installed: sudo yum install epel-release yum-utils sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm Enable PHP 7.3: sudo yum-config-manager –enable remi-php73 Install the PHP modules that you need: yum install php php-common php-cli php-gd php-ldap php-mbstring php-mcrypt php-mysqlnd php-pdo php-pear php-process php-soap php-xml That’s it! Source: https://linuxize.com/post/install-php-7-on-centos-7/

How to show the top 10 IP addresses in an Apache Log

Sometimes I just want to see what IP address is generating the most traffic to my site.¬† Here is the awk command to do it: awk ‘{a[$1]++} END {for (i in a) print a[i],i}’ [file] | sort -rnk1 | head -n 15 The command above will show the top 15 visitors, by IP address (replace […]

Convert p7b Certificate File to pem

Converting Your Existing Certificate To PEM Format If your certificate is not in PEM format, you can convert it to the PEM format using the following OpenSSL commands: Convert DER to PEM openssl x509 -inform der -in certificate.cer -out certificate.pem Convert P7B to PEM openssl pkcs7 -print_certs -in certificate.p7b -out certificate.pem Convert PFX to PEM […]

Install Composer into Project on Centos [Quick Reference]

Navigate to project directory curl -sS https://getcomposer.org/installer | php Create a file in same directory named¬†composer.json Then add the required packages to the json file: (example) { “require”: { “psr/log”: “1.0.0”, “phpunit/php-timer”: “1.0.7”, “symfony/event-dispatcher”: “3.0.0” } } Once the json file has been edited and saved, execute the following: php composer.phar install This will download […]

Spyderserve  PO Box 5831 Valdosta, Georgia 31603 United States