What is a LAMP server
LAMP stands for Linux, Apache, MySql and PHP. It basically means configuring Linux as a Web Server to host a PHP based Website. Most CMS come in a PHP based package. So installation is basically copying the contents of the package/unpacking the contents in the htdocs folder(or the web folder), creating the MySql user and a few basic steps.
Is there a WAMP server
Yes, there is. The Web Server in Windows Server offers a WAMP option. So do a few software which can be installed on Windows OS and used to host a PHP based website (most of them only for testing purpose). WAMP Server software will be covered in details later.
OpenSuse The initial configuration
One can permanently set up the server as a Web server and LAMP server during installation.
The other option is to change the settings after the server has been installed.
Open the YaST Control Panel and select Software Management.
Select View–Patterns. Go to Server Functions and Tick on Web And LAMP Server.
After the prompt on which packages will be installed, click next
Post installation and Initial Configuration
Once you have got the LAMP Server running, either way, PHP is activated and running by default, but you need to start the Apache Web Server and the MySql Maria Database. To do that head to YaST Control Panel and click on Services Manager. Check the Services would be disabled and Inactive.
Enable both services and Activate them.
Check Apache Web Server Running
To check if the Apache Web Server is running, go to the Web Browser and type localhost or the IP address of the server in the address bar. The Browser should display the following message.
Check mySql Running
To check if mySQL is running, open the terminal and type in the following
mysql -u root -p
When prompted for the password, enter it and the terminal will display the following.
Check PHP Running
To check PHP installed and running, open the terminal and type in the following
It should display the following message
Another way for checking PHP is create a new file in the web folder and name it phpinfo.php
Edit the file to enter the following code
<?php phpinfo() ?>
Open the Web Browser and type the following in the address
The PHP info will be displayed as follows
LAMP server is now ready for hosting your website. Remember to place appropriate permissions to the web folder and harden the mySql installation.
Working with mySql databases becomes very easy with phpMyAdmin. It is recommended to be installed with LAMP setup.