20 thoughts on “Setting up a VPS for web hosting. How to Install LAMP, Apache, Mysql, PHP, phpmyadmin

  1. i keep getting error apache cant restart this is strange iam already turn off nginx too. i use apache just because nginx not support .htaccess and i have app that heavily depends on it.

  2. STEP BY STEP INSTALING PHP 7.3.6 + APACHE 2.4 + MYSQL + PHPMYADMIN:

    1 yum install perl -y

    2 yum -y install epel-release

    3 sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY*

    4 yum -y install mariadb-server mariadb

    5 sudo yum -y install mariadb-server mariadb

    6 systemctl start mariadb.service

    7 systemctl enable mariadb.service

    8 sudo mysql_secure_installation

    9 sudo yum -y install httpd

    10 yum -y install httpd

    11 sudo yum -y install httpd

    12 systemctl start httpd.service

    13 systemctl enable httpd.service

    14 firewall-cmd –permanent –zone=public –add-service=http

    15 firewall-cmd –permanent –zone=public –add-service=https

    16 firewall-cmd –reload

    17 yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y

    18 yum install -y yum-utils

    19 yum-config-manager –disable remi-php54

    20 yum-config-manager –enable remi-php73

    21 yum install php -y

    22 php -v

    23 systemctl restart httpd.service

    24 cd /var/www

    25 sudo chmod a+w html

    26 sudo nano html/info.php

    27
    PASTE AND SAVE:

    <?php

    phpinfo();

    ?>

    28 yum search php

    29 sudo yum -y install php-mysql

    30 sudo yum -y install php-gd php ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curll curll-devel

    31 systemctl restart httpd.service

    32 sudo yum install phpMyAdmin

    33 sudo nano /etc/httpd/conf.d/phpMyAdmin.conf

    34 sudo nano /etc/phpMyAdmin/config.inc.php

    REPLACE THIS LINE (REPLACE COOKIE WITH HTTP):

    $cfg['servers'][$i]['auth_type'] = 'http';

    35 nano /etc/httpd/conf/httpd.conf

    CHANGE INDEX PAGE AS PHP EXTENSION

    <IfModule dir_module>

    DirectoryIndex index.php

    </IfModule>

    36 systemctl restart httpd.service

  3. Man. What a reason for video if you barely taking breath while speaking? What commands did you use? W/O commands video is useless, IMHO. Could you post a list?

  4. Well-Web net hosting support team are second to none! They've helped me on a number of occasions now from installing WordPress to adding additional domains to my hosting plan. VPS from 8$. Have many random subnet & FREE management VPS! I always receive a very quick resolution, usually less than 10 minutes. Thanks to everyone at Well-Web net, it's really appreciated and is the kind of service that will keep me as a customer for a long time!

  5. To automate the process there is a package with all the packages for a lamp server. Just apt-get install lamp-server^ instead of apache2 it will ask for passwords to use for your databases. When it is finished you just have to install phpmyadmin.

  6. Well-Web hosting support team are second to none! They've helped me on a number of occasions now from installing WordPress to adding additional domains to my hosting plan. VPS from 8$. FREE management! I always receive a very quick resolution, usually less than 10 minutes. Thanks to everyone at Well-Web net, it's really appreciated and is the kind of service that will keep me as a customer for a long time!

  7. What should i do?
    E: Unable to locate package libapache2-mod-auth-mysql
    E: Package 'php5-mysql' has no installation candidate

  8. can I use my static ip instead? what is a free way of getting that vps ip you need in the beginning of the video please help thanks

  9. hello
    I did what you sad.. but problem is with filezilla conection. That's mean ECONNREFUSED. Any solutions ?

Leave a Reply

Your email address will not be published. Required fields are marked *