Items filtered by date: December 2015

Thursday, 15 October 2009 00:00

why zen cart does not index on search engines

Firstly if your site is only a couple of days old to a few weeks this tutorial might not work.

My zencart shop had been open for 8 months and was still not listed in the search engines. This was despite have an adwords campaign and submitting a site map. A few backlinks but not many, it still should of responded to site:mywebsite.com. I had no listings at all in any search engines.

I pulled may hair out trying to fix this, i was using 1.38 with a few standard mods.

Cause:

  1. Session ID's
  2. NoIndex, NoFollow present on every page.

Why does this effect my search results:

Session IDs

In the case of zencart every time you visit the shop you get a session ID, this is presented via the url. This url is unique for every visit. zencart recognises a spider/bot when it visits and so does not issue a session ID to the crawler. In my shop this was not working and every time a spider/bot visited it was assigned a url with a session ID, therefore the spider/bot would never see the same page twice hurting SERPS (search engine placement).

For my site i discovered that on yahoo / alltheweb / altavista I had 14,000 links to my site in the search engines yet no search results pointing to my site, I looked more closely at these results and noticed the url was the same in everyone except the end bit 'zenid=......' These  14,000 links had caused my site to have an extremely low rating which prevented the homepage coming up the the search results. 14,000 bad pages = bad site. As far as the search engines knew my site was a spam site because they were all individual and were not verified, ie read twice. I did check this but the shop was not blacklisted, the engines would just put it down as a 'bad' site.

NoIndex, NoFollow

This is simple, this tells google, yahoo etc on every page this command is present not to index the page at all, so zencart says 'dont index this page', i do not want you too', so they dont.

Conclusions

These two errors combined will completely prevent the search engines displaying your site, even if you have submitted a sitemap and the search engines regulary visit your site. The searchbots and the computer programs that display your results in a search engine are completely different and use different criteria.

Solution (after months of thinking)

It turns out that zencart 1.38 has 2 bugs in it causing it to add NoIndex, NoFollow to every page, the session IDs added to every page is caused by user error, this is most likely to occur when you transplant a site. To fix these problems read below, not all issues might be present.

Session ID

  1. Goto into the admin section, and set session path correctely (fix)
  2. Check Cache folder has correct permissions, either 755 or 777 (which ever is correct for you server).
  3. If the session cache is not set to a real directory (or writable directory) all spiders/bots will recieve a session id. This Tool corrects the Cache folder location. This has to be done whenever the shop is moved.
  4. Make sure Spiders do not recieve session id. By default. it is. but i turned it off and on again anyway.

    'Sessions -> Prevent Spider Sessions' is set to True in Admin .

NoIndex, NoFollow Always Present

  1. This bug is where NoIndex, NoFollow is added when display categories on the front page is set to true. (link)

    Admin->Configuration->Layout Settings->Categories - Always Show on Main Page = 1
     
  2. There might be an error present in the html_header.php of the template where v1.38 puts NoIndex, NoFollow on every page because of bad coding.

    An edit of the theme (html_header.php) is required to allow indexing, by removing some 'line comment out' things. (fix response #66)

Repairing the Damage

To get rid of those unwanted links in search engines add the following to your robots.txt

User-agent:*
Disallow: *zenid=*
Disallow: /*zenid=*

when these are all done your site could get listed in the search engines within 6 hours but more than likely a couple of days. mine took six hours to get into yahoo, 12 into bing and then i was in the google cache within 24 hours, google search results about 36hours.

I have put together this information because i know i am not the only one and the solution is tricky if you are not an experienced web developer (or even if you are).

shoulders
http://www.zen-cart.com/forum/showthread.php?t=134865

Published in CMS
Thursday, 15 October 2009 00:00

Turn On PHP Debugging Messages

Debugging messages are a powerful tool; however, many production systems (and test systems for that matter) have them disabled by default. If your PHP script is crashing horribly and you are not getting any runtime error messages, it is likely that this is the case for you.

You can initiate PHP debugging messages for the server by changing the display_errors and error_level settings in php.ini. Unfortunately, this is not the best situation in a production system. Luckily, you can enable error reporting on a page by page basis by simply adding the following lines to the top of your PHP script: {geshibot language="php"}

Additionally, to assist with debugging MySQL errors in PHP scripts, you can tack on an additional die clause to your MySQL queries. The following lines will cause your script to halt when a MySQL query fails, and report the error message:

{code class="brush: php"}mysql_query($query, $link_id) or die('
MySQL Error: ' .mysql_error(). '
');{/code}

If you script is not producing any error messages, please try these two methods before posting your question in the board. Remember, the community experts can only be as helpful as you are, and they can only work with what you give them.

 

Published in PHP
Wednesday, 14 October 2009 19:03

Internet Explorer fails to install

  • check the log files
  • if the installation process is halted almost immediatley after the 'stop/failed' event this is most likely registry permissions and will be shown in the log file.
Published in Windows XP
Wednesday, 14 October 2009 18:53

pingback server list

http://api.moreover.com/RPC2
http://api.my.yahoo.com/RPC2
http://blog.with2.net/ping.php/
http://blogpeople.net/servlet/weblogUpdates
http://blogsearch.google.ch/ping/RPC2
http://blogsearch.google.cl/ping/RPC2
http://blogsearch.google.com.ar/ping/RPC2
http://blogsearch.google.com.co/ping/RPC2
http://blogsearch.google.com/ping/RPC2
http://blogsearch.google.es/ping/RPC2
http://hamham.info/blog/xmlrpc/
http://hamo-search.com/ping.php
http://ping.blogoon.net/
http://ping.blogranking.net/
http://ping.fc2.com/
http://ping.feedburner.com/
http://ping.namaan.net/rpc
http://ping.namaan.net/rpc/
http://ping.syndic8.com/xmlrpc.php
http://rpc.blogrolling.com/pinger/
http://rpc.pingomatic.com/
http://rpc.reader.livedoor.com/ping
http://rpc.technorati.com/rpc/ping
http://rpc.twingly.com/
http://rpc.weblogs.com/RPC2
http://services.newsgator.com/ngws/xmlrpcping.aspx
http://topicexchange.com/RPC2
http://wasalive.com/ping/
http://www.blogpeople.net/servlet/weblogUpdates
http://www.syndic8.com/xmlrpc.php
http://xping.pubsub.com/ping

 


http://1470.net/api/ping
http://a2b.cc/setloc/bp.a2b
http://api.feedster.com/ping
http://api.moreover.com/RPC2
http://api.moreover.com/ping
http://api.my.yahoo.com/RPC2
http://api.my.yahoo.com/rss/ping
http://bitacoles.net/ping.php
http://bitacoras.net/ping
http://blogdb.jp/xmlrpc
http://blogdigger.com/RPC2
http://blogmatcher.com/u.php
http://blogoole.com/ping
http://blogoon.net/ping
http://blogpeople.net/servlet/weblogUpdates
http://blogshares.com/rpc.php
http://blogsnow.com/ping
http://blogstreet.com/xrbin/xmlrpc.cgi
http://blog.goo.ne.jp/XMLRPC
http://bulkfeeds.net/rpc
http://coreblog.org/ping
http://lasermemory.com/lsrpc
http://mod-pubsub.org/kn_apps/blogchatter/ping.php
http://newsisfree.com/xmlrpctest.php
http://ping.amagle.com
http://ping.bitacoras.com
http://ping.blo.gs
http://ping.bloggers.jp/rpc
http://ping.blogmura.jp/rpc
http://ping.cocolog-nifty.com/xmlrpc
http://ping.exblog.jp/xmlrpc
http://ping.feedburner.com
http://ping.myblog.jp
http://ping.rootblog.com/rpc.php
http://ping.syndic8.com/xmlrpc.php
http://ping.weblogalot.com/rpc.php
http://ping.weblogs.se
http://pingoat.com/goat/RPC2
http://rcs.datashed.net/RPC2
http://rpc.blogbuzzmachine.com/RPC2
http://rpc.blogrolling.com/pinger
http://rpc.pingomatic.com/
http://rpc.technorati.com/rpc/ping
http://rpc.weblogs.com/RPC2
http://snipsnap.org/RPC2
http://trackback.bakeinu.jp/bakeping.php
http://topicexchange.com/RPC2
http://weblogues.com/RPC
http://xping.pubsub.com/ping
http://xmlrpc.blogg.de
http://bblog.com/ping.php
http://blogbot.dk/io/xml-rpc.php
http://catapings.com/ping.php
http://effbot.org/rpc/ping.cgi
http://thingamablog.sourceforge.net/ping.php
http://blogsearch.google.com/pingRPC2
http://rpc.newsgator.com
http://newsisfree.com/RPCCloud
http://mod-pubsub.org/ping.php
http://pingqueue.com/rpc
http://rpc.britblog.com
http://services.newsgator.com/ngws/xmlrpcping.aspx
http://holycowdude.com/rpc/ping
http://wasalive.com/ping
http://blogsearch.google.com/pingRPC2nd
http://api.my.yahoo.com/rpc2
http://pinger.blogflux.com/rpc
http://rpc.icerocket.com:10080
http://blog.goo.ne.jp/xmlrpc
http://pingoat.com/goat/rpc2
http://rcs.datashed.net/rpc2
http://rpc.blogbuzzmachine.com/rpc2
http://newsisfree.com/rpccloud
http://queerfilter.com/ping
http://weblogues.com/rpc
http://api.mw.net.tw/RPC2
http://api.my.yahoo.com/ping
http://blogsdominicanos.com/ping
http://blogsearch.google.co.uk/pingRPC2
http://blogsearch.google.us/pingRPC2
http://feedsky.com/api/RPC2
http://fgiasson.com/pings/ping.php
http://focuslook.com/ping.php
http://imblogs.net/ping
http://ping.blogg.de
http://ping.blogs.yandex.ru/RPC2
http://ping.fakapster.com/rpc
http://ping.wordblog.de
http://pinger.onejavastreet.com
http://rpc.tailrank.com/feedburner/RPC2
http://rpc.wpkeys.com
http://rssfeeds.com/suggest_wizzard.php
http://rssfwd.com/xmlrpc/api
http://signup.alerts.msn.com/alerts-PREP/submitPingExtended.doz
http://weblogalot.com/ping
http://xianguo.com/xmlrpc/ping.php
http://zhuaxia.com/rpc/server.php
http://focuslook.com/ping
http://www.feedburner.com/fb/a/ping
http://api.feedster.com/ping.php
http://blogsearch.google.com/ping/RPC2
http://godesigngroup.com/blog/feed/
http://mod-pubsub.org/kn_apps/blogchatt
http://rpc.pingomatic.com
http://www.a2b.cc/setloc/bp.a2b
http://www.bitacoles.net/ping.php
http://www.blogdigger.com/RPC2
http://www.blogoole.com/ping
http://www.blogoon.net/ping
http://www.blogpeople.net/servlet/weblogUpdates
http://www.blogroots.com/tb_populi.blog?id=1
http://www.blogshares.com/rpc.php
http://www.blogstreet.com/xrbin/xmlrpc.cgi
http://www.focuslook.com/ping.php?url=http://www.yourblog.com
http://www.godesigngroup.com
http://www.holycowdude.com/rpc/ping
http://www.imblogs.net/ping
http://www.lasermemory.com/lsrpc
http://www.mod-pubsub.org/kn_apps/blogchatter/ping.php
http://www.newsisfree.com/RPCCloud
http://www.newsisfree.com/xmlrpctest.php
http://www.popdex.com/addsite.php
http://www.snipsnap.org/RPC2
http://www.weblogues.com/RPC
https://phobos.apple.com/WebObjects/MZFinance.woa/wa/pingPodcast

http://ping.blogs.yandex.ru/RPC2
http://blogsearch.google.com.ru/ping/RPC2

Published in Windows Family

Vista guests require the E1000 virtual NIC. Edit your vmx file and change/add the line

ethernet0.virtualDev = "e1000".

Published in Windows Family

In VMWare the option to mount an IDE physical disk as a virtual disk is not obvious and not directely supported. All physical disks are mounted as SCSI. This is very unhelpful. Below is a work around to allow you to add an IDE physical drive as a virtual drive in VMWare.


  • Create you virtual machine as normal
  • mount the physical disk as normal (SCSI will be selected)
  • Close and save the virtual machine
  • edit the .vmdk file for the raw disk and changed ddb.adapterType to "ide".
  • in .vmx file replace all occurences of "scsi0:0" with "ide0:0"

The physical drive can now be accessed from within VMWare as an ide drive.

Published in Virtual Machines
Wednesday, 14 October 2009 18:31

XP Installation hangs at 34 minutes

You want to install XP professional and suddenly you realize that it freezes up at the mention of 34 minutes remaining! You try all your efforts to make it running but nothing seems to be working to your dismay. You try checking your RAM, checking for any bad sectors in your hard drive, even your motherboard (as I have done) but cannot make a conclusion as to what’s the answer to your woes.

So what is the solution to the defamed 34 minute XP installation hang problem?
 


Its as simple as deleting a single file which caused the installation to freeze.

  • Let the XP hang at 34 minutes remaining for the first time
  • Remove the CD from the CD-ROM
  • Reboot the PC by pressing the hardware reset button
  • Don't enter the CD when the installation asks for it
  • Open the DOS prompt (Shift + F10)
  • Goto C:\Windows
    • Type setupapi.log
    • Hit enter
  • The setupapi.log file will open in notepad
    • Scroll to the very last few lines in the file and search for the .inf
    • You will notice that in the last few moments the installation created a file with the extension .inf before dying out (in my case it was the faulty modem for which XP created the file mdmcxpt.inf).
    • It means that the device mentioned in the last few lines is faulty and you have to make the XP installation skip it to complete successfully.
    • Close the notepad
  • Goto the folder C:\Windows\inf in command prompt
    • Browse through the files to find the .inf belonging to the faulty device.
    • Straight away delete the inf file (eg: del mdmcxpt.inf) or move it somewhere safe for later (not the /inf/ folder)
  • Now put in the XP installation CD and Continue the installation

It will now not put in the drivers related to the faulty device and so it wont freeze this time !!
 

Published in Windows XP
  • When i choose tools -> folder options -> view, then
  • I checked "Show hidden files and folders " radio box,
  • then i clicked the Apply button and then Ok.
  • When I open the same window again it shows that "Show hidden files and folders"radio box is unchecked.

You might also experience this problem but instead of descriptions you see a load of ??????

These issues are usually caused by active viruses. The viruses use this method to prevent removal.


To prevent the issue arising again a full spyware and virus scan is needed to remove the offender.

Run the registry code below and it will allow you to show hidden files again.

 

{code class="brush: powershell"}Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden] "Text"="@shell32.dll,-30499" "Type"="group" "Bitmap"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\ 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,53,00,\ 48,00,45,00,4c,00,4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,34,00,00,\ 00 "HelpID"="shell.hlp#51131" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\NOHIDDEN] "RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced" "Text"="@shell32.dll,-30501" "Type"="radio" "CheckedValue"=dword:00000002 "ValueName"="Hidden" "DefaultValue"=dword:00000002 "HKeyRoot"=dword:80000001 "HelpID"="shell.hlp#51104" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\Hidden\SHOWALL] "RegPath"="Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced" "Text"="@shell32.dll,-30500" "Type"="radio" "CheckedValue"=dword:00000001 "ValueName"="Hidden" "DefaultValue"=dword:00000002 "HKeyRoot"=dword:80000001 "HelpID"="shell.hlp#51105" {/code}
Published in Windows Family

Every time I click on a folder and sometimes even icons on the desktop, windows installer starts and then tries to install Symantec Antivirus, which isn't even on my system anymore. If I click "cancel", my normal right click menu of choices appears.


Download the MSI clean up utility from HERE
Double-click the file to install the utility.

On the Windows taskbar, click Start > Programs > Windows Installer CleanUp Utility to run the utility

For each entry that begins with "CC," "cc," "Norton," "Symantec," "Sym," or "MSRedist," click the entry, and then click Remove.

Reboot - done

Published in Windows XP
Wednesday, 14 October 2009 16:41

How to install Mod_Security on XAMMP

Original Article Here

Apache Mod_Security and XAMPP

終於安裝了mod security!

In order to secure my Apache using XAMPP, I have install the mod_security and disable some php function:

Install mod security on windows:


1. download mod_security2.so at http://www.apachelounge.com/ (a binary package)
2. unzip the package and you will get mod_security2.so and a libxml2.dll
3. read the readme.txt
4. create a folder .../apache2/modules/mod_security2
5. and copy mod_security2.so and libxml2.dll to this folder
6. Install the Visual C++ 2008 Redistributable Package (Since this binary is make my VC++2008)
7. At httpd.conf:
- LoadModule security2_module modules/mod_security2/mod_security2.so
- LoadModule unique_id_module modules/mod_unique_id.so
8. You can using Include directive to include the mod_security configure file,
(you can take a look on this website.)

but I put all the things under httpd.conf , my configure file is found from the package downloaded - mod_security2.conf-minimal
Like this (under httpd.conf):

### Start Mod_Security ###
LoadModule security2_module modules/mod_security2/mod_security2.so


# Basic configuration options
SecRuleEngine On
SecRequestBodyAccess On
SecResponseBodyAccess Off

# Handling of file uploads
# TODO Choose a folder private to Apache.
# SecUploadDir /opt/apache-frontend/tmp/
SecUploadKeepFiles Off
..........
..........


9. Start and stop the Apache and look at the phpinfo and see it loaded or not.


Disable PHP function:

1. go to php.ini (xampp located at c:\xammp\apache\bin\ )and do the following:
disable_functions = "phpinfo,dir,readfile,shell_exec,exec,virtual,passthru,
proc_close,proc_get_status,proc_open,proc_terminate,system"

2. Besides, open safe mode

3. open_basedir = C:\ foo\bar

Published in Windows XP
Page 88 of 96