{"id":333,"date":"2024-04-04T00:52:23","date_gmt":"2024-04-04T00:52:23","guid":{"rendered":"https:\/\/www.freelifemakers.org\/wordpress\/?p=333"},"modified":"2024-04-07T00:32:20","modified_gmt":"2024-04-07T00:32:20","slug":"first-phpfile-excutelinux-oci","status":"publish","type":"post","link":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/2024\/04\/04\/first-phpfile-excutelinux-oci\/","title":{"rendered":"\uccab PHP\ud30c\uc77c \uc2e4\ud589First run of php file(Linux OCI)"},"content":{"rendered":"\n<p>PHP\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9\uc774\ub098 \ud30c\uc77c,\uba54\uc77c \ucc98\ub9ac,\ub9ac\ub205\uc2a4 \uc11c\ubc84 \uc5f0\ub3d9 \ub4f1 \uc5ec\ub7ec\uac00\uc9c0 \uae30\ub2a5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4.  \ub3d9\uc801\uc778 \uc6f9\uc0ac\uc774\ud2b8 \uc81c\uc791\uc5d0 \uc788\uc5b4\uc11c \uc810\uc720\uc728\uc774 \uc0c1\ub2f9\ud788 \ub192\ub2e4\ub294 \uac83\uc744 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4. (\uc57d 70%\uc774\uc0c1\uc758 \uc6f9\uc0ac\uc774\ud2b8 \uc81c\uc791\uc5d0 \uc0ac\uc6a9\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4.)<br>\uad00\uc2ec \uc788\uc73c\uc2e0 \ubd84\ub4e4\uc744 \uc704\ud574\uc11c php\ud30c\uc77c\uc744 \uc2e4\ud589\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574\uc11c \ub2e4\ub8e8\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4.<br>PHP\ub294 Apache\uc6f9\uc11c\ubc84, Mysql\ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc11c\ubc84 \ud658\uacbd\uc5d0 \uac00\uc7a5 \ucd5c\uc801\ud654 \ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.<br>\uc5ec\uae30\uc11c\ub294 APM(apache + php + mysql)\uc774 \uc774\ubbf8 \uc124\uce58\ub41c \ud658\uacbd\uc5d0\uc11c \ud14c\uc2a4\ud2b8 \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>PHP can perform various functions such as database integration, file and mail manipulation, and Linux server integration.<br>You can see that the market share in creating dynamic websites is quite high. (It is used to create more than 70% of websites.)<br>For those of you who are interested, I will introduce how to run a PHP file.<br>PHP is best suited for Apache web server and MySQL database server environments.<br>Here, we test in an environment where APM (apache + php + mysql) is already installed.<\/p>\n\n\n\n<p><strong>1.\uba3c\uc800 Visual Studio Code\uc5d0\uc11c \ub2e4\uc74c \ucf54\ub4dc\ub97c \uc785\ub825\ud558\uace0 test.php\ud30c\uc77c\uc744 \uc800\uc7a5\ud569\ub2c8\ub2e4.<br>First, enter the following code in the Visual Studio Code and save the test.php file.<\/strong><br><br>\ube44\uc8fc\uc5bc\uc2a4\ud29c\ub514\uc624 \ucf54\ub4dc \ub2e4\uc6b4\ub85c\ub4dc<br>Visual Studio Code Download<br><a href=\"https:\/\/code.visualstudio.com\/download\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/code.visualstudio.com\/download<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"327\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/1vscode.png\" alt=\"\" class=\"wp-image-328\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/1vscode.png 773w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/1vscode-300x127.png 300w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/1vscode-768x325.png 768w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><\/figure>\n\n\n\n<p><strong>2.ftp\uc811\uc18d\uc744 \ud1b5\ud574\uc11c \ub9ac\ub205\uc2a4 \uc11c\ubc84\uc5d0 \ud30c\uc77c\uc744 \uc5c5\ub85c\ub4dc \ud569\ub2c8\ub2e4.<br>Upload the file to the Linux server via ftp access.<\/strong><br><br>ftp client program<br><a href=\"https:\/\/filezilla-project.org\/download.php?platform=win64\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/filezilla-project.org\/download.php?platform=win64<\/a><br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"906\" height=\"667\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/2.ftpupload1.png\" alt=\"\" class=\"wp-image-329\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/2.ftpupload1.png 906w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/2.ftpupload1-300x221.png 300w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/2.ftpupload1-768x565.png 768w\" sizes=\"auto, (max-width: 906px) 100vw, 906px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"995\" height=\"803\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/3.ftpupload2.png\" alt=\"\" class=\"wp-image-330\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/3.ftpupload2.png 995w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/3.ftpupload2-300x242.png 300w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/3.ftpupload2-768x620.png 768w\" sizes=\"auto, (max-width: 995px) 100vw, 995px\" \/><\/figure>\n\n\n\n<p>3.SSH\ub97c \uc774\uc6a9\ud574\uc11c \ub9ac\ub205\uc11c \uc11c\ubc84\uc5d0 \uc811\uc18d \ud6c4 \/var\/www\/html\ub85c test.php\ud30c\uc77c\uc744 \uc62e\uae41\ub2c8\ub2e4.<br>Use SSH to connect to the server and move the test.php file to \/var\/www\/html.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"973\" height=\"509\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/4.mvfileToLec.png\" alt=\"\" class=\"wp-image-331\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/4.mvfileToLec.png 973w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/4.mvfileToLec-300x157.png 300w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/4.mvfileToLec-768x402.png 768w\" sizes=\"auto, (max-width: 973px) 100vw, 973px\" \/><\/figure>\n\n\n\n<p><strong>4.\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \uc811\uc18d\ud574\uc11c \uc2e4\ud589\ud574 \ubd05\ub2c8\ub2e4.<br>Try to access and run it in your browser.<\/strong><br><br>\uc9c0\uae08 \uc5ec\ub7ec\ubd84\uc5d0 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \uc811\uc18d\ud574 \ubcf4\uba74 php\uac00 \uc2e4\ud589\ub41c \ud654\uba74\uc744 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br>If you access it now in your browser, you can see the screen where php is enabled.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"426\" height=\"207\" src=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/5.excute.png\" alt=\"\" class=\"wp-image-332\" srcset=\"https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/5.excute.png 426w, https:\/\/www.freelifemakers.org\/wordpress\/wp-content\/uploads\/2024\/04\/5.excute-300x146.png 300w\" sizes=\"auto, (max-width: 426px) 100vw, 426px\" \/><\/figure>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/www.facebook.com\/plugins\/video.php?height=314&#038;href=https%3A%2F%2Fwww.facebook.com%2Fgideonslife01%2Fvideos%2F913319983594367%2F&#038;show_text=false&#038;width=560&#038;t=0\" width=\"560\" height=\"314\" style=\"border:none;overflow:hidden\" scrolling=\"no\" frameborder=\"0\" allowfullscreen=\"true\" allow=\"autoplay; clipboard-write; encrypted-media; picture-in-picture; web-share\" allowFullScreen=\"true\"><\/iframe>\n","protected":false},"excerpt":{"rendered":"<p>PHP\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\ub3d9\uc774\ub098 \ud30c\uc77c,\uba54\uc77c \ucc98\ub9ac,\ub9ac\ub205\uc2a4 \uc11c\ubc84 \uc5f0\ub3d9 \ub4f1 \uc5ec\ub7ec\uac00\uc9c0 \uae30\ub2a5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ub3d9\uc801\uc778 \uc6f9\uc0ac\uc774\ud2b8 \uc81c\uc791\uc5d0 \uc788\uc5b4\uc11c \uc810\uc720\uc728\uc774 \uc0c1\ub2f9\ud788 \ub192\ub2e4\ub294 \uac83\uc744 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4. (\uc57d 70%\uc774\uc0c1\uc758 \uc6f9\uc0ac\uc774\ud2b8 \uc81c\uc791\uc5d0 \uc0ac\uc6a9\ub418\uace0 \uc788\uc2b5\ub2c8\ub2e4.)\uad00\uc2ec \uc788\uc73c\uc2e0 \ubd84\ub4e4\uc744 \uc704\ud574\uc11c php\ud30c\uc77c\uc744 \uc2e4\ud589\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574\uc11c \ub2e4\ub8e8\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4.PHP\ub294 Apache\uc6f9\uc11c\ubc84, Mysql\ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc11c\ubc84 \ud658\uacbd\uc5d0 \uac00\uc7a5 \ucd5c\uc801\ud654 \ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4.\uc5ec\uae30\uc11c\ub294 APM(apache + php + mysql)\uc774 \uc774\ubbf8 \uc124\uce58\ub41c \ud658\uacbd\uc5d0\uc11c \ud14c\uc2a4\ud2b8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-333","post","type-post","status-publish","format-standard","hentry","category-php","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=333"}],"version-history":[{"count":7,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/333\/revisions"}],"predecessor-version":[{"id":342,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/333\/revisions\/342"}],"wp:attachment":[{"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.freelifemakers.org\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}