chmod Commands

Be the first to comment

Change File permissions to 644:

find . -type f -exec chmod 644 {} \;

Change Directory permissions to 755:

find . -type d -exec chmod 755 {} \;

Database Dump for a particular localhost database:

mysqldump -u username -ppassword databasename > filename.sql

Upload a database dump back into a database on the server:

mysql -u username -ppassword databasename < filename.sql

Also Read

.htaccess and SSL

One of the more confusing aspects of setting up a site that requires some pages to be SSL enabled...