Posts

Showing posts with the label directory

Backslashes and MinGW32

I was trying to create a directory today inside an existing directory in MinGW32 on Windows 8. When I tried executing the following command, mkdir code\project it just didn't complain about anything, but it did create a directory - not exactly the way I intended it to. It created a directory "codeproject" by simply stripping off the backslash from the command. If you still need to use backslashes only, then you should enclose the path in quotes like, mkdir "code\project" else, you could use forward slashes instead of backslashes.

Apache forbidden by SELinux and access permissions

This post is a very trivial one, but it's just that I've found myself ignoring these things time and again. Every time I need to setup a new system for development in PHP or Drupal, I've ran into almost all of these small "issues". I would always prefer to have the working copy of the code somewhere in my home directory , and maybe have it symlinked from the directory which is set as my "Document Root" in Apache. # cd /var/www/html # ln -s ~ausmarton/Public/website/drupal-7.7 drupal Assuming, everything is set up and will work, I go ahead to access the application in my browser, just to find out that all I can get is a big "Forbidden"  message. Now, this happens because, in linux, to be able to access the contents of a directory, you should have the 'x' permission. But, unfortunately, home directories are by default set not to be accessible by anyone other than the designated user. drwx------. 37 ausmarton ausmarton  4096 Aug 25 17:08 a...