Search This Blog


Check out these Pages


Start XAMPP Apache and others from Terminal ( Command Line )

$ ./xampp apache start
Usage: xampp <action>

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

fix_rights    Resets file permissions.

make alias to setup VirtualHosts using XAMPP on MacOSX (Simple way)

Simple & Quick

Add these following lines in ~/.bash_profile file

1)  alias goextra='cd /Applications/xampp/xamppfiles/etc/extra'
2). alias editvhost='sublime httpd-vhosts.conf'

and run " . ~/.bash_profile " .

and please run goextra and editvhost in your terminal respectively.

When you run editvhost httpd-vhosts.conf will be opened.

Add following lines to the file. You can also use the dummy lines in the file as reference.

<VirtualHost *:80>
    ServerName dummy.local
    DocumentRoot "/Users/You/Your_Projects/dummyproject"
    <Directory "/Users/You/Your_Projects/dummyproject">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
    ErrorLog "logs/dummy.local-error_log"

3). alias edithost='sudo sublime /etc/hosts'

Add following line in #Virtual Hosts section of the hosts file.
# Virtual Hosts dummy.local

Restart your Apache on xampp.

You are good to go. 

If you have any question or better way to do this or to share your ideas, please leave a comment or send me an email at or tweet me @lynnnayko

Thank you very much for your time.