- تنصيب لوحة تحكم Cpanel على سيرفرات Amazon Ec2
- سوف نستخدم قى الشرح نظام التشغيل Centos 7
- ، ولهذا ان كنت تريد استخدام توزيعه لينكس مختلفة فيجب ان تقوم بانشاء السيرفر عن طريق الكونسل.
- قبل بدء instance تاكد من اختيار Lunch from website
- تاكد من اختيارك لنوع ال instance المطلوب.
- من الضروري جدا ان تعمل ال instance على VPC ، مثلا 172.30.1.0/24
- تاكد من اختيار ال Security Group المناسب وفي حال اختيارك ل Default تاكد لاحقا من تحرير ال security group والسماح ل inboud و outboud 0.0.0.0/0 بالدخول. ولكن اذا كنت مهتما بانشاء قوانين للمنافذ بشكل دقيق
- راجع لمعرفة المنافذ المطلوب فتحها للسي بنل في inbound و outbound لتعمل بشكل سليم.
Port Service TCP UDP Inbound Outbound Localhost Notes 1CPAN The Show Available Modules option in cPanel's Perl Modules interface (cPanel >> Home >> Software >> Perl Modules) uses this port to improve the speed in which it appears.20FTP Instead of FTP, we recommend that you use the more-secure SFTP via SSH.21FTP 22SSH Important:
You must open this port before you use WHM'sTransfer Tool interface (WHM >> Home >> Transfers >> Transfer Tool).25SMTP 26SMTP cPanel & WHM only uses this port if you specify it in WHM's Service Manager interface (WHM >> Home>> Service Configuration >> Service Manager). 37rdate43whois53DNS cPanel & WHM uses this port for the following functions:- Public DNS services.
- Communication with root nameservers for AutoSSL.
- Other functions that require name resolution.
80httpdThis port serves the HTTP needs of services on the server.Note:
In cPanel & WHM version 76 and later, the cPanel Server Daemon (cpsrvd) listens on this port when you disablethe Web Server role. This daemon monitors cPanel & WHM services.Important:
We strongly recommend that you encourage your users to use port443, which uses the more secure SSL/TLS security protocol. For more information, read our More about TLS and SSLdocumentation.110POP3 113ident143IMAP 443httpdThis port serves the HTTPS needs of services on the server.Note:
- This port can allow users to access cPanel or WHM via certain subdomains. For more information, read our Service and Proxy Subdomainsdocumentation.
- In cPanel & WHM version 76 and later, the cPanel Server Daemon (
cpsrvd) listens on this port when you disablethe Web Server role. - WHM's Manage AutoSSLinterface (WHM >> Home >> SSL/TLS >> Manage AutoSSL) requires outbound access to the
store.cpanel.netserver.
465SMTP, SSL/TLS Warning:
As of cPanel & WHM version 68, we only support Transport Layer Security (TLS) protocol version 1.2.579cPHulk This port should only accept connections on the 127.0.0.xIPv4 address. Your system does notrequire that this port accept external traffic.587Exim 783Apache SpamAssassin™ 873rsync 993IMAP SSL 995POP3 SSL 2703Razor Razor is a collaborative spam-tracking database. For more information, visit the Razor website. 2077WebDAV cPanel's Web Disk interface (cPanel>> Home >> Files >> Web Disk) uses these ports. 2078WebDAV SSL 2079CalDAV and CardDAV cPanel's Calendars and Contactsinterface (cPanel >> Home >> Email>> Calendars and Contacts) uses these ports. 2080CalDAV and CardDAV (SSL) 2082cPanel Note:
To disable logins via this port and only allow SSL logins, set the Choose the closest matched domain for which that the system has a valid certificate when redirecting from non-SSL to SSL URLs. Formerly known as “Always redirect to SSL/TLS” option to On in WHM's Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings). This will redirect users to secure ports with the/cpanel,/whm, and/webmailaliases.2083cPanel SSL 2086WHM Note:
To disable logins via this port and only allow SSL logins, set the Choose the closest matched domain for which that the system has a valid certificate when redirecting from non-SSL to SSL URLs. Formerly known as “Always redirect to SSL/TLS” option to On in WHM's Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings). This will redirect users to secure ports with the/cpanel,/whm, and/webmailaliases.2087WHM SSL 2089cPanel Licensing Warning:
You must open this port in order to contact the cPanel license servers.2095Webmail Note:
To disable logins via this port and only allow SSL logins, set the Choose the closest matched domain for which that the system has a valid certificate when redirecting from non-SSL to SSL URLs. Formerly known as “Always redirect to SSL/TLS” option to On in WHM's Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings). This will redirect users to secure ports with the/cpanel,/whm, and/webmailaliases.2096Webmail SSL 2195APNs cPanel & WHM only uses this port for the Apple® Push Notification Service (APNs). For more information, read our How to Set Up iOS Push Notifications documentation. 3306MySQL® MySQL uses this port for remote database connections. 6277DCC For more information, read Apache's DCC and NetTestFirewallIssuesdocumentation. 24441Pyzor For more information, read Apache's Pyzor and NetTestFirewallIssuesdocumentation.
عند انشاء مفتاح جديد تاكد دوما من حفظك للمفتاح في جهازك ، ولمعرفة كيفية تحويل الملفات بالامتداد pem الى الامتداد ppk لاستخدامه من خلال نظام التشغيل windows على putty راجع (الدخول الى السيرفر من انظمة ويندوز عن طريق putty )
- سجل الدخول الى السيرفر عن طريق SSH بالمستخدم centos اذ انه لن يسمح لك بالتسجيل بالمستخدم root
- بعدها قم على تغيير كلمة المستخدم root
قبل الدخول الى WHM عن طريق المتصفح يجب تفعيل وضعية 1:1 NAT والا فان السي بنل لن تعمل بشكل صحيح على السيرفر
ويتم تفعيل وضعية 1:1 NAT بالدخول ك root على ssh وتنفذ الامر التالي
/scripts/build_cpnat
بعدها يجب ان تتاكد من اضهار الاي بي LOCAL مع ال REMOTE بحيث يتم توجيه الاي بي اللوكال الى الاي بي الريموت.
- تاكد من محتوى الملف /var/cpanel/cpnat من ان يحتوي على الاي بي المحلي ومن ثم الاي بي العالمي
LOCALIP REMOTEIP
راجع للمزيد من التفاصيل
بعد ذلك ادخل الى السيرفر عن طريق https://IP:2087 واستكمل متطلبات تركيب السي بنل ، لاحظ انه في خطوة اختيار الاي بي سيقوم النظام بعرض الاي بي اللوكال وبجانبة الاي بي الريموت (بغير ذلك فهناك خلل).
لاحظ انه في Basic WebHost Manager® Setup في Basic Config في The IPv4 address (only one address) to use to set up shared IPv4 virtual hosts. يجب ان يحتوي على عنوان الاي بي اللوكال ، وعندها سوف يقوم السيرفر بتعديله تلقائيا الى الاي بي الريموت.
للتاكد من ذلك يجب اضافة موقع الى السي بنل كاستضافة والتاكد من انه يتم توجيه الموقع الى محتوى public_html وليس الى الصفحة الافتراضية الحاصة بالسي بنل.
تذكر انه يمكنك اضافة volume جديد ليعمل كقرص صلب على السيرفر يمكن تشغيله كـ home للمستخدمين اذا كانت مساحة السيرفر لا تسمح
لمعرفة كيفية القيام بذلك وتشغيل القرص راجع
كذلك يمكنك تغيير مجلد البيانات لقواعد البيانات MySQL في حال كنت تشعر انه لن يكفي للاستخدام.



0 تعليقات