Hi. Another newbie here. I thank you for your work creating the product and giving it for free, but after that much work, is it that hard to make Python run by default ?
If I want to run php, I put test.php file in www directory and it works fine. I put test.py and it shows unprocessed source code, the same as it would if I opened it in a browser without AIMPS installed.
Can you just say which file to put where in order for it to work ?
I read
quick configuration guide that you posted a link to, but it doesn't seem to help properly.
What I did is put the code below in C:\Program Files\Ampps\apache\conf\httpd.conf in line 634 after << # Python
Include "C:/Program Files/Ampps/python/python.conf" >>
Quote
<VirtualHost *:80>
ServerName localhost
ServerAlias 127.0.0.1
ServerAdmin webmaster@example.com
DocumentRoot /usr/local/www/documents
<Directory /usr/local/www/documents>
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias /myapp /usr/local/www/wsgi-scripts/myapp.wsgi
<Directory /usr/local/www/wsgi-scripts>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
After that, I created the file
C:\Program Files\Ampps\www\wsgi-scripts\myapp.wsgi and put the code below in it. the code is from that "quick" configuration guide
Quote
def application(environ, start_response):
status = '200 OK'
output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
Then I restarted apache, tried to access
http://localhost/documents/test.py
http://localhost/test.py
http://localhost/wsgi-scripts/test.py
none worked, help ? ( AMPPS installation is fresh, nothing modified )