Installing Apache, PHP and MySQL

If you are planning to use Mythweb, you'll need apache, php and mysql.

To install apache and php with some modules

yum install httpd php php-common php-pear php-pdo php-mysql php-pgsql php-pecl-memcache php-gd php-mbstring php-mcrypt php-xml

Set apache to start automatically:

chkconfig httpd on

Now you can edit the apache configuration file and set the server name, to do so, open the apache configuration file:

vi /etc/httpd/conf/httpd.conf

Look for ServerName in that file. In case it is commented, uncomment it and set a name and a port, for example:

ServerName mythbox-master.omcentre.com.au:80

Now start the server:

service httpd start

To install MySQL

yum install mysql mysql-server

To start mysql and make it start automatically everytime the computer boots:

chkconfig mysqld on
service mysqld start

Now check that networking is enabled. Run:

netstat -tap

You should see a line like this:

tcp 0 0 *:mysql *:* LISTEN 2721/mysqld

Now, assign a password for the root user in MySQL, and replace the user root with the user mysql. I'm using the password mythtv.

mysqladmin -h localhost -u root password mythtv
mysql -uroot -pmythtv mysql

Once you are in the mysql console do the following:

mysql> UPDATE user SET user='mythtv' WHERE user='root';
mysql> quit

Install phpMyAdmin

If you want to have access and edit your mysql databases easily, I would recommend you install phpMyAdmin

To install it:

yum install phpMyAdmin

Then edit the configuration file:

vi /etc/phpMyAdmin/config.inc.php

If you are using user mysql and password mysql, these are the parameters

$cfg['Servers'][$i]['controluser']   = 'mythtv';          // MySQL control user settings
                                                    // (this user must have read-only
$cfg['Servers'][$i]['controlpass']   = 'mythtv';          // access to the "mysql/user"
                                                    // and "mysql/db" tables).
                                                    // The controluser is also
                                                    // used for all relational
                                                    // features (pmadb)
$cfg['Servers'][$i]['auth_type']     = 'http';      // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'mythtv';          // MySQL user
$cfg['Servers'][$i]['password']      = 'mythtv';          // MySQL password (only needed

Continue Shoppping View Cart
Continue Shoppping View Wishlist