Hosting – Ubuntu

Install XAMPP

Change phpmyadmin root password

  • Access PHPMyadmin control panel page
  • Select “User Accounts” tab
  • Select “Edit Privileges” at root user row
  • Select “Change password” tab
    When re-access PHPMyadmin page, permission denied page is shown

  • Open “/opt/lampp/phpmyadmin/config.inc.php” file
  • Change
    [php]$cfg[‘Servers’][$i][‘auth_type’] = ‘config’;
    $cfg[‘Servers’][$i][‘user’] = ”;
    $cfg[‘Servers’][$i][‘password’] = ”;
    [/php]
    into
    [php]$cfg[‘Servers’][$i][‘auth_type’] = ‘cookie’;
    $cfg[‘Servers’][$i][‘user’] = ‘your user name’;
    $cfg[‘Servers’][$i][‘password’] = ‘your password’;
    [/php]
  • Or, change
    [php]$cfg[‘Servers’][$i][‘auth_type’] = ‘config’;[/php]
    into
    [php]$cfg[‘Servers’][$i][‘auth_type’] = ‘HTTP’;[/php]
  • Or, just provide your root password you have set here
    [php]$cfg[‘Servers’][$i][‘password’] = ‘your password’;[/php]

Change port

  • Open “/opt/lampp/etc/httpd.conf” and change like this
    [sql]Listen 8080[/sql]
  • Find “ServerName” and change “ServerName localhost:80” to
    [sql]ServerName 192.168.1.27:8080[/sql]

Install WordPress

Create WordPress database

  • Access PHPMyAdmin
  • Create your WordPress DB

First configuration

  • Access “192.168.1.27:8080/your_wordpress/”
  • Provide the following information
    [sql]
    Database Name: Your WordPress database
    User Name: Your MySQL user name
    Password: Your MySQL password
    Databse Host: 192.168.1.27
    [/sql]

Error

Error 403. You don’t have permission to access the requested directory. There is either no index

[html]sudo chmod -R 755 /opt/lampp/htdocs[/html]

Be the first to comment

Leave a Reply

Your email address will not be published.


*