Avatar of ResourcefulDB
ResourcefulDB

asked on 

Tutorial to link html, python and mysql together in linux

Hi all, i just install LAMP and everything seem to work well seperately. Now i need one simple example to link them all together. Please suggest any tutorial website.

An example will be something like a user registration form. It simply set up as username and password.

If user is new, it register the user, ask for email, username and password. then it pass to mysql by a file written in python and store the information in a table.

If user is not new, it verify the the password from the existing table and decide whether it allow user to go forward.

Please suggest anything this simple to have a taste what how these elements work together.
Thanks,
RDB
PythonMySQL ServerLinux

Avatar of undefined
Last Comment
Dave Baldwin
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

What platform are you on and have you installed Python on that platform?  And if so, have you setup a 'handler' in Apache for it?  Here is one way and I think there are others: http://www.modpython.org/python10/
Avatar of ResourcefulDB
ResourcefulDB

ASKER

not sure what platform is or a 'handler'. do we have to have these? or these platform, 'handler' will make things easier.

i have simple LAMP. working on some simple examples to get infor in and out of database by python.
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Sorry, you do not have a "simple LAMP", no one does.  You have a computer with an operating system (the platform).  Which operating system and which version?

Also, Python is rarely installed by default.  You will probably have to install it on your 'platform'.

Web servers require a 'handler' for each different kind of file.  This is normally a copy of the interpreter that will work with the web server.  Handlers make it Possible.  Without them, the webserver will simply ask you where you want to download the file to.

All of these details have to be taken care by someone to allow or make things work.
Avatar of ResourcefulDB

ASKER

well, i do not know that much. I have fedora 15 installed and have python installed, and i know it works cause i can run it in command line. I also have mysql installed and i know it work too. i can write a simple .py file to create a table, etc.

as for the handler, i do not know how to find it out. all i know is if i type the ip of my current server in another browser, it does bring up a page as expect. i have a simple html file says hello in the www/html folder and that is about it.
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo