Presentation is loading. Please wait.

Presentation is loading. Please wait.

LAMP Technology Linux-Apache-MySQL-PHP Presented By :- Mr..- Makandar Azaruddin A. Next.

Similar presentations


Presentation on theme: "LAMP Technology Linux-Apache-MySQL-PHP Presented By :- Mr..- Makandar Azaruddin A. Next."— Presentation transcript:

1 LAMP Technology Linux-Apache-MySQL-PHP Presented By :- Mr..- Makandar Azaruddin A. Next

2 Agenda Introduction History What is LAMP Technical Details Why is LAMP a popular choice Applying LAMP Benefits Disadvantages Future Enhancement Conclusion Next

3 Introduction of lamp Short for Linux, Apache, MySQL and PHP, an open-source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the RDBMS and PHP as the object-oriented scripting language. Perl or Python is often substituted for PHP. LAMP has become a de facto development standard for Open Source Web Developers And php developers. The combination of these technologies is used primarily to define a web server infrastructure, define a programming paradigm of developing software, and establish a software distribution package. Next

4 Web application development using the LAMP It’s the development platform that determines the efficiency of an application. The choice of a wrong platform means the resultant application won’t match the specifications of the client in their entirety. Businesses, these days, are not looking for just any application. They want an application that can improve their business processes and fast track their business growth. For this to happen, they need an application that can be easily integrated into their existing IT infrastructure and one that can be trusted to deliver a high performance. With an aim to developing the best web applications, developers have increasingly started using LAMP. LAMP is a software bundle or stack that stands for Linux, Apache, MySQL and PHP, Perl or Python. Next

5 LAMP LAMP stands for Linux-Apache-MySQL-PHP. Instead of PHP, Perl and Python are also used. This is a free and lightweight alternative to “WISA,” Windows-IIS-SQL Server-ASP (and now, ASP. Net). Next

6 Linux (platform) Next

7 Free vs. Open Source Stallman reminds that “open source” does not necessarily mean end user has any freedoms. More recently the term FOSS was coined to represent “Free and Open Source Software.” There are many open source licenses GPL (GNU Public License) requires improved programs to also remain free. GPL uses copyright to prevent others from copyrighting improvements. This is sometimes called “copy left”. Next

8 Software as a Service Economy In a free software world, there would be no software patents. No one can own software, but the original developer, if still active, would probably be respected to make important decisions. Developers can earn money by their services (extensions, modifications of existing software, fixes, and new software). Support services can be bought and sold. Next

9 GNU/Linux “GNU Project”  “GNU Operating System” GNU (GNU’s Not Unix) was to replace UNIX. Microkernel vs. Monolithic kernel. Mach microkernel was to complete the GNU OS. In 1992 Andrew Tanenbaum said “Linux is Obsolete” because Linux has a monolithic kernel. Microkernel is more secure, not as efficient. Today, monolithic kernels are still going strong. Linux could not have happened without GNU. Stallman requested that “GNU/Linux” be used. Next

10 Unix/Linux: Command Line Any Unix/Linux user has to know how to use command line and shell. One exception: Mac OS X uses FreeBSD underneath, and has GUI for everything. More recent Linux distributions (see distrowatch.com) have GUI interfaces for most/all tasks. Next

11 Unix Commands A Unix command handles one simple task (e.g. “ls” lists directory contents). Options are passed as command line arguments (as in “ls -if */*.txt”, “ls --color”). Complex tasks are composed of many simple tasks. Commands work together using pipes. Pipes redirect a program's output to another program as input. Next

12 Apache (Hosting Location) Next

13 Apache HTTP Server Apache has been the most popular web server since April 1996 when it passed NCSA. In April 1996, Apache stood at 29% (and IIS at 1.6%) of the web server market Today, Apache stands at 59% (and IIS at 31%) Next

14 Security IIS until IIS 6.0 had serious security issues. Those who migrated to Apache have not come. back to IIS, even though IIS 6.0 is much more secure. Or is it? Maybe some bugs are not reported? IIS 6.0 is complex. Next

15 Modules Most tasks in Apache are handled by modules. Some popular Apache modules: PHP mod_ssl (SSL: Secure Sockets Layer) ‏ OpenSSL FrontPage Perl Next

16 Apache Software Foundation Apache Software Foundation (ASF) is a non-profit organization that develops several high-quality open-source programs. Apache HTTP server is one such program. Jakarta project by ASF has a number of high- quality Java web development tools. Next

17 Some ASF Java Tools Derby: Java database (originally IBM Cloudscape now also called Sun Java DB) ‏. Tomcat: Servlet and Java Server Pages (JSP) Server. Ant: Portable build tool (java “make”) ‏. Struts: Web application framework for input validation and flow control (page-to-page). Lucene: Text indexing/search.. Next

18 MySQL (Back End) Next

19 MySQL MySQL is a popular, scalable, free, open-source database management system (DBMS). It runs on Windows, Linux, and many other operating systems. MySQL AB, the Swedish company that owns the codebase offers services, extra tools, and licensed versions. MySQL AB states that MySQL is used in 11 million installations in the world. We will use phpMyAdmin to access MySQL through Apache. Next

20 PHP (Web Application Front-End Tools) Next

21 PHP PHP is popular, simple and lightweight server-side scripting language used to create dynamic web pages. History: 1995: PHP 2, “Personal Home Page Tools” 1997: PHP 3, “PHP: Hypertext Processor” 2000: PHP 4 2004: PHP 5 Some sites that use PHP: Wikipedia, Yahoo, Digg, Face book Next

22 Server-Side Scripting On the server, PHP code produces HTML. Client only receives HTML. Client can't view the original PHP code. Compare with HTML: This is readable on the page Next

23 Edit-Reload-Test Quick edit-test cycle: Edit the PHP file on the server (local host if same machine) and reload the page on the client. The compilation step is not explicit, and the effects of your changes can be quickly discovered. PHP is easy to learn, and quite simple. The next few pages show some sample PHP programs. Next

24 Info.php This is always the first PHP file created. A single PHP function creates a very large HTML page detailing everything PHP knows about its execution environment. The file contents are simply: Next

25 helloworld.php PHP: Hello World PHP Says: <?php echo "Hello World!" ?> Next

26 Output : Next

27

28 colorbox.php Loops are often used to create html lists and tables with dynamic content. This example uses nested loops to create a colorful table dynamically. Note that the outer loop spans two php code sections, with an HTML section in-between: Next

29 <?php for ($red = 0; $red <= 255; $red += 17) { ?> <?php for($green = 0; $green <= 255; $green += 17) { // Print color components (red and green; blue = ff)‏ // as two-digit 0-prepended hexadecimals printf(' ', $red, $green); } ?> Next

30 Why is LAMP a popular choice Think of a scenario wherein your business is unable to manage its organizational data. You want a solution to the comprehensive data flow taking place throughout your organization and you want this solution in double quick time. In cases like these, where a business or an organization cannot dedicate a lot of time to problem solving, the LAMP is the preferred platform for development. This is because developers can build an application quickly and ensure its reliability and stability. It’s actually a win-win situation for both you and the developers. Both sides save time, and the well-defined development process ensures a highly efficient application. Next

31 APPLYING LAMP 1.Storing our data: Our data is going to be stored in the MySQL Database. One instance of MySQL can contain many databases. Since our data will be stored in MySQL it will be searchable, extendable, and accessible from many different machines or from the whole World Wide Web. 2.User Interface: Although MySQL provides a command line client that we can use to enter our data we are going to build a friendlier interface. This will be a browser-based interface and we will use PHP as the glue between the browser and the Database. 3.Programming: PHP is the glue that takes the input from the browser and adds the data to the MySQL database. For each action add, edit, or delete you would build a PHP script that takes the data from the html form converts it into a SQL query and updates the database. 4.Security: The standard method is to use the security and authentication features of the apache web server. The tool mod_auth allows for password based authentication. Next

32 Benefits of LAMP Tech The benefits of using the LAMP are primarily licensing costs. namely none, speed, ease of development and ease of maintenance. Because the number of web application developers knowledgeable in LAMP technologies is quite high. it is relatively easy to find programmers able to work on LAMP projects and because of the simplified nature of LAMP programming. projects can range from very simple to extremely complicated while relying on the same technological underpinnings. Next

33 Easy to code Ask all developers and they will tell you that coding is a breeze on LAMP. What this is does is that it ensures that coding is relatively bug free and doesn’t have to go through an exhaustive and time consuming process of fixing the bugs. Easy deployment For many developers, it’s the deployment of a web application that becomes a tricky exercise; especially when the programming language cannot be easily integrated with the server and database. But, there are no such problems with LAMP as PHP is a standard Apache module. This makes it easier to deploy LAMP web applications. Local Development Another huge advantage of using LAMP is that a developer can build an app locally and then deployed it onto the web. Next

34 Drawback of Lamp tech Apache is not the highest performing web server around, if you're looking at massive volumes of traffic it's probably not the right choice for you. MySQL's issues are well-known ranging from unusual choices of functionality through to the recent breakdown in relationship between much of the open-source community and Oracle. PHP's language issues are worthy of their own essay, covering areas such as the bolted-on object oriented programming model, the difficulty of writing sensible, reusable code in it compared to writing random looking nonsense which happens to work, along with performance and reliability issues. Overall, the LAMP (excluding Linux), is a collection of middle of the road tools which are all capable of doing a good job, but probably aren't the best of breed choices, which they were back in the late 90's when LAMP was widely adopted as the 'open-source stack'. Next

35 ANY QUESTIONS...? Next

36 Presented By :- Mr..- Makandar Azaruddin A.


Download ppt "LAMP Technology Linux-Apache-MySQL-PHP Presented By :- Mr..- Makandar Azaruddin A. Next."

Similar presentations


Ads by Google