{"id":3507,"date":"2024-10-08T20:17:52","date_gmt":"2024-10-08T17:17:52","guid":{"rendered":"https:\/\/34wp.com\/cloudwayste-uygulama-klasorleri-nasil-bulunur\/"},"modified":"2024-10-09T13:19:34","modified_gmt":"2024-10-09T10:19:34","slug":"cloudwayste-uygulama-klasorleri-nasil-bulunur","status":"publish","type":"post","link":"https:\/\/34wp.com\/tr\/cloudwayste-uygulama-klasorleri-nasil-bulunur\/","title":{"rendered":"Cloudways&#8217;te Uygulama Klas\u00f6rleri Nas\u0131l Bulunur?"},"content":{"rendered":"\n<p>Cloudways&#8217;de uygulama klas\u00f6rlerinin rastgele olu\u015fturulmu\u015f isimleri SSH ile dosya sistemine ba\u011flan\u0131ld\u0131\u011f\u0131nda kar\u0131\u015f\u0131kl\u0131k yaratabilir. Bu sorunu \u00e7\u00f6zmek i\u00e7in haz\u0131rlad\u0131\u011f\u0131m\u0131z shell script ile hangi klas\u00f6r\u00fcn hangi uygulamaya ait oldu\u011funu kolayca \u00f6\u011frenebilirsiniz. Haydi gelin problemi yak\u0131ndan inceleyelim.  <\/p>\n\n\n\n<p>Cloudways, kullan\u0131c\u0131 dostu bir ara y\u00fcze ve g\u00fc\u00e7l\u00fc bir altyap\u0131ya sahiptir. Kullan\u0131c\u0131lar SSH ile dosya sistemine ba\u011fland\u0131\u011f\u0131nda uygulamalar\u0131n isimleri rastgele bir de\u011fer olarak atand\u0131\u011f\u0131ndan hangi klas\u00f6r\u00fcn hangi uygulamaya ait oldu\u011fu anla\u015f\u0131lmas\u0131 g\u00fc\u00e7 olabiliyor. Uygulamalar aras\u0131nda ayr\u0131m yapmay\u0131 kolayla\u015ft\u0131rmak SSH ile sunucunuza ba\u011fland\u0131\u011f\u0131n\u0131zda dosya sistemi i\u00e7erisinde do\u011fru uygulamay\u0131 bulmak i\u00e7in klas\u00f6rler aras\u0131nda gezmek olduk\u00e7a zaman al\u0131c\u0131 olabilir. \u00d6zellikle \u00e7ok say\u0131da uygulaman\u0131z varsa, bu durum verimlili\u011finizi de etkileyip d\u00fc\u015f\u00fcrebilir. Bu sorunu \u00e7\u00f6zmek i\u00e7in basit bir shell script haz\u0131rlad\u0131k.  <\/p>\n\n\n\n<p>Bu script, Cloudways sunucunuzdaki t\u00fcm uygulama klas\u00f6rlerini tarar, her klas\u00f6r\u00fcn i\u00e7indeki public_html dizinine girer ve WP-CLI arac\u0131l\u0131\u011f\u0131yla ilgili sitenin URL&#8217;sini elde eder. Bu sayede, hangi klas\u00f6r\u00fcn hangi web sitesine ait oldu\u011funu an\u0131nda g\u00f6rebilirsiniz. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Shell Script Nas\u0131l \u00c7al\u0131\u015ft\u0131r\u0131l\u0131r?<\/strong><\/h2>\n\n\n\n<p>A\u015fa\u011f\u0131daki scripti Cloudways sunucunuza y\u00fckleyerek \u00e7al\u0131\u015ft\u0131rabilirsiniz:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#!\/bin\/bash\n\n# Define the base directory\nBASE_DIR=\"\/home\/master\/applications\"  # Replace with the actual path to your applications directory\n\n# Navigate to the base directory\ncd \"$BASE_DIR\" || exit\n\n# Loop through each folder in the base directory\nfor folder in *\/ ; do\n    # Trim the trailing slash from the folder name\n    folder_name=\"${folder%\/}\"\n\n    # Define the path to the public_html folder\n    public_html_path=\"$BASE_DIR\/$folder_name\/public_html\"\n\n    # Check if the public_html folder exists\n    if [ -d \"$public_html_path\" ]; then\n        # Navigate to the public_html folder\n        cd \"$public_html_path\" || continue\n\n        # Get the site URL using WP-CLI\n        site_url=$(wp option get siteurl)\n\n        # Print the folder name and site URL\n        echo \"Folder: $folder_name\"\n        echo \"Site URL: $site_url\"\n        echo \"------------------------\"\n    else\n        echo \"Folder: $folder_name\"\n        echo \"public_html directory not found.\"\n        echo \"------------------------\"\n    fi\n\n    # Navigate back to the base directory\n    cd \"$BASE_DIR\" || exit\ndone<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Ad\u0131m Ad\u0131m Kurulum Rehberi:<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u00b7 Sunucunuza SSH ile ba\u011flan\u0131n.<\/li>\n\n\n\n<li>\u00b7 Yukar\u0131daki scripti bir dosyaya kaydedin. \u00d6rne\u011fin: find_applications.sh<\/li>\n\n\n\n<li>\u00b7 Dosyaya \u00e7al\u0131\u015ft\u0131rma izni verin: <code>chmod +x find_applications.sh<\/code><\/li>\n\n\n\n<li>\u00b7 Scripti \u00e7al\u0131\u015ft\u0131r\u0131n: <code>.\/find_applications.sh<\/code><\/li>\n<\/ol>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<p>Script \u00e7al\u0131\u015ft\u0131ktan sonra her bir klas\u00f6r i\u00e7in uygulaman\u0131n URL\u2019si ile birlikte klas\u00f6r isimlerini g\u00f6rebileceksiniz. Bu sayede hangi klas\u00f6r\u00fcn hangi uygulamaya ait oldu\u011funu art\u0131k kolayca bulabilirsiniz. <\/p>\n\n\n\n<p>Cloudways platformunda birden fazla uygulama y\u00f6netiyorsan\u0131z, klas\u00f6rlerin rastgele isimlendirilmesi verimlili\u011finizi d\u00fc\u015f\u00fcrebilir. Ancak, bu basit shell scripti sayesinde, sunucunuzdaki her uygulaman\u0131n hangi klas\u00f6rde yer ald\u0131\u011f\u0131n\u0131 \u00f6\u011frenmek \u00e7ok daha h\u0131zl\u0131 ve kolay olacak. Hem zamandan tasarruf edecek hem de dosya sisteminizi daha verimli bir \u015fekilde y\u00f6neteceksiniz.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bu script, Cloudways sunucunuzdaki t\u00fcm uygulama klas\u00f6rlerini tarar, her klas\u00f6r\u00fcn i\u00e7indeki public_html dizinine girer ve WP-CLI arac\u0131l\u0131\u011f\u0131yla ilgili sitenin URL&#8217;sini elde eder. Bu sayede, hangi klas\u00f6r\u00fcn hangi web sitesine ait oldu\u011funu an\u0131nda g\u00f6rebilirsiniz. <\/p>\n","protected":false},"author":8,"featured_media":3500,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[72],"class_list":["post-3507","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-genel","tag-cloudways-tr"],"acf":[],"_links":{"self":[{"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/posts\/3507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/comments?post=3507"}],"version-history":[{"count":10,"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/posts\/3507\/revisions"}],"predecessor-version":[{"id":3519,"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/posts\/3507\/revisions\/3519"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/media\/3500"}],"wp:attachment":[{"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/media?parent=3507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/categories?post=3507"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/34wp.com\/tr\/wp-json\/wp\/v2\/tags?post=3507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}