How to trigger an aerender command from a web page
Depends on which scripting languages your web server supports.

Main requirements


The language should be able to execute the application
The language should provide secure access the files on the server or a network
The language should provide methods to assembly file paths (e.g. relative to absolute paths)
The language should provide interaction methods for connecting the webpage (user input) and your application, also see: https://en.wikipedia.org/wiki/Web_application_framework




Execute aerender via python

Assuming your webserver supports python, execute the app via python's subprocess module. You only have to make sure that you can call aerender from your command line properly.

# import subprocess module to call aerender
import subprocess 

# create a aerender argument list
args = ['aerender', '-project', 'path_to_file']
process = subprocess.Popen(args, stdout=PIPE, stderr=PIPE)


In order to batch process a folder of .aep files you'll need to iterate through the files:

#import os module
import os 

# set the path to your aep folder
path = '/home/user/Desktop/aep-files'    # linux or osx
# path = r'c:\some\directory\aep-files'  # windows, the r is important
# path = 'c:/some/directory\aep-files'   # windows (alternative)

# make sure the files are .aep files
aep_file_folder = [f for f in os.listdir(path) if f.endswith('.aep')] 

# iterate through the list
for i in aep_file_folder:
    # setup correct filepath for aeps
    file_path = os.path.join(path,i)

    # call aerender with the correct arguments
    subprocess.call(['aerender', '-project', file_path])


Note: If there is no need to communicate (e.g. getting the output of aerender) you can simply use subprocess.call instead.