RebornOS (5-16-2023) | 2023-05-25 13:27 |
RebornOS-ARM (3/15/2023) | 2023-03-16 03:54 |
RebornOS Beta (2022.07.29) | 2022-11-09 05:05 |
XAMPP is a LAMP development environment, ideal for use locally. It can be downloaded from:
https://www.apachefriends.org/es/index.html
The recommended version is xampp-linux-x64-7.4.6-0-installer.run, as it is the most compatible for the most common WordPress or Prestashop developments, to name a few. Once downloaded, we give execute permission to the downloaded file. To do this, from the terminal:
chmod 755 xampp-linux-x64-7.4.6-0-installer.run
sudo ./xampp-linux-x64-7.4.6-0-installer.run
cat /etc/passwd
root:x:0:0::/root:/bin/bash bin:x:1:1::/:/usr/bin/nologin daemon:x:2:2::/:/usr/bin/nologin mail:x:8:12::/var/spool/mail:/usr/bin/nologin ftp:x:14:11::/srv/ftp:/usr/bin/nologin http:x:33:33::/srv/http:/usr/bin/nologin nobody:x:65534:65534:Nobody:/:/usr/bin/nologin dbus:x:81:81:System Message Bus:/:/usr/bin/nologin systemd-journal-remote:x:982:982:systemd Journal Remote:/:/usr/bin/nologin systemd-network:x:981:981:systemd Network Management:/:/usr/bin/nologin systemd-resolve:x:980:980:systemd Resolver:/:/usr/bin/nologin systemd-timesync:x:979:979:systemd Time Synchronization:/:/usr/bin/nologin systemd-coredump:x:978:978:systemd Core Dumper:/:/usr/bin/nologin uuidd:x:68:68::/:/usr/bin/nologin avahi:x:976:976:Avahi mDNS/DNS-SD daemon:/:/usr/bin/nologin colord:x:975:975:Color management daemon:/var/lib/colord:/usr/bin/nologin cups:x:209:209:cups helper user:/:/usr/bin/nologin dhcpcd:x:974:974:dhcpcd privilege separation:/var/lib/dhcpcd:/usr/bin/nologin dnsmasq:x:973:973:dnsmasq daemon:/:/usr/bin/nologin flatpak:x:972:972:Flatpak system helper:/:/usr/bin/nologin gdm:x:120:120:Gnome Display Manager:/var/lib/gdm:/usr/bin/nologin geoclue:x:971:971:Geoinformation service:/var/lib/geoclue:/usr/bin/nologin git:x:970:970:git daemon user:/:/usr/bin/git-shell polkitd:x:102:102:PolicyKit daemon:/:/usr/bin/nologin rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/usr/bin/nologin rtkit:x:133:133:RealtimeKit:/proc:/usr/bin/nologin usbmux:x:140:140:usbmux user:/:/usr/bin/nologin rafa:x:1000:1000:Rafael Costa Rega:/home/rafa:/bin/bash jackett:x:969:969:Jackett daemon:/var/lib/jackett:/usr/bin/nologin deluge:x:968:968:Deluge BitTorrent daemon:/srv/deluge:/usr/bin/nologin transmission:x:169:169:Transmission BitTorrent Daemon:/var/lib/transmission:/usr/bin/nologin spamd:x:182:182::/var/lib/spamassassin:/usr/bin/nologin mysql:x:967:1001::/home/mysql:/bin/bash
sudo nano /usr/share/polkit-1/actions/com.ubuntu.pkexec.xampp.policy
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> <policyconfig> <action id="com.ubuntu.pkexec.xampp.policy"> <message>Authentication is required to run XAMP Control Panel</message> <icon_name>xampp</icon_name> <defaults> <allow_any>auth_admin</allow_any> <allow_inactive>auth_admin</allow_inactive> <allow_active>auth_admin</allow_active> </defaults> <annotate key="org.freedesktop.policykit.exec.path">/opt/lampp/manager-linux-x64.run</annotate> <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate> </action> </policyconfig>
pkexec /opt/lampp/manager-linux-x64.run
sudo nano /usr/share/applications/XAMPP.desktop
[Desktop Entry] Version=1.0 Name=XAMPP Name[ca]=XAMPP Name[cs]=XAMPP Name[da]=XAMPP Name[de]=XAMPP Name[en]=XAMPP Name[es]=XAMPP Name[eu]=XAMPP Name[fa]=XAMPP Name[fr]=XAMPP Name[gl]=XAMPP Name[hu]=XAMPP Name[it]=XAMPP Name[ja]=XAMPP Name[ko]=XAMPP Name[nb]=XAMPP Name[nl]=XAMPP Name[nn]=XAMPP Name[pl]=XAMPP Name[pt]=XAMPP Name[pt_BR]=XAMPP Name[ro]=XAMPP Name[ru]=XAMPP Name[sk]=XAMPP Name[uk]=XAMPP Name[zh_CN]=XAMPP Comment=Web Development Editor Comment[ca]=Entorn local de desenvolupament LAMP Comment[cs]=Místní vývojové prostředí LAMP Comment[da]=Lokalt udviklingsmiljø LAMP Comment[de]=Lokale Entwicklungsumgebung LAMP Comment[en]=Local development environment LAMP Comment[es]=Entorno local de desarrollo LAMP Comment[eu]=Tokiko garapen ingurunea LAMP Comment[fa]=محیط توسعه محلی LAMP Comment[fr]=Environnement de développement local LAMP Comment[gl]=Ambiente de desenvolvemento local LAMP Comment[hu]=Helyi fejlesztési környezet LAMP Comment[it]=Ambiente di sviluppo locale LAMP Comment[ja]=ローカル開発環境LAMP Comment[ko]=웹 개발 편집기 Comment[nb]=Lokalt utviklingsmiljø LAMP Comment[nl]=Lokale ontwikkelingsomgeving LAMP Comment[nn]=Skriveprogram for nettsideutvikling Comment[pl]=Lokalne środowisko rozwoju LAMPA Comment[pt]=Ambiente de desenvolvimento local LAMP Comment[pt_BR]=Ambiente de desenvolvimento local LAMP Comment[ru]=Локальная среда разработки LAMP Comment[uk]=Середовище місцевого розвитку LAMP Comment[zh_CN]=网页开发编辑器 Keywords=programming;code;web;editor;development;html;php;python; Keywords[ca]=programació;codi;web;editor;desenvolupament;html;php;python; Keywords[cs]=programování;kód;kódování;web;www;editor;vývoj;html;php;python; Keywords[da]=programmering;kode;web;editor;udvikling;html;php;python; Keywords[de]=Programmierung;Code;Web;Editor;Entwicklung;HTML;PHP;Python; Keywords[es]=programación;código;web;editor;desarrollo;html;php;python; Keywords[fa]=برنامه نویسی; کد; وب; ویرایشگر; توسعه; اچ تی ام ال ; پی اچ پی; پایتون; Keywords[fr]=programmation;code;web;éditeur; développement;html;php;python; Keywords[hu]=programozás;kód;web;szerkesztő;fejlesztés;html;php;python; Keywords[it]=programmazione;codice;web;editor;sviluppo;html;php;python; Keywords[nb]=programmering;kode;web;editor;utvikling;html;php;python; Keywords[nl]=programming;code;web;ontwikkeling;development;html;php;python; Keywords[nn]=programming;code;web;editor;development;html;php;python; Keywords[pl]=programowanie;kod;sieć;edytor;rozwój;html;php;python; Keywords[uk]=programming;code;web;editor;development;html;php;python;програмування;код;редактор;веб;інтернет;розробка;пітон; Exec=pkexec /opt/lampp/manager-linux-x64.run Icon=xampp_icon_flat_circle.png Terminal=false Type=Application StartupNotify=true Categories=GTK;GNOME;Development;WebDevelopment; MimeType=
Icon=xampp_icon_flat_circle.png
Execute from the terminal:
sudo /opt/lampp/lampp 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]
XAMPP: Turned off. XAMPP: Stopping MySQL...ok. XAMPP: Starting MySQL...ok. XAMPP: The MySQL/phpMyAdmin user pma has no password set!!! XAMPP: Do you want to set a password? [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]
XAMPP: Write the password somewhere down to make sure you won't forget it!!! XAMPP: Password: XAMPP: Password (again): XAMPP: Setting new MySQL root password. XAMPP: Change phpMyAdmin's authentication method. XAMPP: The FTP password for user 'daemon' is still set to 'xampp'. XAMPP: Do you want to change the password? [yes]
XAMPP: The FTP password for user 'daemon' is still set to 'xampp'. XAMPP: Do you want to change the password? [yes]
XAMPP: Password: XAMPP: Password (again): XAMPP: Reload ProFTPD...ok. XAMPP: Done.
sudo nano /opt/lampp/etc/php.ini
max_input_vars = 17000
sudo nano /opt/lampp/phpmyadmin/config.inc.php
/** * This is needed for cookie based authentication to encrypt password in * cookie. Needs to be 32 chars long. */ $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
* This is needed for cookie based authentication to encrypt password in * cookie. Needs to be 32 chars long. */ $cfg['blowfish_secret'] = '@R3h3~*VZYYzTl{]zaphSdE3+*uUzS+%jHqoP^fng$_Y|v'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
/* Storage database and tables */ $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark'; $cfg['Servers'][$i]['relation'] = 'pma__relation'; $cfg['Servers'][$i]['table_info'] = 'pma__table_info'; $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords'; $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages'; $cfg['Servers'][$i]['column_info'] = 'pma__column_info'; $cfg['Servers'][$i]['history'] = 'pma__history'; $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs'; $cfg['Servers'][$i]['tracking'] = 'pma__tracking'; $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig'; $cfg['Servers'][$i]['recent'] = 'pma__recent'; $cfg['Servers'][$i]['users'] = 'pma__users'; $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords'; $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; $cfg['Servers'][$i]['favorite'] = 'pma__favorite'; // $cfg['Servers'][$i]['favorite'] = 'pma__favorite'; // $cfg['Servers'][$i]['users'] = 'pma__users'; // $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; // $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; // $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; // $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; // $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; // $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; /**
/* Storage database and tables */ $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark'; $cfg['Servers'][$i]['relation'] = 'pma__relation'; $cfg['Servers'][$i]['table_info'] = 'pma__table_info'; $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords'; $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages'; $cfg['Servers'][$i]['column_info'] = 'pma__column_info'; $cfg['Servers'][$i]['history'] = 'pma__history'; $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs'; $cfg['Servers'][$i]['tracking'] = 'pma__tracking'; $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig'; $cfg['Servers'][$i]['recent'] = 'pma__recent'; $cfg['Servers'][$i]['users'] = 'pma__users'; $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords'; $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; $cfg['Servers'][$i]['favorite'] = 'pma__favorite'; $cfg['Servers'][$i]['favorite'] = 'pma__favorite'; $cfg['Servers'][$i]['users'] = 'pma__users'; $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups'; $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding'; $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches'; $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns'; $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings'; $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates'; /**
http://localhost/phpmyadmin
To use XAMPP, the user must be in the daemon group. The default directory for local installations is /opt/lampp/htdocs. You could create a folder inside it, named webs for example, to have everything more organized:
sudo mkdir /opt/lampp/htdocs/webs
sudo chown -R pepe:daemon /opt/lampp/htdocs/webs/ chmod -R 777 /opt/lampp/htdocs/webs/
(1). Autostart on boot
In order to start Xampp at boot, create a systemd service for it (/etc/systemd/system/xampp.service):
sudo nano /etc/systemd/system/xampp.service
[Unit] Description=XAMPP [Service] ExecStart=/opt/lampp/lampp start ExecStop=/opt/lampp/lampp stop Type=forking [Install] WantedBy=multi-user.target
sudo systemctl enable xampp.service
sudo /opt/lampp/lampp start
sudo /opt/lampp/lampp stop
sudo /opt/lampp/lampp restart
Starting XAMPP for Linux 1.7.7... /opt/lampp/lampp: line 21: netstat: command not found /opt/lampp/lampp: line 21: netstat: command not found XAMPP: Starting Apache with SSL (and PHP5)... /opt/lampp/lampp: line 241: /bin/hostname: No such file or directory /opt/lampp/lampp: line 21: netstat: command not found XAMPP: Starting MySQL... /opt/lampp/bin/mysql.server: line 263: hostname: command not found /opt/lampp/lampp: line 21: netstat: command not found XAMPP: Starting ProFTPD... XAMPP for Linux started.
[PageInfo]
LastUpdate: 2020-05-30 10:23:41, ModifiedBy: rafael-uy
[License]
GNU Free Documentation License
[Permissions]
view:all, edit:doc editors, delete/config:doc editors