Stencil Thickness
Electronics, PCB Design and PCB Layout Daycounter, Inc.
Engineering Services

Custom Firmware, Electronics Design, and PCB Layout

                 
 

Water Level Sensor







 

Server Management


vdiskuse - lists out memory usage of all directories.  Useful for finding bloated log files

getback - retrieve backed up files.

var/logs has a ton of useless log files that need to be periodically deleted.

Setting up a new server for PHP, and mysql-

  • run vinstall of mysql4
  • run vinstall of php items
  • in the apche conf/httpd.conf file turn on the PHP module
  • Run a phpinfo.phtml script to find out the directory of the php.ini file
  • modify the php.ini file such that mysql is enabled.
  • use the restart_apache command.

To restart mysql from su: 

/usr/local/etc/rc.d/mysql-server restart

To list all processes use:  ps -aux

To kill mysql or another process and restart -

  • run top to list processes. 
  • "k" for kill to kill the appropriate pid.
  • ctrl-c to quit.

To fix the time on the server:

vinstall timezone  with option MST

SSL Configuration

GO-DADDY IS EXPENSIVE - try shopping arround. 

The vegetronix certificat will expire on 1/31/2018.

Get a new certificate from GoDaddy.com.  They have the most affordable certificates.  You just need a standard one for about $69 per year.  Get the maximum life span for the certificate, since they are a pain to install.  

You need to provide them with a csr file that you created using openssl on your server.  Go to /usr/bin and run the following script:

openssl req -new -newkey rsa:2048 -nodes -out www_vegetronix_com.csr -keyout www_vegetronix_com.key -subj "/C=US/ST=Utah/L=Draper/O=Vegetronix Inc. /OU=Sales/CN=www.vegetronix.com"

The documentation on the Go Daddy site was all wrong in regards to the above script.  I spent an hour on the tech support line, before he was able to get the correct script above.  

This creates two files called: www_vegetronix_com.key, and www_vegetronix_com.csr

The csr is then pasted into their certificate manager and submitted.  They processes it which takes about 10 minutes or less, and they send two files: gd_bundle.crt, and  484dd350e6573.crt.  (or some other randomly named file.)

Place these two files (gd_bundle.crt, and  vegetronix.com.crt that they create along with your key file www_vegetronix_com.key into your appache conf directory.  These are text files so FFT using ascii mode.

Modify the httpd.conf file as follows:
SSLCertificateFile /usr/local/apache2/conf484dd350e6573.crt
SSLCertificateKeyFile /usr/local/apache2/conf/www_vegetronix_com.key
SSLCertificateChainFile /usr/local/apache2/confgd_bundle-g2-g1.crt

Restart apache and SSL should now work for the server.  You can test by opening a page with https://www.vegetronix.com and you should see the green pad lock in the address bar.

NOTE.  SSH-1 was compromised as protocol, so SSH-2 should now be used to generate certificates.


 

Daycounter specializes in contract electronics design.  Do you need some help on your project?  Contact us to get a quote. 

 

 






Soil Moisture Sensor Probe