Google Sitemap Generator Installation in a CentOS Platform
1. Download Google Site Map Generator:
http://code.google.com/p/googlesitemapgenerator/downloads/list
2. Unpack the downloaded file
$ tar –zxvf sitemap_linux-i386-beta1-20090225.tar.gz
3. Run the installation script
$ cd sitemap-install/
$ ./install.sh -t /usr/sbin/apachectl -g apache
Other options:
* -h displays help about these command line options.
* -d directory specifies a non-default installation directory.
* -a Apache-binary-filename specifies the path to the Apache binary file (httpd).
Alternatively, you can specify this value during installation.
* -c Apache-config-filename specifies the Apache root configuration file.
* -g Apache-group specifies the user group name under which Apache is running.
* -t Apache-control-filename specifies the Apache control script (apache ctl).
If you specify this value, the installer lets you choose to automatically
restart Apache at the end of the installation.
If you omit this option, you'll need to restart Apache manually.
Just simply follow the installation, everything is interactive.
4. By default you can access the sitemap generator via port 8181
e.g. http://yourserver:8181/
5. Initialy you will be denied accessing it remotely. Run this in the terminal to enable remote access.
$ /usr/local/google-sitemap-generator/bin/sitemap-daemon remote_admin enable
6. Install SSL requirements.
$ yum install mod_ssl openssl
7. Generate a self-signed certificate
Generate private key
$ openssl genrsa -out ca.key 1024
Generate CSR
$ openssl req -new -key ca.key -out ca.csr
Generate Self Signed Key
$ openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
Move the files to the correct locations
$ mv ca.crt /etc/pki/tls/certs
$ mv ca.key /etc/pki/tls/private/ca.key
$ mv ca.csr /etc/pki/tls/private/ca.csr
8. Then update the Apache SSL configuration file
$ vi +/SSLCertificateFile /etc/httpd/conf.d/ssl.conf
Comment the existing and add the following:
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
Restart the apache server
$ /etc/init.d/httpd restart
9. Edit the sitemap generator httpd configuration.
$ vi /usr/local/google-sitemap-generator/conf/httpd.conf
Add the SSL lines, or you can simply paste the code below
Listen 8181
NameVirtualHost *:8181
<VirtualHost *:8181>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
DocumentRoot "/usr/local/google-sitemap-generator/admin-console"
ScriptAlias /cgi-bin/ "/usr/local/google-sitemap-generator/admin-console/cgi-bin/"
<Directory "/usr/local/google-sitemap-generator/admin-console" >
# Allow from all
AllowOverride All
Options ExecCGI
DirectoryIndex index.html
</Directory>
</VirtualHost>
LoadModule google_sitemap_generator_module "/usr/local/google-sitemap-generator/lib/mod_sitemap.so"
10. Restart Apache and that's It.
$ /etc/init.d/httpd restart
Starting and Stopping Google Sitemap Deamon
$ /usr/local/google-sitemap-generator/bin/sitemap-daemon service start
$ /usr/local/google-sitemap-generator/bin/sitemap-daemon service stop
$ /usr/local/google-sitemap-generator/bin/sitemap-daemon service restart
http://code.google.com/p/googlesitemapgenerator/downloads/list
2. Unpack the downloaded file
$ tar –zxvf sitemap_linux-i386-beta1-20090225.tar.gz
3. Run the installation script
$ cd sitemap-install/
$ ./install.sh -t /usr/sbin/apachectl -g apache
Other options:
* -h displays help about these command line options.
* -d directory specifies a non-default installation directory.
* -a Apache-binary-filename specifies the path to the Apache binary file (httpd).
Alternatively, you can specify this value during installation.
* -c Apache-config-filename specifies the Apache root configuration file.
* -g Apache-group specifies the user group name under which Apache is running.
* -t Apache-control-filename specifies the Apache control script (apache ctl).
If you specify this value, the installer lets you choose to automatically
restart Apache at the end of the installation.
If you omit this option, you'll need to restart Apache manually.
Just simply follow the installation, everything is interactive.
4. By default you can access the sitemap generator via port 8181
e.g. http://
5. Initialy you will be denied accessing it remotely. Run this in the terminal to enable remote access.
$ /usr/local/google-sitemap-generator/bin/sitemap-daemon remote_admin enable
6. Install SSL requirements.
$ yum install mod_ssl openssl
7. Generate a self-signed certificate
Generate private key
$ openssl genrsa -out ca.key 1024
Generate CSR
$ openssl req -new -key ca.key -out ca.csr
Generate Self Signed Key
$ openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
Move the files to the correct locations
$ mv ca.crt /etc/pki/tls/certs
$ mv ca.key /etc/pki/tls/private/ca.key
$ mv ca.csr /etc/pki/tls/private/ca.csr
8. Then update the Apache SSL configuration file
$ vi +/SSLCertificateFile /etc/httpd/conf.d/ssl.conf
Comment the existing and add the following:
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
Restart the apache server
$ /etc/init.d/httpd restart
9. Edit the sitemap generator httpd configuration.
$ vi /usr/local/google-sitemap-generator/conf/httpd.conf
Add the SSL lines, or you can simply paste the code below
NameVirtualHost *:8181
<VirtualHost *:8181>
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key
DocumentRoot "/usr/local/google-sitemap-generator/admin-console"
ScriptAlias /cgi-bin/ "/usr/local/google-sitemap-generator/admin-console/cgi-bin/"
<Directory "/usr/local/google-sitemap-generator/admin-console" >
# Allow from all
AllowOverride All
Options ExecCGI
DirectoryIndex index.html
</Directory>
</VirtualHost>
LoadModule google_sitemap_generator_module "/usr/local/google-sitemap-generator/lib/mod_sitemap.so"
10. Restart Apache and that's It.
$ /etc/init.d/httpd restart
Starting and Stopping Google Sitemap Deamon
$ /usr/local/google-sitemap-generator/bin/sitemap-daemon service start
$ /usr/local/google-sitemap-generator/bin/sitemap-daemon service stop
$ /usr/local/google-sitemap-generator/bin/sitemap-daemon service restart
This comment has been removed by the author.
ReplyDeletedoes it compatible with centos 6 ?
ReplyDelete