{"id":11970,"date":"2022-09-16T05:56:00","date_gmt":"2022-09-16T05:56:00","guid":{"rendered":"https:\/\/www.varidata.com\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04"},"modified":"2022-10-10T01:10:21","modified_gmt":"2022-10-10T01:10:21","slug":"how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04","status":"publish","type":"kb","link":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/","title":{"rendered":"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLAMP Web\u670d\u52a1\u5668\uff1f"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><p>[vc_row gap=&#8221;25&#8243; css=&#8221;.vc_custom_1661417481090{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221; el_class=&#8221;kb-wrapper&#8221;][vc_column css=&#8221;.vc_custom_1659597638453{margin-top: 0px !important;padding-top: 0px !important;border-radius: 20px !important;}&#8221;][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1663921106473{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;}&#8221;]\u76ee\u7684[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1663916564144{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221;]LAMP\u662f\u76ee\u524d\u4e16\u754c\u4e0a\u5e94\u7528\u6700\u5e7f\u6cdb\u7684web\u5e94\u7528\u8f6f\u4ef6\u4e4b\u4e00\u3002\u8fd9\u4e2a\u7f29\u5199\u6e90\u4e8e\u5b83\u7684\u56db\u4e2a\u8f6f\u4ef6\u7ec4\u4ef6\u7684\u540d\u79f0\uff1aLinux\u3001Apache\u3001MySQL\u548cPHP\u3002\u6bcf\u4e2a\u8bbe\u8ba1\u90fd\u662f\u4e3a\u4e86\u4e0e\u5176\u4ed6\u90e8\u4ef6\u4e00\u8d77\u8fd0\u884c\u3002\u672c\u6587\u5c06\u89e3\u91ca\u5982\u4f55\u5b89\u88c5\u548c\u914d\u7f6e\u6240\u6709\u5fc5\u8981\u7684\u7ec4\u4ef6\uff0c\u4ee5\u4fbf\u5728Ubuntu 18.04\u4e2d\u5b89\u88c5LAMP\u3002<\/p>\n<p>\u8981\u5b89\u88c5LAMP\uff0c\u9996\u5148\u8981\u901a\u8fc7SSH\u8fde\u63a5\u8fde\u63a5\u5230\u670d\u52a1\u5668\u3002\u53ef\u4ee5\u53c2\u8003\u6709\u5173\u7684\u653b\u7565\u8fde\u63a5SSH\u534f\u8bae\u3002\u5982\u679c\u662f\u672c\u5730\u670d\u52a1\u5668\uff0c\u5219\u8fdb\u5165\u4e0b\u4e00\u6b65\uff0c\u6253\u5f00\u670d\u52a1\u5668\u7684\u7ec8\u7aef\u3002[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1663916569629{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u5b89\u88c5Apache[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1663916592390{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221;]Apache\u662f\u6700\u5e7f\u6cdb\u4f7f\u7528\u7684web\u670d\u52a1\u5668\uff0c\u80fd\u591f\u5728\u5404\u79cd\u5404\u6837\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff0c\u5305\u62ecUNIX \/ Linux\u3001Microsoft Windows\u548cOpenVMS\u3002<\/p>\n<p>\u5982\u8981\u5b8c\u6210\u5b89\u88c5\uff0c\u9996\u5148\u8981\u66f4\u65b0\u53d1\u5e03\u5b58\u50a8\u5e93\uff0c\u4e0b\u8f7d\u6700\u65b0\u7684Apache\u7248\u672c\u3002<\/p>\n<pre><code>$ sudo apt update &amp;&amp; sudo apt install apache2<\/code><\/pre>\n<p>\u6ce8\u610f\uff0c\u5728\u4f7f\u7528sudo\u547d\u4ee4\u4ee5root\u7528\u6237\u8eab\u4efd\u8fd0\u884c\u547d\u4ee4\u65f6\uff0c\u9700\u8981\u63d2\u5165\u4ee5\u524d\u4f7f\u7528\u7684\u7528\u6237\u5bc6\u7801\u3002\u5728\u60a8\u63a5\u6536\u540c\u610f\u5b89\u88c5Apache\u4e4b\u540e\uff0c\u5b89\u88c5\u88ab\u5f00\u59cb\u6267\u884c\u3002[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1663916603558{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u914d\u7f6e\u9632\u706b\u5899[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1663916708429{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221;]\u5982\u679c\u7cfb\u7edf\u4e0a\u6709\u9632\u706b\u5899\uff0c\u9996\u5148\u5c06\u5176\u8bbe\u7f6e\u4e3a\u5728\u673a\u5668\u4e0a\u542f\u7528HTTP\u901a\u4fe1\u548cHTTPS\u901a\u4fe1\u3002\u5982\u679c\u4f7f\u7528UFW\u9632\u706b\u5899\uff0c\u5219\u63d0\u4f9b\u7528\u4e8eApache\u7684\u9884\u5b89\u88c5\u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u4ee5\u76f4\u63a5\u542f\u52a8\uff1a<\/p>\n<p>\u67e5\u770bUFW\u9632\u706b\u5899\u4e2d\u5b89\u88c5\u7684\u53ef\u7528\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<pre><code>$ sudo ufw app list<\/code><\/pre>\n<p>\u4f60\u4f1a\u770b\u5230\uff1a<\/p>\n<pre><code>Available applications:<\/code><\/pre>\n<pre><code>Apache<\/code><\/pre>\n<pre><code>Apache Full<\/code><\/pre>\n<pre><code>Apache Secure<\/code><\/pre>\n<pre><code>OpenSSH<\/code><\/pre>\n<p>\u4f7f\u7528\u201cApache Full\u201d\u914d\u7f6e\u6587\u4ef6\uff0c\u5141\u8bb8HTTP\uff08\u7aef\u53e380\uff09\u548cHTTPS\uff08\u7aef\u53e3443\uff09\u901a\u4fe1\u3002<br \/>\n\u8d44\u6599\u4fe1\u606f\u53ef\u6309\u4ee5\u4e0b\u65b9\u5f0f\u68c0\u67e5\uff1a<\/p>\n<pre><code>$ sudo ufw app info \"Apache Full\"<\/code><\/pre>\n<p>\u6b64\u65f6\u53ef\u4ee5\u770b\u5230\uff1a<\/p>\n<pre><code>Profile: Apache Full\r\n\r\nTitle: Web Server (HTTP,HTTPS)\r\n\r\nDescription: Apache v2 is the next generation of the omnipresent Apache web server.\r\n\r\nPorts:\r\n80,443\/tcp<\/code><\/pre>\n<p>\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u542f\u7528\uff1a<\/p>\n<pre><code>$ sudo ufw allow in <mark>\"Apache Full\"<\/mark><\/code><\/pre>\n<p>\u81f3\u6b64\uff0cApache\u548c\u9632\u706b\u5899\u7684\u914d\u7f6e\u5c31\u5b8c\u6210\u3002\u8981\u6d4b\u8bd5web\u670d\u52a1\u5668\uff0c\u8bf7\u8bbf\u95eehttp:\/\/&lt; server . ip &gt;\uff0c\u5982\u679c\u662f\u672c\u5730\u670d\u52a1\u5668\uff0c\u5219\u8bbf\u95eehttp:\/\/localhost\u3002<br \/>\n\u5982\u679c\u60a8\u64cd\u4f5c\u6b63\u786e\uff0c\u5c06\u770b\u5230Apache\u6b22\u8fce\u9875\u9762\u3002[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1663916717621{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u5b89\u88ddMySQL[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1663916931108{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221;]MySQL\u662f\u4e16\u754c\u4e0a\u5e94\u7528\u6700\u5e7f\u6cdb\u7684\u5173\u7cfb\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\u4e4b\u4e00\u3002\u66f4\u65b0\u53d1\u5e03\u5e93\u4ee5\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684MySQL\u3002\u5982\u679c\u60a8\u5df2\u7ecf\u542f\u52a8\u8fc7\u8be5\u547d\u4ee4\uff0c\u53ef\u76f4\u63a5\u8df3\u81f3\u4e0b\u4e00\u6b65\u3002<\/p>\n<pre><code>$ sudo apt update<\/code><\/pre>\n<p>\u5b89\u88c5\uff1a<\/p>\n<pre><code>$ sudo apt install mysql-server<\/code><\/pre>\n<p>\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f\uff0c\u5e76\u68c0\u67e5MySQL\u7248\u672c:<\/p>\n<pre><code>$ sudo mysqld --version<\/code><\/pre>\n<p>\u5982\u679c\u4e00\u5207\u987a\u5229\uff0c\u5c4f\u5e55\u4f1a\u663e\u793a\u5df2\u5b89\u88c5\u7684MySQL\u7248\u672c\u3002\u73b0\u5728\u901a\u8fc7\u8fd0\u884cMySQL\u5305\u542b\u7684\u811a\u672c\u6765\u4fdd\u62a4MySQL\uff0c\u4ee5\u63d0\u9ad8\u5b89\u5168\u6027\u5e76\u9650\u5236\u5bf9\u6570\u636e\u5e93\u7684\u8bbf\u95ee\uff1a<\/p>\n<pre><code>$ sudo mysql_secure_installation<\/code><\/pre>\n<p>\u6b64\u65f6\uff0c\u5c06\u542f\u52a8\u4e00\u4e2a\u6307\u5bfc\u8fc7\u7a0b\u6765\u914d\u7f6eMySQL\u5b89\u5168\u7ea7\u522b\u3002<\/p>\n<p>\u7cfb\u7edf\u5c06\u8be2\u95ee\u60a8\u662f\u5426\u8981\u542f\u7528\u5bc6\u7801\u9a8c\u8bc1\u7cfb\u7edf\u3002\u5982\u679c\u542f\u7528\uff0c\u5728\u8bbe\u7f6e\u7528\u6237\u5bc6\u7801\u65f6\u4f1a\u8bc4\u4f30\u5bc6\u7801\u3002\u5982\u679c\u5bc6\u7801\u4e0d\u7b26\u5408\u6700\u4f4e\u5b89\u5168\u8981\u6c42\uff0c\u5219\u62d2\u7edd\u8be5\u5bc6\u7801\u5e76\u63d0\u793a\u9519\u8bef\u3002<\/p>\n<p>\u4e4b\u540e\uff0c\u7cfb\u7edf\u4f1a\u8be2\u95ee\u60a8\u662f\u5426\u5e0c\u671b\u4f7f\u7528\u60a8\u6240\u9009\u62e9\u7684\u5176\u4e2d\u4e00\u4e2a\u66f4\u6539root\u5bc6\u7801\uff08\u5982\u679c\u542f\u7528\u5bc6\u7801\u9a8c\u8bc1\u7cfb\u7edf\uff0c\u5219\u5fc5\u987b\u8f93\u5165\u7b26\u5408\u5b89\u5168\u6761\u4ef6\u7684\u5bc6\u7801\uff09\u3002<br \/>\n\u5982\u4f55\u521b\u5efa\u5b89\u5168\u5ea6\u8f83\u9ad8\u7684\u5bc6\u7801:<\/p>\n<ul class=\"kfaq-ul\">\n<li>\u5305\u62ec\u5927\u5199\u5b57\u6bcd\u548c\u5c0f\u5199\u5b57\u6bcd<\/li>\n<li>\u5305\u62ec\u4f7f\u7528\u5b57\u6bcd\u548c\u6570\u5b57<\/li>\n<li>\u4f7f\u7528\u7279\u6b8a\u7b26\u53f7\uff0c\u5982@ # $% \u02c6 &amp;!<\/li>\n<li>\u907f\u514d\u4f7f\u7528\u5df2\u521b\u5efa\u7684\u5bc6\u7801\u3002<\/li>\n<\/ul>\n<p>\u6700\u540e\uff0c\u9009\u62e9\u662f\u5426\u5220\u9664\u533f\u540d\u7528\u6237\u5e76\u6d4b\u8bd5\u6570\u636e\u5e93\uff0c\u4ee5\u53ca\u662f\u5426\u7981\u7528root\u7528\u6237\u8fdc\u7a0b\u767b\u5f55\uff08\u66f4\u9ad8\u5b89\u5168\u6027)\u3002\u5efa\u8bae\u5141\u8bb8\u6240\u6709\u8fd9\u4e9b\u66f4\u6539\u3002<br \/>\n\u8981\u9a8c\u8bc1MySQL\u529f\u80fd\uff0c\u53ef\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u767b\u5f55\uff1a<\/p>\n<pre><code>$ sudo mysql<\/code><\/pre>\n<p>\u5982\u679c\u6240\u6709\u64cd\u4f5c\u6b63\u786e\uff0c\u60a8\u5c06\u8fdb\u5165MySQL\u63a7\u5236\u53f0\uff1a<\/p>\n<pre><code>mysql &gt; exit;<\/code><\/pre>\n<p>\u6b64\u65f6\uff0c\u60a8\u5df2\u7ecf\u5b8c\u6210MySQL\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u3002[\/vc_column_text][vc_column_text el_class=&#8221;sub-title&#8221; css=&#8221;.vc_custom_1663916900659{margin-top: 0px !important;margin-bottom: 0px !important;}&#8221;]\u5b89\u88ddPHP[\/vc_column_text][vc_column_text el_class=&#8221;content&#8221; css=&#8221;.vc_custom_1661495162271{margin-top: 0px !important;margin-bottom: 0px !important;padding-top: 0px !important;padding-bottom: 0px !important;}&#8221;]PHP is the interpreter of the homonymous scripting language for programming dynamic web pages.<br \/>\nUpdate the distribution repositories, to download the latest PHP version. If you have already launched this command before, go to the next step.<\/p>\n<pre><code>$ sudo apt update<\/code><\/pre>\n<p>Install the PHP interpreter and some modules to execute PHP with Apache and make it communicate with MySQL:<\/p>\n<pre><code>$ sudo apt install php libapache2-mod-php php-mysql<\/code><\/pre>\n<p>At this point, the installation will have been completed. All you need to do is verify it by checking the installed PHP version:<\/p>\n<pre><code>$ sudo php -v<\/code><\/pre>\n<p>In case of successful installation , the version of PHP just installed will be displayed.<br \/>\nThen, change the priority of the Apache index files to have it give the highest priority to files named index.php.<br \/>\nThen edit the Apache configuration file &#8220;dir.conf&#8221;:<\/p>\n<pre><code>$ sudo nano \/etc\/apache2\/mods-enabled\/dir.conf<\/code><\/pre>\n<p>Move the index.php file to the top of the list, in this way :<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2022\/08\/lws-img1.jpg\" \/><br \/>\nSave the changes by pressing CTRL + X, typing Y and then confirm by pressing enter.<br \/>\nRestart Apache to apply the changes<\/p>\n<pre><code>$ sudo systemctl restart apache2<\/code><\/pre>\n<p>To verify the operation of the PHP interpreter and its configuration, all you need to do is create an index.php file in the folder that contains your site:<\/p>\n<pre><code>$ sudo nano \/var\/www\/html\/index.php<\/code><\/pre>\n<p>Insert the following content in the file to print the information of your on-screen configuration:<\/p>\n<pre><code>&lt;?php\r\nphpinfo();\r\n?&gt;\r\n<\/code><\/pre>\n<p>Then save the changes by pressing CTRL + X, typing Y, and then confirm by pressing enter.<br \/>\nAt this point, visit the address http:\/\/ or in the case of a local server http: \/\/ localhost .<br \/>\nIf the PHP info page is correctly displayed, the procedure was successfully performed.<br \/>\nAt this point you have correctly installed and configured your server with a LAMP architecture.[\/vc_column_text][\/vc_column][\/vc_row]<\/p>\n<\/div>","protected":false},"featured_media":0,"template":"","kb_category":[465],"class_list":["post-11970","kb","type-kb","status-publish","hentry","kb_category-ubuntu-sc"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLAMP Web\u670d\u52a1\u5668\uff1f - Varidata Limited<\/title>\n<meta name=\"description\" content=\"\u76ee\u7684LAMP\u662f\u76ee\u524d\u4e16\u754c\u4e0a\u5e94\u7528\u6700\u5e7f\u6cdb\u7684web\u5e94\u7528\u8f6f\u4ef6\u4e4b\u4e00\u3002\u8fd9\u4e2a\u7f29\u5199\u6e90\u4e8e\u5b83\u7684\u56db\u4e2a\u8f6f\u4ef6\u7ec4\u4ef6\u7684\u540d\u79f0\uff1aLinux\u3001Apache\u3001M\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLAMP Web\u670d\u52a1\u5668\uff1f - Varidata Limited\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Varidata Limited\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-10T01:10:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.varidata.com\/wp-content\/uploads\/2023\/01\/varidata_logo_black.png\" \/>\n\t<meta property=\"og:image:width\" content=\"248\" \/>\n\t<meta property=\"og:image:height\" content=\"94\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/\",\"url\":\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/\",\"name\":\"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLAMP Web\u670d\u52a1\u5668\uff1f - Varidata Limited\",\"isPartOf\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#website\"},\"datePublished\":\"2022-09-16T05:56:00+00:00\",\"dateModified\":\"2022-10-10T01:10:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/#breadcrumb\"},\"inLanguage\":\"zh-SC\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.varidata.com\/zh-cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledgebase\",\"item\":\"https:\/\/www.varidata.com\/zh-tw\/kb\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLAMP Web\u670d\u52a1\u5668\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#website\",\"url\":\"https:\/\/www.varidata.com\/zh-cn\/\",\"name\":\"Varidata Limited\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.varidata.com\/zh-cn\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-SC\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#organization\",\"name\":\"Varidata\",\"url\":\"https:\/\/www.varidata.com\/zh-cn\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-SC\",\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png\",\"contentUrl\":\"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png\",\"width\":248,\"height\":94,\"caption\":\"Varidata\"},\"image\":{\"@id\":\"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLAMP Web\u670d\u52a1\u5668\uff1f - Varidata Limited","description":"\u76ee\u7684LAMP\u662f\u76ee\u524d\u4e16\u754c\u4e0a\u5e94\u7528\u6700\u5e7f\u6cdb\u7684web\u5e94\u7528\u8f6f\u4ef6\u4e4b\u4e00\u3002\u8fd9\u4e2a\u7f29\u5199\u6e90\u4e8e\u5b83\u7684\u56db\u4e2a\u8f6f\u4ef6\u7ec4\u4ef6\u7684\u540d\u79f0\uff1aLinux\u3001Apache\u3001M","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLAMP Web\u670d\u52a1\u5668\uff1f - Varidata Limited","og_url":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/","og_site_name":"Varidata Limited","article_modified_time":"2022-10-10T01:10:21+00:00","og_image":[{"width":248,"height":94,"url":"https:\/\/www.varidata.com\/wp-content\/uploads\/2023\/01\/varidata_logo_black.png","type":"image\/png"}],"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/","url":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/","name":"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLAMP Web\u670d\u52a1\u5668\uff1f - Varidata Limited","isPartOf":{"@id":"https:\/\/www.varidata.com\/zh-cn\/#website"},"datePublished":"2022-09-16T05:56:00+00:00","dateModified":"2022-10-10T01:10:21+00:00","breadcrumb":{"@id":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"zh-SC","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.varidata.com\/zh-cn\/kb\/how-to-install-and-configure-a-lamp-web-server-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.varidata.com\/zh-cn\/"},{"@type":"ListItem","position":2,"name":"Knowledgebase","item":"https:\/\/www.varidata.com\/zh-tw\/kb\/"},{"@type":"ListItem","position":3,"name":"\u5982\u4f55\u5728Ubuntu 18.04\u4e0a\u5b89\u88c5\u548c\u914d\u7f6eLAMP Web\u670d\u52a1\u5668\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.varidata.com\/zh-cn\/#website","url":"https:\/\/www.varidata.com\/zh-cn\/","name":"Varidata Limited","description":"","publisher":{"@id":"https:\/\/www.varidata.com\/zh-cn\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.varidata.com\/zh-cn\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-SC"},{"@type":"Organization","@id":"https:\/\/www.varidata.com\/zh-cn\/#organization","name":"Varidata","url":"https:\/\/www.varidata.com\/zh-cn\/","logo":{"@type":"ImageObject","inLanguage":"zh-SC","@id":"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/","url":"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png","contentUrl":"https:\/\/www.varidata.com\/wp-content\/uploads\/2021\/09\/varidata_logo_white_-748x480_hor_web-1.png","width":248,"height":94,"caption":"Varidata"},"image":{"@id":"https:\/\/www.varidata.com\/zh-cn\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/kb\/11970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/types\/kb"}],"wp:attachment":[{"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/media?parent=11970"}],"wp:term":[{"taxonomy":"kb_category","embeddable":true,"href":"https:\/\/www.varidata.com\/zh-cn\/wp-json\/wp\/v2\/kb_category?post=11970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}