Web Server Setup

Hardware: FST Servers VM-2 plan 512MB RAM 20GB hard disk Software: Nginx MySQL PHP5 WordPress Nginx Setup Symbolic link: mkdir /var/www ln -s /usr/share/nginx/www/ /var/www Create wp-multi.conf for my WordPress Multi Site setup: log_not_found off; rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last; if (!-e $request_filename) { rewrite ^(.+)$ /index.php?q=$1 last; } location / { try_files $uri $uri/ /index.php?$args; … Continue reading “Web Server Setup”

Form Input – Readonly Vs. Disabled

Sometimes when making a form, you want to display information in the form but you don’t want it editable. This is often the case for when you want to display a text box / text area that displays text that the user cannot change (Ex. editing a user profile but leaving the username untouched). I … Continue reading “Form Input – Readonly Vs. Disabled”