Xampp on linux x64

XAMPP

XAMPP is an easy to install Apache distribution containing MariaDB, PHP, Perl and ProFTPD. It contains: Apache, MariaDB, PHP & PEAR, Perl, ProFTPD, phpMyAdmin, OpenSSL, GD, Freetype2, libjpeg, libpng, gdbm, zlib, expat, Sablotron, libxml, Ming, Webalizer, pdf class, ncurses, mod_perl, FreeTDS, gettext, mcrypt, mhash, eAccelerator, SQLite and IMAP C-Client.

Installation

Configuration

The default configuration should work out of the box. Setting the individual parts of XAMPP can by made by editing following files:

  • /opt/lampp/etc/httpd.conf — Apache configuration. For example you can change folder with web page’s source files.
  • /opt/lampp/etc/php.ini — PHP configuration.
  • /opt/lampp/phpmyadmin/config.inc.php — phpMyAdmin configuration.
  • /opt/lampp/etc/proftpd.conf — ProFTPD configuration.
  • /opt/lampp/etc/my.cnf — MySQL configuration.

If you would like to set up security of server, just run

You will be asked step by step to choose passwords for web page’s access, user «pma» for phpMyAdmin, user «root» for MySQL and user «daemon» for ProFTPD.

Usage

Use the following commands to control XAMPP:

# /opt/lampp/xampp start,stop,restart

Alternatively, you can start, stop, or restart xampp.service .

Autostart on boot

In order to start XAMPP at boot, enable xampp.service .

Tips and tricks

Hosting files outside the htdocs directory

The document root (web root) directory is located at /opt/lampp/htdocs/ . All files placed in this directory will be processed by the web server.

To host other files on your system with XAMPP, you can configure an alias with Apache.

  • Edit Apache’s /opt/lampp/etc/httpd.conf with your favorite editor.
  • Find DocumentRoot , you will see something like:
DocumentRoot "/opt/lampp/htdocs" . . 
yourDirectory/"> Options Indexes FollowSymLinks ExecCGI Includes AllowOverride All Require all granted 
 # # Redirect: Allows you to tell clients about documents that used to # exist in your server's namespace, but do not anymore. The client # will make a new request for the document at its new location. # Example: # Redirect permanent /foo http://www.example.com/bar . 
Alias /yourAlias /yourDirectory/
User yourUser Group yourGroup 

This will allow you to host files from your home directory (or any other directory) with XAMPP.

In the above example, you can access the files by pointing your web browser to localhost/yourAlias .

Debugging and profiling with Xdebug and XAMPP

You must first download the XAMPP Development Tools from the same download page, https://www.apachefriends.org/en/xampp-linux.html [dead link 2022-09-23 ⓘ] .

Читайте также:  Linux mint установить поверх

Extract this into your XAMPP directory:

# tar xvfz xampp-linux-devel-x.x.x.tar.gz -C /opt

You should be able to successfully run /opt/lampp/bin/phpize in your xdebug folder.

Local test server security

Apache, MySQL and ProFTPD can be configured so that they only listen to requests from your own computer. For most test systems this is fine and it greatly reduces the risk because the services are not reachable from the Internet.

Before you start XAMPP for the first time find and edit these files:

For Apache edit the files /opt/lampp/etc/httpd.conf and /opt/lampp/etc/extra/httpd-ssl.conf . Look for lines starting with «Listen» such as

For MySQL open the file /opt/lampp/etc/my.cnf find the section «[mysqld]» and add this line

For ProFTPD, add the following lines to /opt/lampp/etc/proftpd.conf under the «DefaultServer» section

DefaultAddress 127.0.0.1 SocketBindTight on

After starting the services, verify the result by going to a command window and start and execute:

The local address column should always start with 127.0.0.1 or ::1, never with 0.0.0.0.

Manual installation

To install XAMPP manually instead of following #Installation, download the installer from the website, make it executable and run it by typing:

# ./xampp-linux-x64-version-installer.run

Note: The libxcrypt-compat , net-tools and inetutils packages are required dependencies, so make sure they are installed before launching XAMPP.

Tip: By default the installer uses the Qt backend for its UI. If you want it to use the GTK backend instead, launch:

# ./xampp-linux-x64-version-installer.run --mode gtk

If you do not want to use any graphical interface and prefer to install XAMPP directly from the terminal, launch:

# ./xampp-linux-x64-version-installer.run --mode text

For further options, launch as normal user:

$ ./xampp-linux-x64-version-installer.run --help

You can now create a systemd service for XAMPP:

/etc/systemd/system/xampp.service
[Unit] Description=XAMPP [Service] ExecStart=/opt/lampp/xampp start ExecStop=/opt/lampp/xampp stop Type=forking [Install] WantedBy=multi-user.target

Manual removal

If you have installed XAMPP manually you will need to remove it manually as well. Be sure to stop all XAMPP services.

All the files needed by XAMPP to be installed are located in the previous /opt/lampp folder. So, to uninstall XAMPP:

# rm /etc/systemd/system/xampp.service # rm -r /opt/lampp
  • Be sure to backup your files before doing this (such as files in /opt/lampp/htdocs ).
  • If you created symlinks, you may need to destroy them too.
  • Do not use this method if you have installed the package; uninstall the package instead.

Troubleshooting

PhpMyAdmin 403 Access Forbidden

If your http://localhost/phpmyadmin returns «403 Access Forbidden», you need to edit the following settings in /opt/lampp/etc/extra/httpd-xampp.conf :

 AllowOverride AuthConfig Limit #Order allow,deny #Allow from all Require all granted 

Источник

Читайте также:  Linux get file folder

Скачать

XAMPP — простой в установке дистрибутив Apache, содержащий MariaDB, PHP и Perl. Просто скачайте и запустите программу установки. Это действительно так просто.

XAMPP для Windows 8.0.28, 8.1.17 & 8.2.4

Включает: Apache 2.4.56, MariaDB 10.4.28, PHP 8.0.28, phpMyAdmin 5.2.1, OpenSSL 1.1.1t, XAMPP Control Panel 3.2.4, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 8.5.87 (with mod_proxy_ajp as connector), Strawberry Perl 5.32.1.1 Portable

Включает: Apache 2.4.56, MariaDB 10.4.28, PHP 8.1.17, phpMyAdmin 5.2.1, OpenSSL 1.1.1t, XAMPP Control Panel 3.2.4, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 8.5.87 (with mod_proxy_ajp as connector), Strawberry Perl 5.32.1.1 Portable

Включает: Apache 2.4.56, MariaDB 10.4.28, PHP 8.2.4, phpMyAdmin 5.2.1, OpenSSL 1.1.1t, XAMPP Control Panel 3.2.4, Webalizer 2.23-04, Mercury Mail Transport System 4.63, FileZilla FTP Server 0.9.41, Tomcat 8.5.87 (with mod_proxy_ajp as connector), Strawberry Perl 5.32.1.1 Portable

Windows 2008, 2012, Vista, 7, 8 (Important: XP or 2003 not supported)

Windows XP or 2003 are not supported. You can download a compatible version of XAMPP for these platforms here.

XAMPP для Linux 8.0.28, 8.1.17 & 8.2.4

Включает: Apache 2.4.56, MariaDB 10.4.28, PHP 8.0.28 & PEAR + SQLite 2.8.17/3.38.5 + multibyte (mbstring) support, Perl 5.34.1, ProFTPD 1.3.6, phpMyAdmin 5.2.1, OpenSSL 1.1.1t, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.12, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4

Включает: Apache 2.4.56, MariaDB 10.4.28, PHP 8.1.17 & PEAR + SQLite 2.8.17/3.38.5 + multibyte (mbstring) support, Perl 5.34.1, ProFTPD 1.3.6, phpMyAdmin 5.2.1, OpenSSL 1.1.1t, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.12, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4

Включает: Apache 2.4.56, MariaDB 10.4.28, PHP 8.2.4 & PEAR + SQLite 2.8.17/3.38.5 + multibyte (mbstring) support, Perl 5.34.1, ProFTPD 1.3.6, phpMyAdmin 5.2.1, OpenSSL 1.1.1t, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.12, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4

Читайте также:  Kaspersky для linux команды

Most all distributions of Linux are supported, including Debian, RedHat, CentOS, Ubuntu, Fedora, Gentoo, Arch, SUSE.

XAMPP для OS X 8.0.28, 8.1.17 & 8.2.4

Включает: Apache 2.4.56, MariaDB 10.4.28, PHP 8.0.28 & PEAR + SQLite 2.8.17/3.38.5 + multibyte (mbstring) support, Perl 5.34.1, ProFTPD 1.3.6, phpMyAdmin 5.2.1, OpenSSL 1.1.1t, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.12, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4

Включает: Apache 2.4.56, MariaDB 10.4.28, PHP 8.1.17 & PEAR + SQLite 2.8.17/3.38.5 + multibyte (mbstring) support, Perl 5.34.1, ProFTPD 1.3.6, phpMyAdmin 5.2.1, OpenSSL 1.1.1t, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.12, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4

Включает: Apache 2.4.56, MariaDB 10.4.28, PHP 8.2.4 & PEAR + SQLite 2.8.17/3.38.5 + multibyte (mbstring) support, Perl 5.34.1, ProFTPD 1.3.6, phpMyAdmin 5.2.1, OpenSSL 1.1.1t, GD 2.2.5, Freetype2 2.4.8, libpng 1.6.37, gdbm 1.8.3, zlib 1.2.11, expat 2.0.1, Sablotron 1.0.3, libxml 2.0.1, Ming 0.4.5, Webalizer 2.23-05, pdf class 0.11.7, ncurses 5.9, pdf class 0.11.7, mod_perl 2.0.12, FreeTDS 0.91, gettext 0.19.8.1, IMAP C-Client 2007e, OpenLDAP (client) 2.4.48, mcrypt 2.5.8, mhash 0.9.9.9, cUrl 7.53.1, libxslt 1.1.33, libapreq 2.13, FPDF 1.7, ICU4C Library 66.1, APR 1.5.2, APR-utils 1.5.4

Mac OS X 10.6 or later. For VMs: Mac OS X 10.6 or later and intel (x64) CPU; not supported on M1 (arm64) CPUs.

A Native installer installs MariaDB, PHP, Perl, etc. directly onto your macOS system. It supports intel (x64) or Apple M1 (arm64) CPUs.

Документация/ЧАВО

Не существует руководства по использованию XAMPP. Мы написали документацию в форме ЧаВо. У вас есть вопрос на который тут нет ответа? Попробуйте Форумы или Stack Overflow.

Copyright (c) 2023, Apache Friends

  • Блог
  • Политика приватности
  • CDN предусмотрено

Источник

Оцените статью
Adblock
detector