Did you look up a good quick way to have an automatically generated sitemaps on a number of websites?
If you do as I have, then what you’re looking for is probably Google Sitemap Generator .
Though the software is yet in beta stage it looks promising and could be used to automatically generated sitemaps for your websites using the access logs of each of the websites as a basis for the links to be included in your sitemap.xml and from thence to sitemap.xml.gz
I decided to explain about my hurdles and pains throughout installing and configuring Google Sitemap Generator.
Since officially there is no explanation on how to install Google Sitemap Genreator beta1 on Debian Lenny Linux andpossibly some other Debian based distributions like Ubuntu.
So here is the exactly how I installed googlesitemapgenerator
1. Download the sitemap_linux beta for x86_64 if you’re running an amd64 server architecture as I am :
– Be sure to be running with a super user, otherwise the install won’t proceed
linux-server:~# wget http://googlesitemapgenerator.googlecode.com/files/sitemap_linux-x86_64-beta1-20091231.tar.gz
2. Untar the archive
linux-server:~# tar -zxvf sitemap_linux-x86_64-beta1-20091231.tar.gz
drwxrwxrwx maoyq/eng 0 2009-12-31 01:24 sitemap-install/
-rwxrwxrwx maoyq/eng 5530 2009-12-31 01:24 sitemap-install/apache.sh
-rwxrwxrwx maoyq/eng 1218 2009-12-31 01:24 sitemap-install/autostart.sh
-rwxrwxrwx maoyq/eng 1145 2009-12-31 01:24 sitemap-install/google-sitemap-generator-ctl
...
linux-server:~# mv sitemap-install/ /usr/local/src
linux-server:~# cd /usr/local/src/sitemap-install/
3. Launch the google sitemap generator installer script
linux-server:/usr/local/src# ./install.sh
Next few you will be required to answer few trivial questions.
************************************************************
Welcome to Google Sitemap Generator (Beta)!
For more information, please visit:
http://code.google.com/p/googlesitemapgenerator/
************************************************************
PRIVACY WARNINGAny Sitemap information that you send to Google, including Sitemaps created
using the Sitemap Generator, should be consistent with commitments you make to
your users in your site’s privacy policy. If your site contains or generates
URLs that contain user information, you must filter the user information out of
the data that you send to Google. Instructions for filtering such information
can be found in the Sitemap Generator configuration instructions.
In addition, you must add language to your privacy policy substantially similar
to the following: “This site uses a tool that collects your requests for pages and passes elements of them to search engines to assist them in indexing this site. We control the configuration of the tool and are responsible for any information sent to the search engines.”
The product Terms of Service follows. …………………………
now press q
Do you agree with the Terms of Service? [N/y] y
This installation updates the Apache configuration file. To find that file,the installer needs the location of the Apache binary (httpd) or controlscript (apachectl). The binary or control script that you specify mustsupport the -V option.
What is the location of the Apache binary or control script? [/usr/sbin/apache2]/usr/sbin/apache2ctl
Can’t determine Group directive for Apache./usr/sbin/apache2ctl is not a supported Apache binary or control script.Do you want to enter a different location for the Apache binary or control script? [Y/n]
This warning is about to prevent you of properly installing the google sitemap generator on Debian Lenny or Debian Testing / Unstable Linux.
– To get around the issue and continuing with the installation, you will have to edit google sitemap generator install.sh script
Therein set or change the following variables in install.sh:
HTTPD_CONF="/etc/apache2/apache2.conf"
arg_apache_binary="/usr/sbin/apache2"
arg_apache_group="www-data"
arg_apache_conf="/etc/apache2/apache2.conf"
arg_apache_ctl="/usr/sbin/apache2ctl"
For your convenience I’ve also provided the working copy of google sitemap generator install.sh you can just download the install.sh and overwrite the original install.sh bundled with google sitemap generator beta1.
Further on start it up again and answer the required questions, from thence the install should succeed.
Afterwards be sure to enable port 8181 in your firewall, otherwise you won’t be able to access “googlesitemap generator web interfaceâ€.
Thereon to access google sitemap generator web interface and configure it for which domain names I desire to generate sitemaps as well as some other data relating the automated sitemap generations for my websites I pointed my IceWeasel browser to:
http://my-server.net:8181
Instead of a the nice login interface of google sitemap generator I faced:
Remote access is denied.
Make sure https is used if you want to access Google Sitemap Generator from remote IP. You can go to help center for how to enable https.
If you are on local machine, make sure you are not using proxy.
After some research online I was able to enable the remote access to Google Sitemap Generator web interface, I achieved that following the prescriptions in:
googlesitemapgenerator’s documentation Enable Google sitemap generator remote access
I have enabled the remote access to googlesitemapgenerator on Debian Lenny Linux via the command:
linux-server:~# /usr/local/google-sitemap-generator/bin/sitemap-daemon remote_admin enable
– Now access again the Google Sitemap Generator web interface, I’m convinced you will love it, since it’s heavily “google unifiedâ€.
I suggest you also take a look at a nice similar article to this one called Easy Google Sitemap Generation with SitemapGen
Hopefully this article is about to shed you some further light on how googlesitemapgenerator works and will help you to better understand Google’s program’s web interface.
More helpful Articles
Tags: Install Google Sitemap Generator beta1 on Debian x86_64 Lenny GNU/Linux
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100623 Iceweasel/3.5.10 (like Firefox/3.5.10)
Sorry if the post is a bit messy
View CommentView CommentMozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.04 (lucid) Firefox/3.6.12
Thanks for your very helpfull article..
When I try to run your edited install.sh script I get this message:
The following information about your Apache installation has been detected:
* Apache version: 2.2
* Apache architecture: 64 bits
* Apache root configuration file: /etc/apache2/apache2.conf
* Apache group: www-data
***************************************************************************
Is all of this information correct? If you answer No, installation will
terminate and you’ll need to restart the installation, using the necessary
command line options. [N/y]y
Google Sitemap Generator will start creating Web Sitemap files as soon as it
starts up. Do you want Google Sitemap Generator to start submitting these
files automatically? There are three options:
1. First installation. Start with automatic submission disabled.
2. First installation. Start with automatic submission enabled.
3. Reinstallation. Use the old automatic submission settings.
Specify your choice [1]:1
cp: cannot create regular file `/usr/local/google-sitemap-generator/conf//etc/apache2/apache2.conf’: No such file or directory
Failed to execute command: cp -f /tmp/gsg_tmp.DZxKGu /usr/local/google-sitemap-generator/conf//etc/apache2/apache2.conf
root@debbie:/home/kansu/Desktop/sitemap-install#
what is the reason this extra slash “//”
View CommentView CommentI have not found the reason..
And sorry for my bad English..
Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6
Hi did you used my install.sh that I put on my blog, because I think without it it won’t work?
br,
View CommentView CommentGeorgi
Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6
I just red that you execute my install.sh. Then did you execute the script from the location /usr/local/google-sitemap-generator/?
I think in my script I have assumed that you execute it from this location?
View CommentView CommentTry to execute the script from there and it should work I guess.
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/10.04 (lucid) Firefox/3.6.12
Yes, I tried your “working copy of google sitemap generator install.sh” Script.. And than I tried modificaitions on original install.sh script how was you said.. I saw same errors like that
Specify your choice [1]:1
cp: cannot create regular file `/usr/local/google-sitemap-generator/conf//etc/apache2/apache2.conf’: No such file or directory
Failed to execute command: cp -f /tmp/gsg_tmp.nGYWuw /usr/local/google-sitemap-generator/conf//etc/apache2/apache2.conf
root@debbie:/usr/local/src/sitemap-install#
When I try run the script from /usr/local/google-sitemap-generator/ folder, it fault again.. Because of from folder and destination folder are same..
Specify your choice [1]:1
cp: `./admin-console/access_error.html’ and `/usr/local/google-sitemap-generator/admin-console/access_error.html’ are the same file
View CommentView Commentcp: `./admin-console/cgi-bin’ and `/usr/local/google-sitemap-generator/admin-console/cgi-bin’ are the same file
cp: `./admin-console/favicon.ico’ and `/usr/local/google-sitemap-generator/admin-console/favicon.ico’ are the same file
cp: `./admin-console/i18n’ and `/usr/local/google-sitemap-generator/admin-console/i18n’ are the same file
cp: `./admin-console/images’ and `/usr/local/google-sitemap-generator/admin-console/images’ are the same file
cp: `./admin-console/index.html’ and `/usr/local/google-sitemap-generator/admin-console/index.html’ are the same file
cp: `./admin-console/main.html’ and `/usr/local/google-sitemap-generator/admin-console/main.html’ are the same file
cp: `./admin-console/scripts’ and `/usr/local/google-sitemap-generator/admin-console/scripts’ are the same file
cp: `./admin-console/styles’ and `/usr/local/google-sitemap-generator/admin-console/styles’ are the same file
Failed to execute command: cp -rf ./admin-console/* /usr/local/google-sitemap-generator/admin-console
root@debbie:/usr/local/google-sitemap-generator#
Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6
What is your Debian distro?
View CommentView CommentTry to completele delete the archive download a new one google-sitemap-generator archive untar and try with my script again?
It’s really odd what you paste.
Also try to mkdir -p /usr/local/google-sitemap-generator/conf//etc/apache2/ and then try again the install.sh
Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 Iceweasel/9.0.1
I figured it out. you need to create the directories:
mkdir /usr/local/google-sitemap-generator/conf
mkdir /usr/local/google-sitemap-generator/conf/etc
mkdir usr/local/google-sitemap-generator/conf/etc/apache2
then make a file called: apache2.conf by doing this:
touch /usr/local/google-sitemap-generator/conf/etc/apache2/apache2.conf
Then rerun the script and it will work.
View CommentView CommentMozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6
Hi and thx
Best
View CommentView CommentGeorgi