Наша совместная команда Banwar.org

Связаться с нами

  • (097) ?601-88-87
    (067) ?493-44-27
    (096) ?830-00-01

Статьи

XAMPP FAQs for Mac OS X

What is the difference between XAMPP for OS X and XAMPP-VM?

  • XAMPP for OS X is a native installer for OS X. It installs Apache, PHP and other XAMPP components directly on your OS X system, in the / Applications / XAMPP folder.
  • XAMPP-VM is a virtual machine for OS X. It includes Apache, PHP and other XAMPP components and runs them in a Linux-based virtual machine on your OS X system.

For more information, refer to the blog post at https://www.apachefriends.org/blog/new_xampp_20170628.html .

. Як мені встановити XAMPP на Mac OS X?

Щоб встановити XAMPP просто зробіть наступне:

  • Відкрийте DMG-образ.
  • Двічі клікніть по картинці щоб запустити процес установки.

От і все. Тепер XAMPP встановлений під каталогом / Applications / XAMPP.

Does XAMPP include MySQL or MariaDB?

Since XAMPP 5.5.30 and 5.6.14, XAMPP ships MariaDB instead of MySQL. The commands and tools are the same for both.

Як я мені запустити XAMPP?

Щоб запустити XAMPP просто відкрийте XAMPP Control і запустіть Apache, MySQL та ProFTPD. Ім'я для XAMPP Control "manager-osx".

Як я мені зупинити XAMPP?

Щоб зупинити XAMPP просто відкрийте XAMPP Control і зупиніть сервера. Ім'я для XAMPP Control "manager-osx".

Як я мені перевірити що все спрацювало?

Введіть наступну URL у веб браузер:

http: // localhost

You should see the XAMPP start page, as shown below.

You should see the XAMPP start page, as shown below

Чи готовий XAMPP до виробничого використання?

XAMPP не призначений для виробничого використання, а тільки для середовищ розробки. XAMPP налаштований таким чином щоб бути якомога відкритішим і дозволяти розробнику все що він / вона захоче. Для середовищ розробки це прекрасно, але у виробничому середовищі це може бути згубно.

Ось список відсутніх заходів безпеки в XAMPP:

  1. MySQL адміністратор (root) не має пароля.
  2. MySQL сервер доступний через мережу.
  3. ProFTPD uses the password "lampp" for user "daemon".

Щоб виправити більшість прогалин в безпеці просто викличте наступну команду:

sudo / Applications / XAMPP / xamppfiles / xampp security

Це запустить невелику перевірку безпеки щоб зробити установку XAMPP безпечною.

Що означають повідомлення про помилки які я бачу коли запускаю XAMPP?

Ви можете отримати декілька повідомлень про ощибки коли запускаєте XAMPP:

LAMPP-Apache is already running.
An Apache daemon is already running.

Скрипт запуску LAMPP не зміг запустити XAMPP-Apache бо екземпляр Apache вже запущений. Щоб запустити XAMPP правильно, спочатку вам потрібно зупинити цей процес.

LAMPP-MySQL is already running.
A MySQL daemon is already running.

В основному це з тих же причин що і вище зазначена помилка. Скрипт запуску LAMPP нащёл процес уже запущений на вашій системі. Щоб запустити LAMPP правильно, спочатку вам потрібно зупинити цей процес.

Apache does not seem to start. What can I do?

Ця помилка може мати місце з кількох причин. Apache показує цю ощибки при різних умовах. Щоб знайти конкретну причину нам потрібно буде трохи поісследовать:

tail -2 / Applications / XAMPP / logs / error_log

Якщо ви отримали повідомлення про помилку відвідайте сторінки нашої спільноти для допомоги.

Як мені зробити більш безпечною мою установку XAMPP?

В установці за замовчуванням, в XAMPP не встановлено паролів і запускати XAMPP з такою конфігурацією доступною іншим, не рекомендується.

Просто введіть наступну команду (як root) щоб почати просту перевірку безпеки:

sudo / Applications / XAMPP / xamppfiles / xampp security

Тепер ви повинні видить наступний діалог на вашому екрані:

XAMPP: Quick security check ... XAMPP: MySQL is accessable via network. XAMPP: Normaly that's not recommended. Do you want me to turn it off? [Yes] yes XAMPP: Turned off. XAMPP: Stopping MySQL ... XAMPP: Starting MySQL ... XAMPP: The MySQL / phpMyAdmin user pma has no password set !!! XAMPP: Do you want to set a password? [Yes] yes XAMPP: Password: ****** XAMPP: Password (again): ****** XAMPP: Setting new MySQL pma password. XAMPP: Setting phpMyAdmin's pma password to the new one. XAMPP: MySQL has no root passwort set !!! XAMPP: Do you want to set a password? [Yes] yes XAMPP: Write the passworde somewhere down to make sure you will not forget it !!! XAMPP: Password: ****** XAMPP: Password (again): ****** XAMPP: Setting new MySQL root password. XAMPP: Setting phpMyAdmin's root password to the new one. XAMPP: The FTP password for user 'nobody' is still set to 'lampp'. XAMPP: Do you want to change the password? [Yes] yes XAMPP: Password: ****** XAMPP: Password (again): ****** XAMPP: Reload ProFTPD ... XAMPP: Done.

(1) Установка пароля захистить демонстративні сторінки XAMPP (http: // localhost / xampp /) використовують цей пароль. Ім'я користувача 'lampp'!

Після виклику цієї команди ваша установка XAMPP повинна бути більш безпечною.

Як мені активувати OCI8 / Oracle розширення для PHP?

Щоб активувати OCI8 / Oracle розширення для PHP ласка запустіть таку команду:

sudo / Applications / XAMPP / xamppfiles / lampp oci8

З'явиться наступний діалог:

Please enter the path to your Oracle or Instant Client installation: [/Applications/XAMPP/xamppfiles/lib/instantclient-11.2.0.3.0] installing symlinks ... patching php.ini ... OCI8 add-on activation likely successful. LAMPP: Stopping Apache with SSL ... LAMPP: Starting Apache with SSL ...

Тепер розширення должо бути активована.

How do I enable access to phpMyAdmin from the outside?

In the basic configuration of XAMPP, phpMyAdmin is accessible only from the same host that XAMPP is running on, at http://127.0.0.1 or http: // localhost.

IMPORTANT: Enabling external access for phpMyAdmin in production environments is a significant security risk. You are strongly advised to only allow access from localhost. A remote attacker could take advantage of any existing vulnerability for executing code or for modifying your data.

To enable remote access to phpMyAdmin, follow these steps:

  • Edit the xamppfiles / etc / extra / httpd-xampp.conf file in your XAMPP installation directory.
  • Within this file, find the lines below.

    Alias ​​/ phpmyadmin "/ Applications / XAMPP / xamppfiles / phpmyadmin" <Directory "/ Applications / XAMPP / xamppfiles / phpmyadmin"> AllowOverride AuthConfig Require local

  • Then replace 'Require local' with 'Require all granted'.
  • Alias ​​/ phpmyadmin "/ Applications / XAMPP / xamppfiles / phpmyadmin" <Directory "/ Applications / XAMPP / xamppfiles / phpmyadmin"> AllowOverride AuthConfig Require all granted

  • Restart the Apache server using the XAMPP control panel.

Where are the main XAMPP configuration files?

The main XAMPP configuration files are located as follows:

  • Apache configuration file: /Applications/XAMPP/xamppfiles/etc/httpd.conf, /Applications/XAMPP/xamppfiles/etc/extra/httpd-xampp.conf
  • PHP configuration file: /Applications/XAMPP/xamppfiles/etc/php.ini
  • MySQL configuration file: /Applications/XAMPP/xamppfiles/etc/my.cnf
  • ProFTPD configuration file: /Applications/XAMPP/xamppfiles/etc/proftpd.conf

How do I send email with XAMPP?

To send email with XAMPP, use the PEAR Mail and Net_SMTP packages, which allow you to send email using an external SMTP account (such as a Gmail account). Follow these steps:

  • Install the Mail and Net_SMTP PEAR modules: pear install Net_SMTP Mail Note that if these packages are already installed in your system you see the messages below when executing that command: Ignoring installed package pear / Net_SMTP Ignoring installed package pear / Mail Nothing to install
  • Create the following example script in your "htdocs" directory to send an email: <? Php require_once "Mail.php"; $ From = "[email protected]"; $ To = '[email protected]'; $ Host = "ssl: //smtp.gmail.com"; $ Port = "465"; $ Username = '[email protected]'; $ Password = 'your-gmail-password'; $ Subject = "test"; $ Body = "test"; $ Headers = array ( 'From' => $ from, 'To' => $ to, 'Subject' => $ subject); $ Smtp = Mail :: factory ( 'smtp', array ( 'host' => $ host, 'port' => $ port, 'auth' => true, 'username' => $ username, 'password' => $ password)); $ Mail = $ smtp-> send ($ to, $ headers, $ body); if (PEAR :: isError ($ mail)) {echo ($ mail-> getMessage ()); } Else {echo ( "Message successfully sent! \ N"); }?>

    Remember to replace the dummy values ​​shown with your actual Gmail address and account password. If you do not plan to use Gmail's SMTP server, replace the SMTP host details with appropriate values ​​for your organization or ISP's SMTP server.

  • Execute the script by browsing to it using your Web browser. You should see a notification that the message was successfully sent, and the message should be delivered to the recipient email address.

Як мені зробити резервне копіювання або встановити мою XAMPP систему?

Попередження: Функції резервного копіювання та востановления ще розробляються і можуть працювати неправильно.

Ви можете створити резервну копію даних за допомогою:

sudo / Applications / XAMPP / xamppfiles / xampp backup

або

sudo / Applications / XAMPP / xamppfiles / xampp backup secret

Де "secret" це ваш MySQL root пароль. Ця команда виведе наступне:

Backing up databases ... Backing up configuration, log and htdocs files ... Calculating checksums ... Building final backup file ... Backup finished. Take care of /Applications/XAMPP/xamppfiles/backup/xampp-backup-22-01-14.sh

Файл /Applications/XAMPP/xamppfiles/backup/xampp-backup-22-01-14.sh (у вище зазначеному прикладі) містить резервну копію ваших даних. Перемістіть цей файл в безпечне місце.

На новій машині вам потрібна така ж версія XAMPP, як на вашій початкової / вихідної машині.

sudo sh xampp-backup-22-01-14.sh

Ви повинні бачити щось на зразок цього:

Checking integrity of files ... Restoring configuration, log and htdocs files ... Checking versions ... Installed: XAMPP 1.4.2 Backup from: XAMPP 1.4.2 Restoring MySQL databases ... Restoring MySQL user databases ... Backup complete . Have fun! You may need to restart XAMPP to complete the restore.

От і все. Пам'ятайте це ще не зріла (beta) функція.

What is the difference between XAMPP for OS X and XAMPP-VM?
Як мені встановити XAMPP на Mac OS X?
Does XAMPP include MySQL or MariaDB?
Як я мені запустити XAMPP?
Як я мені зупинити XAMPP?
Як я мені перевірити що все спрацювало?
Чи готовий XAMPP до виробничого використання?
Що означають повідомлення про помилки які я бачу коли запускаю XAMPP?
What can I do?
Як мені зробити більш безпечною мою установку XAMPP?

Новости

Banwar.org
Наша совместная команда Banwar.org. Сайт казино "Пари Матч" теперь доступен для всех желающих, жаждущих волнения и азартных приключений.