The Official Blog of Richard Ricketts

my personal knowledge base


How to Install Laravel 4.2 via Composter on CentOS 6.5 x86_64

Posted by on 9:31 pm in Tutorials | 0 comments

Introduction Laravel 4 is a MVC framework written in the PHP programming language. It is a fairly young framework, but has quickly risen to become one of the most popular PHP frameworks available. It also has a large vibrant community behind it. To be able to use Laravel 4 you must have a VPS running at least PHP version 5.3.7, and also have installed the MCrypt PHP extension. Laravel 4 makes extensive use of Composer, which is a dependency manager for PHP. By utilizing Composer, Laravel 4 gives you complete freedom of how to structure your...

read more

How to make every file’s permissions uploaded over SFTP to be 775

Posted by on 5:47 pm in Tutorials | 0 comments

To enable 0755 for all files uploaded by ANY user via SFTP: Subsystem sftp /usr/libexec/openssh/sftp-server -u 0002   To disable SSH for users in the “www-data” group and enable SFTP: Worked great for me. However, needed a bit of research because what you provided is an extract from docs. A specific example in my case would be to put two consecutive lines at the end of /etc/ssh/sshd_config Match Group www-data ForceCommand internal-sftp -u 2 In my case what I wanted to do is to set umask to ‘002’ (2 in decimal) if...

read more

My NGINX Cheat Sheet

Posted by on 8:51 pm in Tutorials | 0 comments

This is a template example of a dummy domain name. Domain = Enable “Virtual Host Configs” Edit this file: vi /etc/nginx/nginx.conf Add this to the bottom of the file, right before the closing bracket for http include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; Create a link file: Note: make sure you remove “.com” and just use the prefix, in this example it is just “google” ln -s /etc/nginx/sites-available/google /etc/nginx/sites-enabled/google Create configuration file:...

read more