جزاك الله خير أخ محمد على طرح الحل وعندي تعليق لو سمحت
واجهتني مشكلة شبيهة بالسيرفر من يومين و تعبت منها لكن هداني الله عزوجل الى حلها بطريقة أخرى
في البداية استرجعت نسخة من ملف httpd.conf وكان هذا حل مؤقت لكن كما نعلم أن هذا الملف يحدث تلقائيا من لوحة التحكم whm عند استخدام مهام معينة مثل:
Main >> Account Functions >> Show Active and Inactive Accounts >> Reactivate Inactive Domains
وعند تحديثه سأعود لتحرير VirtualHost ايضاً وماذا لو كان عندي 100 موقع عالسيرفر هل سأضيف هذه المعلومات كلها!
لذلك كلام الأخ Amman-DJ صحيح وهذا ما كتب في الملف اذا لاحظتم
إقتباس:
| # Direct modifications to the Apache configuration file may be lost upon subsequent regeneration of the #
# configuration file. To have modifications retained, all modifications must be checked into the #
# configuration system by running: #
# /usr/local/cpanel/bin/apache_conf_distiller --update #
# To see if your changes will be conserved, regenerate the Apache configuration file by running: #
# /usr/local/cpanel/bin/build_apache_conf #
# and check the configuration file for your alterations. If your changes have been ignored, then they will #
# need to be added directly to their respective template files. |
الحل في تتبع المشكلة عند تنفيذ الأمر
إقتباس:
| /usr/local/cpanel/bin/apache_conf_distiller --update |
أو بمقارنة ملف httpd.conf القديم بالجديد وما التغيرات التي حصلت
أما المشكلة التي كنت أعاني منها هي عدم امكانية فتح مجلد /var/cpanel/userdata لجلب معلومات المستخدمين
فقمت باعادة تسمية مجلد userdata الى اسم آخر وانشاء مجلد فارغ باسمه ثم قمت بتنفيذ هذا الأمر لتحديث معلوماته
إقتباس:
| /usr/local/cpanel/bin/userdata_update --reset |
وبعدين
إقتباس:
| /usr/local/cpanel/bin/build_apache_conf |
وبعدين
إقتباس:
| /etc/init.d/httpd restart |
والمشكلة انحلت ولله الحمد