I am trying to make a Google SiteMap generator. Here are some requirements for that:
1) Can I execute commands on the server?
2) How do I execute a .py file without SSH?
3) What is the directory path to my site?
- [SIZE=-1]You must be able to connect to and run scripts on your web server. [/SIZE]
- [SIZE=-1]Your web server must have Python 2.2 or later installed. [/SIZE]
- [SIZE=-1]You must know the command that launches Python. (Generally, this is python, but may vary by installation. For instance, if the web server has two versions of Python installed, the earlier version may be invoked by the command python and the later version may be invoked by the command python2.) [/SIZE]
- [SIZE=-1]You must know the directory path to your site. If your web server hosts one site, this may be a path such as var/www/html. If you have a virtual server that hosts multiple sites, this may be a path such as home/virtual/site1/fst/var/www/html.
This is what I need to do:
In order to run the Sitemap Generator, you’ll need to connect to your web server. Once you have copied the files to your web server, you'll need to run the Sitemap Generator script. Connect to your web server and run the following command (replace <path/config.xml> with the path to and filename of your configuration file; if you have uploaded this file to the same location as the Python script, you can exclude the path):
python sitemap_gen.py --config=<path/config.xml>
[/SIZE]
1) Can I execute commands on the server?
2) How do I execute a .py file without SSH?
3) What is the directory path to my site?
Last edited: