{"id":239,"date":"2009-03-16T15:23:29","date_gmt":"2009-03-16T20:23:29","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=239"},"modified":"2009-03-17T12:12:47","modified_gmt":"2009-03-17T17:12:47","slug":"lamp-on-debian","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2009\/03\/lamp-on-debian\/","title":{"rendered":"LAMP on Debian"},"content":{"rendered":"<p>LAMP is Linux Apache MySQL PHP.  Debian is the primary for Ubuntu.<\/p>\n<p>Tried to install Ubuntu server 8.10 on an HP DL380 G4 with mixed results.  Grub was failing on me.  Instead of trying to fix it I just took a Debian 5 CD and wrote it over.  Only problem is no LAMP &#8211; Ubuntu is much better for setting up initially, but both OSes are basically the same.<\/p>\n<blockquote><p>nano \/etc\/apt\/sources.list<br \/>\nremove the cdrom<\/p>\n<p>apt-get update<br \/>\napt-get upgrade<br \/>\napt-get install ssh-server<\/p>\n<p>apt-get install apache2<br \/>\napt-get install apache2-mpm-prefork<br \/>\napt-get install php5<\/p>\n<p>apt-get install mysql-server php5-mysql<br \/>\napt-get install phpmyadmin<br \/>\napt-get install webmin<br \/>\napt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi<\/p>\n<p>nano \/etc\/apache2\/apache2.conf<br \/>\nAddType application\/x-httpd-php .php<br \/>\nDirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.shtml index.htm<\/p><\/blockquote>\n<p>I installed SSH so I could remotely do the rest of the work.<\/p>\n<p>At this point, you should be able to go to http:\/\/youripaddress and see a generic &#8220;IT WORKS!&#8221; apache page.<br \/>\nYou can also go to http:\/\/youripaddress\/phpmyadmin and load up the phpmyadmin page.  I suggest prohibiting this from being viewed outside your internal subnet using access rules in apache.<br \/>\nThen you can go to http:\/\/youripaddress:10000 and view the webmin page<\/p>\n<p>Potential Problems:<br \/>\nYour repository list is incorrect.<br \/>\n<code>nano \/etc\/apt\/sources.list<\/code><br \/>\n<code>deb ftp:\/\/ftp2.fr.debian.org\/debian\/ stable main contrib non-free<\/code><br \/>\n<code>deb-src ftp:\/\/ftp2.fr.debian.org\/debian\/ stable main<\/code><\/p>\n<p>You can not apt-get webmin:<br \/>\n<code>wget http:\/\/voxel.dl.sourceforge.net\/sourceforge\/webadmin\/webmin_1.460_all.deb<\/code><br \/>\n<code>dpkg -i webmin-1.460_all.deb<\/code><br \/>\n<code>apt-get install -f<\/code><\/p>\n<p>You want ASP support on this Linux Box:<br \/>\n<code>apt-get install libapache-asp-perl<\/code><\/p>\n<p>You want to edit the sudoers list:<br \/>\n<code>apt-get install sudo<\/code><br \/>\n<code>visudo<\/code><br \/>\nUncomment the following line:<br \/>\n<code>%sudo ALL=NOPASSWD: ALL<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>LAMP is Linux Apache MySQL PHP. Debian is the primary for Ubuntu. Tried to install Ubuntu server 8.10 on an HP DL380 G4 with mixed results. Grub was failing on me. Instead of trying to fix it I just took a Debian 5 CD and wrote it over. Only problem is no LAMP &#8211; Ubuntu &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2009\/03\/lamp-on-debian\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">LAMP on Debian<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=239"}],"version-history":[{"count":3,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":241,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/239\/revisions\/241"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}