Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Wait, there is some acronym abuse going on here. The P in LAMP is PHP. People trying to manually install a mediawiki from scratch will get very confused. LAMPy would make sense…
Very helpful. Though I got some errors changing the default python version with symlink. Maybe it’s better to just refer to the right python version in the .py script files like so #!/usr/bin/python3
They also talk about this on askubuntu
ugh, i’m pretty sure this hosed my python installation. now every single thing that needs python is just blowing up. reimage time i guess. glad i only spent a couple of hours on it.
Hey Alvin,
Thank you for posting. I found your article very readable and helpful. I have a question though, when I got to the end I didn’t see the sql output. Instead I got “It worked! Congratulations on your first Django-powered page. Next start your first app by running python manage.py startapp [appname]”
Any ideas? I double checked your instructions.
Edit: I did check the numbers table to see if index.py executed and the values were all there.
Edit 2: More tests. I can only get the current django version by using python2.7, it isn’t found with the 3.0 python command. This is probably the issue. Will try upgrading django to python 3.0
Cheers David
I run server so have error: [Sat Nov 07 11:43:55.367547 2015] [cgi:error] [pid 406] [client 108.162.222.174:12539] AH01215: (8)Exec format error: exec of ‘/var/www/python/test/index.py’ failed [Sat Nov 07 11:43:55.368001 2015] [cgi:error] [pid 406] [client 108.162.222.174:12539] End of script output before headers: index.py
You shouldn´t change this by hand
sudo rm /usr/bin/python
This is a bad practice on any linux distro, messing with cause system errors since the operating system needs the python version that is by default, if you need a different version of python for your script, consider using #!/usr/bin/env python3 in the first line of your script ( since we are using python3 this case), #!/usr/bin/env is used instead of #!/usr/bin/python because it will use the environment path for python, in case it is not in /usr/bin.
Hi, how do I make Apache run PHP and Python together? I managed to run PHP, but couldn’t find a way to run it together with Python. Appreciate your help.