• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

Server Stuff

GoDaddy Password Protect Home Directory

August 2, 2011 by Webhead

Problem:

GoDaddy makes it simple to password protect a directory.  You just go to their file manager, click on a directory, click on Permissions, fill out a user and password and you’re done.  Bad thing is that you can’t password protect anything in the public root folder.

 

Solution:

Easiest solution is to password protect a subdirectory, open .htaccess, copy the code there and paste it into  your .htaccess in the root public folder and then wait a few hours.  Seriously, just wait.  I followed these steps and didn’t wait, got worried it wasn’t working and undid everything.  a few hours later I ran into this post:  http://www.besthostratings.com/articles/http-auth-php-cgi.html

With that post I felt that I could hackily get the authenticated username and password and then use PHP to determine whether the username/password is correct or not.  Then I could show or not show what I needed.  After all, this was only temporary until the client’s site went live.  I soon found out however that the first solution worked this time.  Go figure.

 

 

 

 

Filed Under: Server Stuff Tagged With: apache, goDaddy, hosting, htaccess

Setting up a Cron Job on GoDaddy

July 20, 2011 by Webhead

Set up GoDaddy Cron Job

  1. Log Into your GoDaddy.com account.
  2. Choose “My Hosting Account” from the “Hosting & Servers” menu on the top navigation bar.
  3. In the Hosting Account list, click the Open link beside the account you want to use for your website.
  4. In the Hosting Manager window, click the Cron Manager icon or “Cron Manager” menu item under content menu.
  5. Now you are on the page where you need to setup two cron jobs: one to run daily for the daily backups and one to run monthly for the monthly backups. The monthly one can run on any date of the month, just as long as the time it runs at is after the daily backup run.
  6. You need to know the following:
  7. Host Name: (Usually localhost but in case of godaddy account it will be look like mysql123.secureserver.net)
  8. Database Name: Name of the your database.
  9. User Name: User name of the database. In case of godaddy account it will be same as db name.
  10. DB Password: Database user password for authentication.
  11. Use the various drop downs to schedule your Cron job and enter the Cron Command Line you have created.
The command line should be something like:
mysqldump –opt -Q -h (hostname) –user=(user-name) –password=(password) (database-name) > (full path of backup file)
For example  if you did daily backups and wanted to keep one month’s worth (after 1 month it would be overwritten):
mysqldump –opt -Q -h some.thing.com –user=mywebdb –password=thePassword mywebdb > /home/content/b/a/b/babychep/html/backups/bak_`date +%d`.sql

Filed Under: Server Stuff Tagged With: linux

wordpress mod_rewrite exception url

June 28, 2011 by Webhead

Problem:

I added a wordpress blog to a website, but I still needed to get to a url that was on the same website and not part of wordpress.

Search terms:

wordpress mod_rewrite exception url

Solution Found:

http://stackoverflow.com/questions/6428448/rewriterule-exception-for-static-page-outside-wordpress

Use:

RewriteRule ^test.htm$ - [PT,L]

 

Filed Under: Server Stuff Tagged With: apache, htaccess, wordpress

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 3
  • Go to page 4
  • Go to page 5

Primary Sidebar

Topics

apache apple chrome cms css debug eCommerce embed filters firebug firefox git gmail goDaddy google hosting htaccess html html 5 IE crap image iPad iPhone javascript jquery linux localization macOS mac os x markdown ms sql mysql open source optimize php seo svg tinymce vs code woocommerce wordpress wpengine xss yii youtube

Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools
  • Uncategorized