Jump to content


[Tutorial - Debian + Ubuntu] Apache + PHP + Mysql + phpMyAdmin

phpmyadmin Mysql PHP Apache Debian Ubuntu phpMyAdmin

  • Please log in to reply
4 replies to this topic

#1 mlody.1039



  • Members
  • PipPip
  • 17 posts
  • LocationWarsaw / Carlow

Posted 05 August 2014 - 05:15 PM

Greetings HaptHost!



Today I will show you how to install Apache , PHP , Mysql , phpMyAdmin on Debian and Ubuntu



*Node if you using Ununtu you need to add


Before apt-get



First we do update of our OS

apt-get update
apt-get upgrade

After we will install our Mysql Server


For Debian 6 and old Ubuntu Distro

apt-get install mysql-server-5.0

For Debian 7 and latest Ubuntu

apt-get install mysql-server-5.5

after Mysql is done its time to install apache

apt-get install apache2

*Note all files will be in /var/www that where you upload your website ;)


Now is time to install phpmyadmin

apt-get install phpmyadmin

*Note pick Apache at installation


After we need set /phpmyadmin

cp /etc/phpmyadmin/apache.conf /etc/apache2/sites-available/phpmyadmin


a2ensite phpmyadmin

after we reset our Apache

/etc/init.d/apache2 restart

and now you are ready to host your Website :)


note if you missing any php you can easy add 


for example curl is missing all you do is

**** Example****

apt-get install php-curl

**** Example****


and that all


If you have any questions or errors fell free to comment below.



Best Regards


  • danilogio and cloudfastservers like this

#2 podarok66



  • Members
  • Pip
  • 1 posts

Posted 13 August 2014 - 07:21 PM

Установленная Debian 7. Я так и сделал .

кв-получить установку MySQL-сервер-5.5

Поступила в ответ

[СБОЙ] Начиная сервер баз данных MySQL: туздЫ. . . . . . . . . . . . . . не удалось!
ссылаться-rc.d: сценария, MySQL, акция "начать" не удалось.
Dpkg: обработка ошибок MySQL-сервера 5.5 (--configure):
 подпроцесс скрипт установлен после установки возвратил код ошибки 1
Dpkg: проблемы зависимостей позволяют настроить MySQL-сервера:
 MySQL-сервер зависит от MySQL-сервера-5,5; Однако:
  Пакет MySQL-сервер-5.5 еще не настроен.

Dpkg: обработка ошибок MySQL-сервера (--configure):
 проблемы зависимостей - оставляем не настроенным
Ошибки были обнаружены во время обработки:
E: Sub-процесс / USR / бен / Dpkg вернул код ошибки (1)

Пожалуйста, объясните , где моя ошибка .


PS: Мой английский очень плохо ...



PS_2: I solved this problem. It's very simple. Instead of MySQL found MariaDB

#3 LucSW



  • Members
  • PipPip
  • 10 posts

Posted 20 September 2014 - 04:13 PM

How did you have solved your problem ? :o

Because I've create MySQL, work I think, but There are error message like you before.

#4 Arctic


    Haphost Staff

  • Moderators
  • 341 posts
  • LocationGermany

Posted 02 October 2014 - 11:34 PM

After we need set /phpmyadmin
cp /etc/phpmyadmin/apache.conf /etc/apache2/sites-available/phpmyadminand
a2ensite phpmyadmin

didnt works but

ln -s /usr/share/phpmyadmin /var/www/

any support PM's be Ignored please use the Support section for it



#5 mlody.1039



  • Members
  • PipPip
  • 17 posts
  • LocationWarsaw / Carlow

Posted 15 November 2014 - 08:57 PM



Seems like Ubuntu changed something I will update the tutorial soon!

Also tagged with one or more of these keywords: phpmyadmin, Mysql, PHP, Apache, Debian, Ubuntu, phpMyAdmin

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users