How to Fix a Blank White Page During SavSoftQuiz Installation

When installing SavSoftQuiz, you might get a white, blank error page. That’s because the installation documents and instructions are missing a critical component to the installation.

To fix the blank, white page, do the following:

Go to /application/config/config.php and scroll down to around line 477 and look for:

$config[‘sess_save_path’] = ‘null’;

and change it to

$config[‘sess_save_path’] = ‘public_html/quiz/application/cache’;

Important Note: my installation is in http://www.MYDOMAIN.com/quiz so if your installation is in a different folder, change the red quiz folder above to the correct one you’re using. Or if it’s in the root, remove ‘quiz/’ completely.

Save the changes and the installation should go perfectly.

I really hope they fix their documentation page.

Advertisements

How to Fix the WordPress Casino Hack

A client running WordPress received a Manual Action warning from Google about their site being hacked with injected URLS. The page mentioned on Webmaster Tools was http://domain.com/latest-casino-bonuses. The page was iframing a casino website which was making them look bad on Google. Here’s the way to remove the offending pages. Continue reading “How to Fix the WordPress Casino Hack”

How to Backup WiredTree VPS to Amazon S3 with WHM

I wanted to back up my Cpanel accounts to Amazon S3 using WHM.

Unfortunately, WHM doesn’t do this by default. I found some paid solutions, but then I stumbled on Andy’s fantastic tutorial here…

http://fiddyp.co.uk/cpanel-backups-to-amazon-s3/

There’s some minor changes you need to make. If you’re running CentOS 6 on WiredTree, you’ll need to change the Repo to:

http://s3tools.org/repo/RHEL_6/s3tools.repo

That’s about it. The setup was very easy and it’s highly recommended.

Restoring a site using this method is quick and painless in case of disaster. You just SSH back into the server and enter this command:

mkdir restore
s3cmd -r get s3://yourbucketname/2011-02-32/filename.gz restore

How to Force Start a Manual WHM Backup

Trying to force a backup to run in WHM? You need to Putty/SSH into your server as the ROOT user and run the following command:

For newer VPS servers using the latest backup:

/usr/local/cpanel/bin/backup –force

For older VPS servers using Legacy backup:

/scripts/cpbackup –force

That’s all that’s needed. The script will fire off and create backups.

Getting Joomla Permissions to Work on a Dedicated or VPS Server (LiquidWeb)

Can’t upload files using manager? Maybe you can’t change the configuration.php file or Global Configuration in the backed. If this is happening to you, permissions may be to blame. If you’ve CHMOD’d everything correctly and you’re still getting trouble, then you may have Group permission problems.

This happened to me on LiquidWeb. Basically, I was moving my site and FTP’ing Joomla files from another server but LiquidWeb was not assigning the “nobody” group to them. This made my Joomla Administrator backend untouchable. Below is the way to fix it. Continue reading “Getting Joomla Permissions to Work on a Dedicated or VPS Server (LiquidWeb)”

SEO Friendly Redirect on a Single Page in IIS

If you’re changing the internal structure of your website or simply putting up a new site with different pages (i.e. oldpage.html is becoming newpage.asp), then IIS can redirect the old pages to the new one on a page-by-page basis. And it will do it correctly using a 301 Response so search engines will update their records accordingly without penalizing you.

Instructions to Redirect Single Pages in IIS

  1.  Open up IIS on the server
  2. Open up the Website on the left pane
  3. Right Click the page you want to change on the right pane and select Properties
  4. Select “A Redirection to a URL”
  5. Check “The exact URL entered above” and “A permanent redirection to this resource”.
  6. Enter the full URL to the new website page (i.e. http://www.example.com/page.asp)
  7. Press OK. You’re done.
  8. Test the page. You may have to restart IIS or the website for changes to take effect.

How to Insert Bulk States and Sub-Categories in PHP Link Directory

The code below saved me hours. It lets you insert all the US states under a Parent category. This works with 3.2.0. Explanations of what you need to change are below.

  • If you’re inserting a sub-category, the parent-category-url needs to be the URL Title of the Parent Category. (i.e. parent is web-hosting, then it will be ‘web-hosting/alaska/’). If this is top level, then delete all instances of ‘parent-category-url/’ leaving it as ‘alaska/’.
  • Description is self-explanatory.
  • 999 will be the Parent_id. Replace yours as needed. If it’s Top level, this should be 0
  • Don’t Touch the 2! That means it’s active.
  • Last thing. VERY IMPORTANT. Did you notice I started with 3 in the first parentheses? Then it increments afterward. That’s because I had 2 categories already created in the database. If you have 5 categories already listed, you need to start from 6! If you have none, start from 1. That’s about the only tedious work you’ll need to do. Sorry….but no way around it.

The rest of the zeros should be modded by hand if you are tweaking seo on a category-by-category basis.

FYI….a free text editor like EditPad Lite does wonders for quick Find and Replace stuff like this.

Good luck. Code is below for MySQL. Continue reading “How to Insert Bulk States and Sub-Categories in PHP Link Directory”