Compiling After Install LAMP ServerCompiling After Install LAMP Server

Compiling After Install LAMP Server

For a stable & robust web-server, LAMP is the best combination feasible. the LAMP technique comprises of: Linux, Apache, MySQL & PHP; Linux is the base or the Operating technique program on which the others will run; Apache is the actual web-server software, MySQL is the Structured Query Language or the database software, PHP is the Hypertext Preprocessor for dynamic web-pages.

All the above program products are open-source. Meaning, you are free to make use of them without having to worry about copyright infringement. the only restriction is you are not allowed to change the source code of the program. A word about the hardware requirements for the LAMP; people have been known to run LAMP successfully on 128MB of ram on a 800MHz CPU, using a 4GB Hard Disk. Such low configurations may not be commercially obtainable any more, so they can safely say use anything obtainable as long as it is robust, since it is the life of a server what they are putting in danger.

The first step will involve installing the OS or the Operating Software. This is as easy as sticking the live-CD/DVD of the OS into the drive and booting up the PC. you will see the OS running from the CD/DVD and asking you if you want to install on the HD or the hard disk. say yes, and the wish is fulfilled. well, if you need to do something special like partitioning your HD, etc., you may need to explore first.

Before we start installing and setting up the others, we need to set up the OS properly. Since we are going to make changes to the basic OS, we need to assume the status of the Super-user; in other words, ‘login as root’, and remain so until all the installation is done. if you do not have access to the hardware from a keyboard, or you are doing a remote login, use Secure Shell, and not telnet; not to compromise the security of the server. Depending on the Linux distro you are using, these names may differ somewhat.

Again, depending on the Linux distro you are using, you may decide to install the standard versions of Apache, PHP and MySQL, in which case, there is no need to uninstall anything. on the other hand, if you are very particular or need to tweak the software to extract maximum performance, you may decide to install after compiling the source code, in which case, you will need to uninstall the standard versions which are given with the OS, download the correct source code versions suitable to your OS, and begin compiling. Whatever course you choose, you will need the C++ compiler. Check for and install if necessary, gcc and gcc-c++.

The next step is to check and if necessary, download the Apache, PHP and MySQL from the repository of your distro and install. In case you are going to install after compiling, get the source code for Apache, PHP and MySQL, unpack and use the standard ‘configure’ and ‘make’ compiling procedures, to install. execute the install procedure sequentially, starting with MySQL, then Apache and finish with PHP.

0 comments:

Posting Komentar