TuxThePenguin
Posts: 5
Joined: Tue May 27, 2014 7:59 pm

My LAMP Server

Mon Jun 02, 2014 7:05 pm

I have just set up a LAMP server (Linux, Apache, MySQL & PHP) on my raspberry pi, however, I have searched the internet and not found any good tutorials on how to actually build stuff with PHP and MySQL. I know a bit of HTML and Javascript, however I would like to know a good tutorial website.

Thanks in advance!

TuxThePenguin.

napos
Posts: 3
Joined: Tue Dec 25, 2012 12:30 pm
Location: Estonia
Contact: Website

Re: My LAMP Server

Thu Jun 12, 2014 8:54 am

That is a broad question - it would me much easier if you could think of an actual project/website/thing you would like to make using PHP, et al. Then just start putting it together, figuring out each step as you go. I find this approach makes learning new languages much easier.

For instance, make your own WordPress clone! Sounds difficult, but actually writing a basic blog CMS is not that tough and would get you knee-deep in PHP/MySQL quite quickly. Make a simple list of features you want the CMS to have (eg. user registration and login, writing posts, etc) and get coding.

Then you can Google for more specific how-to's, like "PHP user login with sessions" or something like that.

Just my two cents.
Project Serenity: www.serenity.ee

User avatar
Cancelor
Posts: 776
Joined: Wed Aug 28, 2013 4:09 pm
Location: UK

Re: My LAMP Server

Thu Jun 12, 2014 9:05 am

I found this tutorial as a good first step for mysql http://zetcode.com/databases/mysqltutor ... roduction/
Can't find the thread you want? Try googling : YourSearchHere site:raspberrypi.org

riklaunim
Posts: 265
Joined: Tue Apr 22, 2014 7:34 pm

Re: My LAMP Server

Thu Jun 12, 2014 5:51 pm

There won't be one tutorial or one website to learn from. Website development is a very big area of IT knowledge.

The key points are:
- learn how to write good quality code (not just any code)
- write small scripts that use what you are reading/learning about at a given time. Don't rush to write your OMG-cool full blow project. Go back to stuff you wrote before and try to code it again better using new knowledge you didn't had before
- learn from mistakes and imperfections made in previously written code :)
- seek codding advice (and code review) from experienced developers
- don't look on code from big CMS/apps (unless intended/recommended to look at :))

When I was using PHP as my primary dev language most fruitful was taking CodeIgniter framework for a spin. It's easy - has a low entry point, and in general teaches good/proven code organization etc. Later on I went to Python for more advanced apps and frameworks.

Return to “General programming discussion”