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
Get a new certificate
from GoDaddy.com. They have the most
affordable certificates. You just need a standard one for
about $12 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
vegetronix.com.crt.
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.
Modify the httpd.conf file as follows:
SSLCertificateFile /usr/local/apache2/conf/vegetronix.com.crt
SSLCertificateKeyFile /usr/local/apache2/conf/www_vegetronix_com.key
SSLCertificateChainFile /usr/local/apache2/conf/gd_bundle.crt
Restart apache and SSL should now work for the server.
Daycounter
specializes in contract electronics design. Do you need some
help on your project? Contact us
to get a quote.
|