Posts Tagged ‘ php

eTRAYz and mysql support

When i got my eTRAYz i was really looking forward to test out the webserver option to make it my main location for my webprojects. The downside was that there wasn’t any trace of a mysql server running, the good part is that it’s available but you need to activate it first :)

Install and configure mysql
  1. Get putty(portable)
  2. Login on your etrayz as root (not sysadmin! this is important) with your sysadmin password
  3. Install the MySQL Database: /usr/bin/mysql_install_db
  4. Start MySQL: /etc/init.d/mysqld restart
  5. Do a secure installation of mysql: /usr/bin/mysql_secure_installation
    This will ask you for a password for root, external access settings, if you want to remove the test database and anonymous access
  6. Add mysql to your startupscript (so that it starts if you reboot): chkconfig –add mysqld
Fixing the missing php extention
  1. Get this package and upload it to your e-TRAYz Disk
  2. Go back to putty (log back in as root if you closed it) and type: cd /
  3. Extract the file: tar xvjf /home/sysadmin/LAMPfix.tar.bz2
  4. Restart apache webserver: /etc/init.d/apache restart

If all done correctly you should now be able to use mysql with your websites :D