{"id":2520,"date":"2013-11-05T13:17:07","date_gmt":"2013-11-05T11:17:07","guid":{"rendered":"https:\/\/contabo.com\/blog\/?p=2520"},"modified":"2023-04-17T00:58:55","modified_gmt":"2023-04-16T22:58:55","slug":"lamp-easy","status":"publish","type":"post","link":"https:\/\/contabo.com\/blog\/lamp-easy\/","title":{"rendered":"LAMP made easy"},"content":{"rendered":"<p><a href=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2013\/10\/Logo_LAMP.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2934 alignleft\" src=\"https:\/\/contabo.com\/blog\/wp-content\/uploads\/2013\/10\/Logo_LAMP.png\" alt=\"Logo_LAMP\" width=\"212\" height=\"115\" \/><\/a>We would like to make you aware of a novelty in our ASI. Some of you may have noticed already that we had implemented an additional LINUX option called LAMP some time ago.<\/p>\n<p>This option is available from our website when ordering a <a title=\"Contabo VPS hosting\" href=\"https:\/\/contabo.com\/en\/vps\" target=\"_blank\" rel=\"noopener noreferrer\">VPS<\/a> or <a title=\"Contabo Dedicated Server Hosting\" href=\"https:\/\/contabo.com\/en\/dedicated-servers\/\" target=\"_blank\" rel=\"noopener noreferrer\">dedicated server<\/a>, that runs under either LINUX operating system CentOS, Debian and Ubuntu.<\/p>\n<p>We also have a guide on how to get a server setup and running with LAMP in 90 Seconds using Cloud-init. Check it out <a href=\"https:\/\/contabo.com\/blog\/lamp-stack-cloud-init\/\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p>By that additional option, you will &#8211; with the aforementioned LINUX distributions &#8211; be provided with a complete webserver environment. In addition to the LINUX operating system (L) you will receive an installation of Apache 2(A), MySQL (M), and the commonly known script language PHP (P).\u00a0 PHPMyAdmin tool is equally installed, to simplify the administration.<br \/>\nIf you\u2019re not sure about your admin rights, always enter the command sudo -i at the beginning of every session:<\/p>\n<blockquote><p><code><\/code><code>sudo -i<\/code><\/p><\/blockquote>\n<p>This command will grant you the rights of a power user, so you don\u2019t have to write the command sudo at the beginning of every command line.<\/p>\n<p>In order to establish a website it is necessary for the domain to resolve to the IP of the server. At first, please activate the default website.<\/p>\n<blockquote><p><code>a2dissite default<br \/>\na2dissite default-ssl<br \/>\nservice apache2 reload<br \/>\n<\/code><\/p><\/blockquote>\n<p>To save the change you will have to reload the configuration finally. Now establish a configuration file for a virtual host in the following library: \/etc\/apache2\/sites-available let&#8217;s call it:\u00a0 example.com<\/p>\n<blockquote><p><code>&lt;VirtualHost *:80&gt;<br \/>\nServerAdmin your.email@example.com<br \/>\nServerName example.com<br \/>\nServerAlias www.example.com<br \/>\nDocumentRoot \/var\/www\/example.com\/public_html\/<br \/>\nErrorLog \/var\/www\/example.com\/logs\/error.log<br \/>\nCustomLog \/var\/www\/example.com\/logs\/access.log combined<br \/>\n&lt;\/VirtualHost&gt;<br \/>\n<\/code><\/p><\/blockquote>\n<p>Creating the required directories:<\/p>\n<blockquote><p><code>mkdir -p \/var\/www\/example.com\/public_html<br \/>\nmkdir \/var\/www\/example.com\/logs<br \/>\n<\/code><\/p><\/blockquote>\n<p>Sure enough, this new website needs to be activated now by creating a link to the configuration file in library: \/etc\/apache2\/sites-enabled<\/p>\n<blockquote><p><code>a2ensite example.com<br \/>\nservice apache2 reload<br \/>\n<\/code><\/p><\/blockquote>\n<p>A phpinfo.php file is helpful to check if PHP is working correctly:<\/p>\n<blockquote><p><code>cat &gt; \/var\/www\/example.com\/public_html\/phpinfo.php &lt;&lt; EOF<br \/>\n&lt;? phpinfo(); ?&gt;<br \/>\nEOF<\/code><\/p><\/blockquote>\n<p>If the webserver fails to start or refuses to read the configuration, it is always a good idea to check the logfiles for any errors. They are mostly located in\u00a0 \/var\/log\/apache2\/*.\u00a0 To be sure, you can check the configuration with the command \/usr\/sbin\/apachectl configtest before restarting the webserver.<\/p>\n<p>We would like to help the enthusiasts among you who can play around with LAMP without any stress of installing it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We would like to make you aware of a novelty in our ASI. Some of you may have noticed already that we had implemented an additional LINUX option called LAMP some time ago. This option is available from our website when ordering a VPS or dedicated server, that runs under either LINUX operating system CentOS, [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[9,18],"tags":[74,500,510,845,919],"ppma_author":[1513],"class_list":["post-2520","post","type-post","status-publish","format-standard","hentry","category-company-news","category-tutorials","tag-apache","tag-lamp","tag-linux","tag-tutorial","tag-webserver"],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"Stephan","author_link":"https:\/\/contabo.com\/blog\/author\/stephanf\/"},"uagb_comment_info":0,"uagb_excerpt":"We would like to make you aware of a novelty in our ASI. Some of you may have noticed already that we had implemented an additional LINUX option called LAMP some time ago. This option is available from our website when ordering a VPS or dedicated server, that runs under either LINUX operating system CentOS,&hellip;","authors":[{"term_id":1513,"user_id":12,"is_guest":0,"slug":"stephanf","display_name":"Stephan","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/5eee4d221dc880bb46962eef9779dad4c6bb636506999fe1c854eabeab832bfc?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/2520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/comments?post=2520"}],"version-history":[{"count":1,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/2520\/revisions"}],"predecessor-version":[{"id":16886,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/posts\/2520\/revisions\/16886"}],"wp:attachment":[{"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/media?parent=2520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/categories?post=2520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/tags?post=2520"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/contabo.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=2520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}