Web Design

Explore the principles of web design

PHP: How to Append an XML File with PHP’s DOMDocument Object

How to “Un-Mount” (umount) a Remote SSHFS Drive on Mac OS 10.9

In my post, SSH functionality with RackSpace Cloud Sites we explore mounting a remote server using sshfs. It is common to have issues with the connection fall asleep and then not being able to un-mount the drive and subsequently not being able to re-mount the drive. After much searching I found the following solution for… Read more How to “Un-Mount” (umount) a Remote SSHFS Drive on Mac OS 10.9

SSH functionality with RackSpace Cloud Sites via SSHFS

Working with RackSpace Clouds Sites has its advantages. One drawback though, is the lack of SSH access to you sites. This makes the routine advantages of SSH inaccessible. There is a work-around though. Enter sshfs. SSHFS is a way to mount a file system over SSH. The client interacts with the remote file system via… Read more SSH functionality with RackSpace Cloud Sites via SSHFS

How To Make Directory Recursive Command Line Make Directory Recursive mkdir -p

On occasion, like when working with ZendFramework, you may want to build a directory tree. Did you know you can build a recursive directory tree? Here’s how: mkdir normaly works like this:

To build a directory and another directory inside of it you can do the following:

You can even make a grandchild… Read more How To Make Directory Recursive Command Line Make Directory Recursive mkdir -p

Where is httpd.conf file?

Looking for Apache 2 web server configuration file httpd.conf? The httpd.conf directory may be found in different directories depending on which linux flavor you are using. ( Red Hat, CentOS, Ubuntu and XAMPP, Mac OS X). httpd.conf location for each operating system: Operating System / Linux Distro httpd.conf Location CentOS 5.2 /etc/httpd/conf/httpd.conf CentOS 5.3 /etc/httpd/conf/httpd.conf… Read more Where is httpd.conf file?

How To Reset Drupal 7 Password from Within the Database

On occasion, you may be hired to take over the code on a Drupal 7 application where the previous site administrator has not provided the needed credentials to administer the site. As the new developer, you will likely have the credentials for the database. If you have access to the database there are a few… Read more How To Reset Drupal 7 Password from Within the Database

drush cc Not Showing All Options (only showing 2 options cancel and drush)

Trying to clear your Drupal site chache with drusch cc or drush cc all? Drush should out put a list in response that looks like this:

But instead, you may see something that looks like this:

Chances are you are not in the document root of the Drupal site on which you are… Read more drush cc Not Showing All Options (only showing 2 options cancel and drush)

Drupal: How to solve Warning: file_put_contents The file could not be created

Sometimes when migrating or setting up a local development site you may run into an error that looks like this:

Likely the Drupal temp directory isn’t writable. An easy fix for this is to navigate to /admin/config/media/file-system and enter the correct temporary directory or if you’re not sure what it should be, then delete… Read more Drupal: How to solve Warning: file_put_contents The file could not be created

Linux: Which command

The “which” command will reveal the absolute path of the executable file called when issuing a command. The linux which command is useful in determining if you may need to add a path to your $PATH variable in your ~/.profile file in order to be able to issue the command.

The above example echos… Read more Linux: Which command

Linux Find Command: Searching Within a Directory

The Linux find command starts looking wherever you tell it to. This Post is about how to tell it where to start looking for the files you specify when you type out the rest of the find command line. Specifying the directory is as simple as typing it immediately after the word find, like this:… Read more Linux Find Command: Searching Within a Directory