How to Edit file in the cPanel File Manager? (Video)

Editing a file in cPanel File Manager is straightforward and allows you to make quick updates to your website files directly from your browser. Here’s a step-by-step guide.


Step 1: Log in to cPanel

  1. Open your web browser and go to your cPanel login page (e.g., https://yourdomain.com:2083).
  2. Enter your username and password, then click Log in.

Step 2: Access File Manager

  1. In the cPanel dashboard, locate the Files section.
  2. Click on File Manager.

Step 3: Navigate to the File

  1. In the File Manager interface, browse to the directory containing the file you want to edit. For example:
    • Public_html: If the file is part of your website.
  2. Locate the file by its name in the list.

Step 4: Open the File for Editing

  1. Right-click on the file and select Edit from the context menu. Alternatively, select the file and click the Edit button at the top of the File Manager interface.
  2. A pop-up may appear asking if you want to use the Text Editor. Confirm by clicking Edit.

Step 5: Make Changes to the File

  1. The file will open in a text editor within cPanel.
  2. Make the necessary changes to the file.
    • For example, you can update HTML, CSS, PHP, or plain text content directly.

Step 6: Save the Changes

  1. After making the edits, click Save Changes in the top-right corner of the editor.
  2. A confirmation message will appear, indicating that the changes have been saved.

Step 7: Verify Changes

  1. If the file affects your website (e.g., an HTML or PHP file), open your website in a browser to verify the changes.
  2. Clear your browser cache if the changes don’t appear immediately.

Tips for Editing Files in cPanel

  • Backup Files First: Before editing, create a backup of the original file to avoid accidental data loss.
  • Use the Correct Editor: For advanced files like PHP or JavaScript, ensure you're familiar with the syntax to prevent errors.
  • Test Changes: After editing, thoroughly test the changes to ensure they work as expected.
  • Permissions: Ensure the file has the correct permissions to allow editing (usually 644).

Editing files via cPanel File Manager is a powerful way to manage your website efficiently without needing additional software or FTP access.

 
  • 123 أعضاء وجدوا هذه المقالة مفيدة
هل كانت المقالة مفيدة ؟

مقالات مشابهة

كيفية تنزيل النسخ الاحتياطية باستخدام cPanel؟ (فيديو)

تحميل نسخة احتياطية باستخدام cPanel عملية بسيطة. إليك دليل خطوة بخطوة لمساعدتك في تنزيل...

كيفية إنشاء نسخة احتياطية من Sapna وإرسالها إلى خادم FTP؟ (فيديو)

إنشاء نسخة احتياطية من cPanel وإرسالها إلى خادم FTP هي عملية بسيطة. إليك الطريقة التي يمكنك بها...

كيفية استعادة النسخة الاحتياطية في cPanel؟ (فيديو)

استعادة النسخ الاحتياطي في cPanel بسيطة وتتيح لك استرجاع بيانات موقع الويب الخاص بك...

كيفية تغيير كلمة مرور حساب في cPanel؟ (فيديو)

تغيير كلمة مرور الحساب في cPanel بسيط ويمكن القيام به في خطوات سريعة. اتبع التعليمات...

كيفية تحديث معلومات الاتصال الخاصة بك في لوحة التحكم cPanel؟ (فيديو)

تحديث معلومات الاتصال الخاصة بك في cPanel أمر مهم لضمان تلقيك إشعارات حيوية حول حسابك،...