Everything about AMPLE
كل شيء عن AMPLE
AMPLE is a free local PHP development server for Windows: Apache, MariaDB, PHP, phpMyAdmin, Mailpit and Composer in one install, with a real control panel, Log Doctor and a command line. This page explains every part of it. Looking for a quick recipe? See the guides.
AMPLE خادم تطوير PHP محلي مجاني لـ Windows: Apache و MariaDB و PHP و phpMyAdmin و Mailpit و Composer في تثبيت واحد، مع لوحة تحكم حقيقية و Log Doctor وسطر أوامر. تشرح هذه الصفحة كل جزء فيه. تبحث عن خطوات سريعة؟ راجع الأدلة.
1Install AMPLEتثبيت AMPLE
Download the AMPLE setup file (AMPLE-Setup-VERSION.exe) and run it. You need Windows 10 or 11, 64-bit. No administrator rights are needed.
حمّل ملف تثبيت AMPLE (AMPLE-Setup-VERSION.exe) وشغّله. تحتاج Windows 10 أو 11 بنظام 64 بت، ولا تحتاج صلاحيات مدير.
- Install location.
C:\ampleby default; press Change to pick another folder. Avoid OneDrive folders, spaces and non-English characters in the path (ample checkwarns about them). If AMPLE is already there, it is updated and your projects and databases are kept. - Install for. Only me (recommended): only your Windows account can open or change AMPLE's files. All users of this PC: every Windows account here can use and change AMPLE.
- Install. The installer checks this PC, then downloads and sets up each part: the AMPLE control panel and command line, Apache 2.4.66, PHP 8.5.12, MariaDB 11.8.10, phpMyAdmin 5.2.3, Mailpit 1.34.0 and Composer. Every download is checked against its official SHA-256 fingerprint.
- Start. Open AMPLE and press Start all. Your sites are at
http://localhost.
- مكان التثبيت.
C:\ampleافتراضياً؛ اضغط Change لاختيار مجلد آخر. تجنّب مجلدات OneDrive والمسافات والحروف غير الإنجليزية في المسار (ينبّهكample checkإليها). وإذا كان AMPLE موجوداً هناك، يُحدَّث وتبقى مشاريعك وقواعد بياناتك. - التثبيت لـ. لي وحدي (موصى به): لا يستطيع فتح ملفات AMPLE أو تغييرها إلا حسابك في Windows. لكل مستخدمي الجهاز: تستطيع كل حسابات Windows هنا استخدام AMPLE وتغييره.
- التثبيت. يفحص المثبّت الجهاز، ثم يحمّل كل جزء ويجهّزه: لوحة تحكم AMPLE وسطر الأوامر، و Apache 2.4.66، و PHP 8.5.12، و MariaDB 11.8.10، و phpMyAdmin 5.2.3، و Mailpit 1.34.0، و Composer. وكل ملف يُطابَق مع بصمته الرسمية SHA-256.
- التشغيل. افتح AMPLE واضغط Start all. مواقعك على
http://localhost.
The program used for sharing is not part of the install. It is downloaded the first time you share a site (signed by Cloudflare, about 53 MB).
البرنامج المستخدم في المشاركة ليس جزءاً من التثبيت. يُحمَّل في أول مرة تشارك فيها موقعاً (موقّع من Cloudflare، حوالي 53 MB).
2The control panelلوحة التحكم
Open AMPLE, or run ample panel. It has seven pages, in English or Arabic, light or dark.
افتح AMPLE، أو نفّذ الأمر ample panel. فيها سبع صفحات، بالعربية أو الإنجليزية، فاتحة أو داكنة.
Home
الرئيسية (Home)
One banner tells you the state of everything: Everything is running or Everything is stopped, with Start all / Stop all. Below it, MariaDB, Apache and Mailpit each show their state, their port, and Stop (or Start), Restart and Log. Four shortcuts open localhost (your sites), phpMyAdmin, Mailpit and the htdocs folder.
لافتة واحدة تخبرك بحالة كل شيء: Everything is running أو Everything is stopped، مع Start all / Stop all. وتحتها تعرض MariaDB و Apache و Mailpit حالة كل منها ومنفذه، وأزرار Stop (أو Start) و Restart و Log. وأربعة اختصارات تفتح localhost (مواقعك) و phpMyAdmin و Mailpit ومجلد htdocs.
Sites
المواقع (Sites)
Every folder in htdocs with its address, and Open, Share and Folder. New site creates a folder with a start page that works at once; Open htdocs opens the folder. The HTTPS switch gives every site a padlock. Folders whose names can't be site names are listed with a Rename button, and your own virtual hosts in apache\conf\vhosts are shown read-only (AMPLE never changes them).
كل مجلد في htdocs مع عنوانه، وأزرار Open و Share و Folder. ينشئ New site مجلداً بصفحة بداية يعمل فوراً، ويفتح Open htdocs المجلد. ومفتاح HTTPS يعطي كل موقع قفلاً. وتظهر المجلدات التي لا تصلح أسماؤها كمواقع مع زر Rename، وتظهر مواقعك الوهمية الخاصة في apache\conf\vhosts للقراءة فقط (لا يغيّرها AMPLE أبداً).
Databases
قواعد البيانات (Databases)
Your databases with their size, and Back up and phpMyAdmin for each. New database creates an empty one in utf8mb4 (every language and emoji). Import SQL file imports any size. Back up all saves everything to the backups folder, where each backup has a Restore button. Rescue mode saves your databases when MariaDB won't start (see below).
قواعد بياناتك مع حجم كل منها، وزرا Back up و phpMyAdmin لكل واحدة. ينشئ New database قاعدة فارغة بـ utf8mb4 (لكل اللغات والرموز التعبيرية). ويستورد Import SQL file ملفاً بأي حجم. ويحفظ Back up all كل شيء في المجلد backups، حيث لكل نسخة زر Restore. ويحفظ Rescue mode قواعد بياناتك عندما لا يعمل MariaDB (راجع أدناه).
PHP
Installed versions with Use and Compare; Show available versions to download others. Settings (every PHP version): upload_max_filesize, post_max_size, memory_limit and max_execution_time, saved for every version. Extensions: switch any extension on or off for every version. Xdebug: step debugging, with a ready launch.json for VS Code. And phpinfo().
النسخ المثبّتة مع Use و Compare، و Show available versions لتحميل غيرها. الإعدادات (لكل نسخ PHP): upload_max_filesize و post_max_size و memory_limit و max_execution_time، تُحفظ لكل النسخ. الإضافات: فعّل أي إضافة أو أوقفها لكل النسخ. Xdebug: تصحيح الأخطاء خطوة بخطوة، مع ملف launch.json جاهز لـ VS Code. وأخيراً phpinfo().
البريد (Mail)
The latest emails your projects sent, a counter in the side menu, Open Mailpit, Send a test email, Delete all, and the settings to connect your projects.
آخر الرسائل التي أرسلتها مشاريعك، وعدّاد في القائمة الجانبية، و Open Mailpit، و Send a test email، و Delete all، والإعدادات اللازمة لربط مشاريعك.
Log Doctor
Every problem in your logs, explained. Pick 24 hours, 3 days or 7 days, filter by PHP, Apache, MariaDB, Mailpit or Resolved, and open a problem to read What happened?, Common causes, How to fix it, an Automatic fix when there is one, and the Original log. Open logs folder and Clear logs are at the top. More about Log Doctor
كل مشكلة في سجلاتك، مشروحة. اختر 24 ساعة أو 3 أيام أو 7 أيام، وصفِّ حسب PHP أو Apache أو MariaDB أو Mailpit أو المحلولة، وافتح أي مشكلة لتقرأ ماذا حدث؟ و الأسباب الشائعة و كيف تصلحها، وإصلاحاً تلقائياً عندما يتوفر، والسجل الأصلي. وفي الأعلى Open logs folder و Clear logs. المزيد عن Log Doctor
Settings
الإعدادات (Settings)
Changes are saved right away.
تُحفظ التغييرات فوراً.
| Appearanceالمظهر | Follow Windows, Dark or Lightمثل Windows، أو داكن، أو فاتح |
| Languageاللغة | English or Arabic, for the panel and Log Doctorالإنجليزية أو العربية، للوحة و Log Doctor |
| Designالتصميم | phpMyAdmin and Mailpit in AMPLE's look or exactly as they ship (Apache restarts for a moment)phpMyAdmin و Mailpit بشكل AMPLE أو بشكلهما الأصلي تماماً (يُعاد تشغيل Apache للحظة) |
| Terminalالطرفية | php, composer and mysql in any terminal (your user PATH, no admin), with a warning if another PHP is also in your PATHphp و composer و mysql في أي طرفية (PATH الخاص بحسابك، دون صلاحيات مدير)، مع تنبيه إذا كانت نسخة PHP أخرى في PATH |
| Portsالمنافذ | Apache HTTP, MariaDB, Mailpit SMTP and Mailpit Web; the service restarts on its new portApache HTTP و MariaDB و Mailpit SMTP و Mailpit Web؛ وتعمل الخدمة على منفذها الجديد بعد إعادة تشغيلها |
| MariaDB passwordكلمة مرور MariaDB | changed everywhere at once (MariaDB must be running)تتغير في كل الأماكن دفعة واحدة (يجب أن يعمل MariaDB) |
| This computerهذا الحاسوب | Check this PC, and exclude the AMPLE folder from Defenderفحص الجهاز، واستثناء مجلد AMPLE من فحص Defender |
| Updatesالتحديثات | Check for updates, then Update all or one part at a timeالبحث عن تحديثات، ثم تحديث الكل أو جزء واحد في كل مرة |
3Foldersالمجلدات
| Folderالمجلد | What's insideما بداخله |
|---|---|
htdocs\ | Your PHP projects. Every folder is a site.مشاريعك. كل مجلد فيه موقع. |
apache\ | Apache web server.خادم الويب Apache. |
apache\conf\vhosts\ | Your own virtual hosts, one .conf file each. Kept when Apache is upgraded.مواقعك الوهمية الخاصة، ملف .conf لكل منها. تبقى عند ترقية Apache. |
php\8.5.12\ | PHP, one folder per version. Config: php\VERSION\php.ini.PHP، مجلد لكل نسخة. الإعداد: php\VERSION\php.ini. |
mariadb\ | MariaDB database server. Config: mariadb\my.ini.خادم قواعد البيانات MariaDB. الإعداد: mariadb\my.ini. |
mariadb\data\ | Your databases. Kept when MariaDB is upgraded.قواعد بياناتك. تبقى عند ترقية MariaDB. |
phpmyadmin\ | phpMyAdmin, at http://localhost/phpmyadmin/.phpMyAdmin، على http://localhost/phpmyadmin/. |
mailpit\ | Mailpit, at http://localhost/mailpit/. Emails are kept in mailpit\data\, also on upgrade.Mailpit، على http://localhost/mailpit/. تُحفظ الرسائل في mailpit\data\، حتى عند الترقية. |
electron\ | Runs the control panel (AMPLE.exe).يشغّل لوحة التحكم (AMPLE.exe). |
logs\ | All logs in one place: apache\, php\, mariadb\, ample\.كل السجلات في مكان واحد: apache\ و php\ و mariadb\ و ample\. |
bin\ | Launchers for php, composer, mysql, mysqldump and ample, always the active versions.مشغّلات php و composer و mysql و mysqldump و ample، بالنسخ النشطة دائماً. |
backups\ | Created by ample backup and ample rescue.ينشئه ample backup و ample rescue. |
tmp\ | Temporary files (sessions, uploads, downloads). Safe to delete while stopped.ملفات مؤقتة (الجلسات، والرفع، والتحميل). يمكن حذفها والخدمات متوقفة. |
control\ | AMPLE itself: control panel, command line, config templates.AMPLE نفسه: لوحة التحكم، وسطر الأوامر، وقوالب الإعداد. |
ample.json | Your settings: ports, active PHP version, MariaDB password.إعداداتك: المنافذ، ونسخة PHP النشطة، وكلمة مرور MariaDB. |
4Sites: NAME.localhostالمواقع: NAME.localhost
Every folder in htdocs is its own site, with no setup and no admin rights. A new folder works immediately, even while Apache runs.
كل مجلد في htdocs هو موقع مستقل، دون أي إعداد ودون صلاحيات مدير. والمجلد الجديد يعمل فوراً، حتى وApache يعمل.
| Folderالمجلد | Addressالعنوان |
|---|---|
htdocs\shop\ | http://shop.localhost/ |
htdocs\my-laravel-app\ (has artisan + public\)(فيه artisan و public\) | http://my-laravel-app.localhost/ serves public\ automaticallyيعرض public\ تلقائياً |
| any folderأي مجلد | also atوأيضاً على http://localhost/FOLDER/ |
Folder names must use English letters, digits and hyphens. ample sites lists every site and tells you what to rename.
يجب أن تتكون أسماء المجلدات من حروف إنجليزية وأرقام وشرطات. يعرض ample sites كل المواقع ويخبرك بما يجب تغيير اسمه.
ample sites # every site and its address
ample sites new shop # create htdocs\shop (works at once)
ample sites rename "My Shop" my-shop # rename a folder that can't be a site
Browsers and curl understand *.localhost; Windows' own lookup (used by file_get_contents and fsockopen) does not. From PHP, use curl or http://localhost/FOLDER/.
المتصفحات و curl تفهم *.localhost؛ أما طريقة Windows في البحث عن الأسماء (التي يستخدمها file_get_contents و fsockopen) فلا تفهمها. من PHP، استخدم curl أو http://localhost/FOLDER/.
Need a custom Apache setup for one project? Put a .conf file in apache\conf\vhosts\. AMPLE loads it, shows it in Sites and never changes it.
تحتاج إعداد Apache خاصاً لمشروع؟ ضع ملف .conf في apache\conf\vhosts\. يحمّله AMPLE ويعرضه في Sites ولا يغيّره أبداً.
5HTTPS
ample https on # https://localhost and https://NAME.localhost
ample https trust # trust AMPLE's local certificate authority (Windows asks once, no admin)
ample https untrust # remove that trust again
ample https off
The local certificate authority is created on your PC and is limited by X.509 name constraints to localhost, *.localhost, 127.x and ::1. Even if its key were stolen, it could not be used to fake a real website. The site certificate is renewed automatically when you add folders.
تُنشأ سلطة الشهادات المحلية على جهازك، وهي مقيّدة بقيود أسماء X.509 بـ localhost و *.localhost و 127.x و ::1. فحتى لو سُرق مفتاحها، لا يمكن استخدامها لتزوير موقع حقيقي. وتتجدد شهادة المواقع تلقائياً عندما تضيف مجلدات.
Windows' built-in curl.exe needs --ssl-no-revoke for local certificates; browsers and PHP don't.
يحتاج curl.exe المدمج في Windows إلى --ssl-no-revoke مع الشهادات المحلية؛ أما المتصفحات و PHP فلا.
6PHP
Versions
النسخ
ample php-list # installed versions (* = active)
ample php-add 8.4 # download another version from windows.php.net
ample php-compare 8.4 # report the differences (changes nothing)
ample php-use 8.4 # switch: matches the current setup, then restarts Apache
When you switch, the new version is made to match the current one (extensions and settings), then Apache restarts. You can switch back at any time.
عند التبديل، تُضبط النسخة الجديدة لتطابق الحالية (الإضافات والإعدادات)، ثم يُعاد تشغيل Apache. ويمكنك العودة في أي وقت.
php.ini
ملف php.ini
Edit php\VERSION\php.ini by hand like in XAMPP, or use the four common settings in the panel. On the next start AMPLE notices your hand edits, saves them in ample.json, and keeps them, including when you switch versions.
عدّل php\VERSION\php.ini يدوياً كما في XAMPP، أو استخدم الإعدادات الأربعة الشائعة في اللوحة. عند التشغيل التالي يلاحظ AMPLE تعديلاتك اليدوية ويحفظها في ample.json ويبقيها، حتى عند التبديل بين النسخ.
post_max_size should be at least upload_max_filesize, or big uploads fail.
يجب أن يكون post_max_size أكبر من أو يساوي upload_max_filesize، وإلا فشل رفع الملفات الكبيرة.
Extensions and Xdebug
الإضافات و Xdebug
ample ext # list PHP extensions
ample ext intl on # switch one on (or off) for every PHP version
ample xdebug on # downloads the Xdebug build that matches the active PHP
ample xdebug off
Xdebug slows PHP down while it is on, so switch it off when you are done. Xdebug with VS Code, step by step
يبطئ Xdebug لغة PHP ما دام مفعّلاً، فأوقفه عندما تنتهي. Xdebug مع VS Code خطوة بخطوة
7Databasesقواعد البيانات
| Hostالعنوان | 127.0.0.1 |
| Portالمنفذ | 3306 |
| Userالمستخدم | root |
| Passwordكلمة المرور | none, until you set oneبدون، حتى تضع واحدة |
| phpMyAdmin | http://localhost/phpmyadmin/ |
ample db # list your databases (tables, size on disk)
ample db new shop # create an empty database in utf8mb4
ample backup [db...] # export to backups\NAME-DATE.sql.gz (all if none given)
ample import file [db] # import .sql / .sql.gz / .zip of any size, with progress
ample password NEW # change the MariaDB password everywhere at once
ample password updates MariaDB, ample.json and phpMyAdmin together. Your projects need the new password too (for example DB_PASSWORD in Laravel's .env).
يحدّث ample password كلاً من MariaDB و ample.json و phpMyAdmin معاً. وتحتاج مشاريعك كلمة المرور الجديدة أيضاً (مثل DB_PASSWORD في ملف .env الخاص بـ Laravel).
8When MariaDB won't startعندما لا يعمل MariaDB
- Ask Log Doctor first.
ample doctorexplains why. For the classic "damaged Aria log" case (often after the PC was turned off without stopping MariaDB) it offers an automatic repair. - Rescue mode. If that is not enough, press Rescue mode in Databases or run
ample rescue --yes. It moves the brokenmariadb\dataaside (nothing is deleted), starts MariaDB on a fresh data folder, opens the broken copy with a temporary recovery server, exports every database it can read tobackups\rescue-DATE\, imports them into the fresh MariaDB, and reports what was saved fully, partly or not at all.
- اسأل Log Doctor أولاً. يشرح
ample doctorالسبب. وفي حالة «تلف سجل Aria» الشائعة (غالباً بعد إطفاء الجهاز دون إيقاف MariaDB) يقترح إصلاحاً تلقائياً. - وضع الإنقاذ. إذا لم يكفِ ذلك، اضغط Rescue mode في Databases أو نفّذ
ample rescue --yes. ينقل المجلد المعطوبmariadb\dataجانباً (دون حذف أي شيء)، ويشغّل MariaDB على مجلد بيانات جديد، ويفتح النسخة المعطوبة بخادم استعادة مؤقت، ويصدّر كل قاعدة بيانات يستطيع قراءتها إلىbackups\rescue-DATE\، ثم يستوردها إلى MariaDB الجديد، ويخبرك بما حُفظ كاملاً أو جزئياً أو لم يُحفظ.
Never copy mysql\backup or single database folders over your data: that mixes files from different moments and causes hidden damage.
لا تنسخ أبداً mysql\backup أو مجلدات قواعد بيانات منفردة فوق بياناتك: فهذا يخلط ملفات من لحظات مختلفة ويسبب تلفاً خفياً.
9Email (Mailpit)البريد (Mailpit)
Every email your code sends stays on your PC and shows up at http://localhost/mailpit/ and under Mail in the panel. PHP's mail() works with no setup. For frameworks use SMTP 127.0.0.1:1025 with any username and password.
كل رسالة يرسلها كودك تبقى على جهازك وتظهر على http://localhost/mailpit/ وفي البريد في اللوحة. تعمل الدالة mail() في PHP دون أي إعداد. وفي أطر العمل استخدم SMTP على 127.0.0.1:1025 بأي اسم مستخدم وكلمة مرور.
ample mail # latest emails in Mailpit
ample mail test # send a test email
ample mail clear # delete them all
Examples for Laravel, Symfony, PHPMailer and WordPress: Test emails with Mailpit.
أمثلة لـ Laravel و Symfony و PHPMailer و WordPress: تجربة الرسائل مع Mailpit.
11Log Doctor
Log Doctor reads all the logs, recognises known problems and explains each one in English or Arabic: what happened, common causes, a step-by-step fix, and often a one-click fix (raise a PHP limit, enable an extension, pick a free port, repair MariaDB's Aria files after an unclean shutdown…). Repeated errors are grouped, and problems that stopped a service are hidden once the service starts again.
يقرأ Log Doctor كل السجلات، ويتعرّف على المشاكل المعروفة، ويشرح كل واحدة بالعربية أو الإنجليزية: ماذا حدث، والأسباب الشائعة، والحل خطوة بخطوة، وغالباً إصلاحاً بضغطة واحدة (رفع حد في PHP، أو تفعيل إضافة، أو اختيار منفذ متاح، أو إصلاح ملفات Aria في MariaDB بعد إيقاف غير سليم…). وتُجمَّع الأخطاء المتكررة، وتختفي المشاكل التي أوقفت خدمة ما بمجرد أن تعمل الخدمة من جديد.
It knows 125 problems, including:
يعرف 125 مشكلة، منها:
ample doctor # the problems in the last 24 hours
ample doctor 3 # details and how to fix problem 3
ample doctor fix 3 # apply the automatic fix for problem 3
ample lang ar # explanations in Arabic (or: ample lang en)
12Is this PC ready?هل هذا الجهاز جاهز؟
ample check (or Settings → Check this PC) tests Windows (64-bit / ARM), the Visual C++ runtime that Apache and PHP need, Windows Smart App Control (and which AMPLE files it blocked), whether every program really runs, Microsoft Defender, the folder location (non-English characters, spaces, OneDrive), the ports and the disk space, and explains each problem with a fix.
يفحص ample check (أو الإعدادات ← Check this PC) نظام Windows (64 بت / ARM)، و Visual C++ الذي يحتاجه Apache و PHP، و Smart App Control (وأي ملفات من AMPLE منعها)، وهل يعمل كل برنامج فعلاً، و Microsoft Defender، ومكان المجلد (حروف غير إنجليزية، أو مسافات، أو OneDrive)، والمنافذ، والمساحة الفارغة، ويشرح كل مشكلة مع حلها.
Smart App Control
AMPLE's components are open-source builds that are not digitally signed. When Smart App Control is on, Windows blocks unsigned files that are still new, so a release from last week may be blocked while older ones run. You don't have to turn it off: ample update tests every new version before using it and keeps the current one if Windows blocks it. Turning Smart App Control off is only ever your own choice.
مكوّنات AMPLE نسخ مفتوحة المصدر غير موقّعة رقمياً. وعندما يكون Smart App Control مفعّلاً، يمنع Windows الملفات غير الموقّعة ما دامت جديدة، فقد تُمنع نسخة صدرت الأسبوع الماضي بينما تعمل الأقدم. لست مضطراً لإيقافه: يجرّب ample update كل نسخة جديدة قبل استخدامها، ويُبقي الحالية إذا منعها Windows. وإيقاف Smart App Control قرارك أنت دائماً.
Microsoft Defender
Real-time scanning of every PHP, database and log file can slow big projects. ample check --fix defender excludes the AMPLE folder (asks for administrator once); then keep only your own projects there.
الفحص اللحظي لكل ملف PHP وقاعدة بيانات وسجل قد يبطئ المشاريع الكبيرة. يستثني ample check --fix defender مجلد AMPLE (ويطلب صلاحيات مدير مرة واحدة)؛ وبعدها أبقِ فيه مشاريعك أنت فقط.
13Updatesالتحديثات
ample update # check every part against its official source (changes nothing)
ample update all # update everything that has a new version
ample update mariadb # or one part: apache, php, mariadb, phpmyadmin, mailpit, composer, cacert, xdebug
Or press Check for updates in Settings. Updates are safe:
أو اضغط Check for updates في الإعدادات. والتحديثات آمنة:
- Every download is checked against its official SHA-256.
- Your data is kept:
mariadb\data,apache\conf\vhosts,apache\conf\ssl,mailpit\data. - If a new Apache or Mailpit doesn't start, the old version is restored automatically.
- MariaDB gets a temporary copy of its data folder, restored on failure and deleted on success.
- A new PHP patch is installed next to the old one and switched to with your settings carried over.
- New versions are written to
control\components.json, soample setupon another PC installs the same ones.
- كل ملف يُحمَّل يُطابَق مع بصمته الرسمية SHA-256.
- تبقى بياناتك:
mariadb\dataوapache\conf\vhostsوapache\conf\sslوmailpit\data. - إذا لم يعمل Apache أو Mailpit الجديد، تعود النسخة القديمة تلقائياً.
- يحصل MariaDB على نسخة مؤقتة من مجلد بياناته، تُستعاد عند الفشل وتُحذف عند النجاح.
- يُثبَّت تحديث PHP الجديد بجانب القديم، ويُبدَّل إليه مع نقل إعداداتك.
- تُكتب النسخ الجديدة في
control\components.json، فيثبّتample setupالنسخ نفسها على جهاز آخر.
ample setup downloads or repairs every component.
يحمّل ample setup كل المكوّنات أو يصلحها.
14Moving from XAMPPالانتقال من XAMPP
AMPLE never writes into the XAMPP folder. Projects are copied; databases are exported from a temporary copy of mysql\data, opened with XAMPP's own MariaDB. Every step shows a plan first and only acts with --yes.
لا يكتب AMPLE أبداً داخل مجلد XAMPP. تُنسخ المشاريع، وتُصدَّر قواعد البيانات من نسخة مؤقتة من mysql\data تُفتح بـ MariaDB الخاص بـ XAMPP. كل خطوة تعرض خطة أولاً ولا تنفّذ إلا مع --yes.
ample xampp scan # what can be imported + Log Doctor on XAMPP's logs (read-only)
ample xampp import projects [a,b] --yes # copy htdocs projects
ample xampp import databases --yes # databases + non-root users and grants
ample xampp import php 1,3 --yes # pick which of YOUR php.ini changes to keep
ample xampp import vhosts --yes # httpd-vhosts.conf -> apache\conf\vhosts
ample xampp undo --yes # remove everything imported
15Config filesملفات الإعداد
httpd.conf, php.ini, my.ini and phpMyAdmin's config.inc.php are regenerated on every start, built from ample.json and the templates in control\templates\. Edit the templates or use the control panel; edits made directly in the generated files are overwritten. The exception is php.ini: your hand edits there are noticed and kept.
يُعاد إنشاء httpd.conf و php.ini و my.ini وملف config.inc.php الخاص بـ phpMyAdmin في كل تشغيل، من ample.json والقوالب الموجودة في control\templates\. عدّل القوالب أو استخدم لوحة التحكم؛ فالتعديلات المباشرة على الملفات الناتجة تُستبدل. والاستثناء هو php.ini: تُلاحَظ تعديلاتك اليدوية فيه وتُحفظ.
ample config # regenerate the config files from the templates + ample.json
16Logsالسجلات
| Fileالملف | Containsيحتوي على |
|---|---|
logs\apache\access.log | Every request, with time, status, method, path, duration and sizeكل طلب، مع الوقت والحالة والطريقة والمسار والمدة والحجم |
logs\apache\error.log | Apache and PHP fatal errorsأخطاء Apache وأخطاء PHP القاتلة |
logs\php\error.log | PHP errors, warnings, deprecationsأخطاء PHP وتحذيراتها والتنبيهات على الميزات القديمة |
logs\mariadb\error.log | MariaDB start, stop and errorsتشغيل MariaDB وإيقافه وأخطاؤه |
logs\mariadb\slow.log | Queries slower than 2 secondsالاستعلامات الأبطأ من ثانيتين |
logs\ample\ample.log | What AMPLE did: start, stop, port conflicts, setupما فعله AMPLE: التشغيل والإيقاف وتعارض المنافذ والتثبيت |
logs\share\access.log | Visits through a shared linkالزيارات عبر رابط المشاركة |
Logs are never rotated or archived. When everything works, empty them so the next problem is the only thing you see (safe while the services run):
لا تُدوَّر السجلات ولا تُؤرشف أبداً. عندما يعمل كل شيء، امسحها لتكون المشكلة التالية هي الوحيدة التي تراها (آمن والخدمات تعمل):
ample logs # list log files and sizes
ample logs clear # empty all logs
ample logs clear php # only one: apache, php, mariadb, ample
17Portsالمنافذ
| Serviceالخدمة | Defaultالافتراضي |
|---|---|
| Apache HTTP | 80 |
| Apache HTTPS | 443 |
| MariaDB | 3306 |
| Mailpit SMTP | 1025 |
| Mailpit Web | 8025 |
| Share (private, 127.0.0.1 only)المشاركة (خاص، 127.0.0.1 فقط) | 8099 |
ample port # show the ports
ample port http 8080 # change one (checks it is free first)
After changing a port, use the new one in your projects too (for example DB_PORT in .env).
بعد تغيير منفذ، استخدم الجديد في مشاريعك أيضاً (مثل DB_PORT في ملف .env).
18All ample commandsكل أوامر ample
Run them in a terminal inside the AMPLE folder, or anywhere after ample path add.
نفّذها في طرفية داخل مجلد AMPLE، أو من أي مكان بعد ample path add.
| Commandالأمر | What it doesماذا يفعل |
|---|---|
ample panel | open the control panelفتح لوحة التحكم |
ample start [service] | start MariaDB, Apache and Mailpit (or one)تشغيل MariaDB و Apache و Mailpit (أو واحدة) |
ample stop [service] | stop them; MariaDB shuts down cleanlyإيقافها؛ ويُغلَق MariaDB بشكل سليم |
ample restart · ample status | restart · show what is runningإعادة التشغيل · عرض ما يعمل |
ample sites · sites new · sites rename | list, create and rename sitesعرض المواقع وإنشاؤها وإعادة تسميتها |
ample https on|off|trust|untrust | trusted local HTTPSHTTPS محلي موثوق |
ample php-list · php-add · php-compare · php-use | PHP versionsنسخ PHP |
ample ext [name on|off] | PHP extensions, for every versionإضافات PHP، لكل النسخ |
ample xdebug on|off | step debuggingتصحيح الأخطاء خطوة بخطوة |
ample db · db new NAME | list databases · create one in utf8mb4عرض قواعد البيانات · إنشاء واحدة بـ utf8mb4 |
ample backup [db...] | export to backups\ as .sql.gzالتصدير إلى backups\ كملفات .sql.gz |
ample import FILE [db] | import .sql / .sql.gz / .zip of any sizeاستيراد .sql أو .sql.gz أو .zip بأي حجم |
ample rescue | save your databases when MariaDB won't startإنقاذ قواعد بياناتك عندما لا يعمل MariaDB |
ample password NEW | change the MariaDB password everywhereتغيير كلمة مرور MariaDB في كل الأماكن |
ample mail [test|clear] | latest emails · send a test · delete allآخر الرسائل · إرسال رسالة تجريبية · حذف الكل |
ample share SITE · share stop | a public link to one site · close itرابط عام لموقع واحد · إغلاقه |
ample doctor [n] · doctor fix n | explain problems · apply a fixشرح المشاكل · تطبيق إصلاح |
ample lang ar|en | language of Log Doctorلغة Log Doctor |
ample check [--fix defender] | is this PC ready?هل هذا الجهاز جاهز؟ |
ample path add|remove | php, composer, mysql, ample in any terminalphp و composer و mysql و ample في أي طرفية |
ample design ... | AMPLE's look or the original for phpMyAdmin and Mailpitشكل AMPLE أو الشكل الأصلي لـ phpMyAdmin و Mailpit |
ample port [name number] | show or change a portعرض منفذ أو تغييره |
ample logs [clear] | list or empty the logsعرض السجلات أو مسحها |
ample update [all|name] | check or update safely, with rollbackالبحث عن تحديثات أو التحديث بأمان، مع التراجع عند الفشل |
ample xampp scan|import|undo | move over from XAMPPالانتقال من XAMPP |
ample config · ample setup | regenerate config · download or repair componentsإعادة إنشاء الإعداد · تحميل المكوّنات أو إصلاحها |