How can I convert a PFX certificate file for use with Apache on a linux server?

With OpenSSL you can convert pfx to Apache compatible format with next commands: openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.cer openssl pkcs12 -in domain.pfx -nocerts -nodes -out domain.key First command extracts public key to domain.cer. Second command extracts private key to domain.key. Update your Apache configuration file with: <VirtualHost 192.168.0.1:443> … SSLEngine on SSLCertificateFile … Read more

Apache Prefork vs Worker MPM

Prefork and worker are two type of MPM apache provides. Both have their merits and demerits. By default mpm is prefork which is thread safe. Prefork MPM uses multiple child processes with one thread each and each process handles one connection at a time. Worker MPM uses multiple child processes with many threads each. Each … Read more

www-data permissions?

sudo chown -R yourname:www-data cake then sudo chmod -R g+s cake First command changes owner and group. Second command adds s attribute which will keep new files and directories within cake having the same group permissions.

.htaccess redirect http to https

I use the following to successfully redirect all pages of my domain from http to https: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Note this will redirect using the 301 ‘permanently moved’ redirect, which will help transfer your SEO rankings. To redirect using the 302 ‘temporarily moved’ change [R=302,L]

Understanding Apache’s access log

You seem to be using the combined log format. LogFormat “%h %l %u %t \”%r\” %>s %b \”%{Referer}i\” \”%{User-agent}i\”” combined %h is the remote host (ie the client IP) %l is the identity of the user determined by identd (not usually used since not reliable) %u is the user name determined by HTTP authentication %t … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)