Tag: xampp

  • Restart Services in Xampp Linux

    You can restart services on xampp linux using

    /opt/lampp/lampp
    

    To restart, use

    /opt/lampp/lampp restart
    

    Here are other available options

    root@ip-172-31-36-153:~# /opt/lampp/lampp --help
    Usage: lampp 
    
    	start         Start XAMPP (Apache, MySQL and eventually others)
    	startapache   Start only Apache
    	startmysql    Start only MySQL
    	startftp      Start only ProFTPD
    
    	stop          Stop XAMPP (Apache, MySQL and eventually others)
    	stopapache    Stop only Apache
    	stopmysql     Stop only MySQL
    	stopftp       Stop only ProFTPD
    
    	reload        Reload XAMPP (Apache, MySQL and eventually others)
    	reloadapache  Reload only Apache
    	reloadmysql   Reload only MySQL
    	reloadftp     Reload only ProFTPD
    
    	restart       Stop and start XAMPP
    	security      Check XAMPP's security
    
    	enablessl     Enable SSL support for Apache
    	disablessl    Disable SSL support for Apache
    
    	backup        Make backup file of your XAMPP config, log and data files
    
    	oci8          Enable the oci8 extenssion
    
    	panel         Starts graphical XAMPP control panel
    
    root@ip-172-31-36-153:~# 
    

    See Auto start XAMPP on Boot

  • Allow phpMyAdmin remote access on xampp

    xampp server only allow access to phpMyAdmin from localhost. This is because root password is set to blank by default. If you need to access phpMyAdmin over internet, it will be good to add a password protection for phpmyadmin.

    Create a password file

    /opt/lampp/bin/htpasswd -c /opt/lampp/htpasswd-phpmyadmin admin
    

    Here “admin” is the user. You will be asked to enter a new password.

    vi /opt/lampp/etc/extra/httpd-xampp.conf
    

    Find

    # since XAMPP 1.4.3
    
        AllowOverride AuthConfig Limit
        Require local
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    
    

    Replace with

    
        AuthType Basic
        AuthName "Restricted Content"
        AuthUserFile /opt/lampp/htpasswd-phpmyadmin
        Require valid-user
    
    

    Restart Apache

    /opt/lampp/lampp reloadapache
    

    Related Posts

    Auto start XAMPP on Boot