How to Install and Setup LAMP on CentOS VPS

LAMP (Linux - Apache - MySQL - PHP) is a common webserver software stack for Linux. Installing the basic components is simple, just access your server via SSH and run the following commands:

# yum install httpd

# yum install php

# yum install mysql-server mysql

# service httpd start

# service mysqld start

To check if the setup was successful, access http://xx.xx.xx.xx (your server's IP address) in a browser. You should see a default Apache page. You can test PHP by creating a file in /var/www/html:
# vi /var/www/html/test.php
And adding the following content:
<?php phpinfo(); ?>
Access http://xx.xx.xx.xx/test.php in your browser. If you see information about your PHP installation displayed without any errors, you're done! 
  • 0 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

How to get a trial period VPS / VDS?

We provide a test server for a period of up to 1 day.To receive trial period VPS / VDS you need:...

How to install ionCube Loader on ISPmanager?

How to install ionCube Loader on ISPmanagerCheck OS version / x86_64 or x86$ uname -aDownload the...

Windows Server - Change the Administrator Password

Procedures for changing Administrator passwords This topic provides procedures to change...

Как получить пробный период VPS / VDS от Asvhost?

Как получить пробный период VPS / VDS? Мы предлагаем тестовый виртуальный сервер на срок от 1...

How do I add an additional IP address in Windows 2003/2008 Server?

How do I add an additional IP address in Windows 2003/2008 Server? IMPORTANT: You do not have...