Posts

Showing posts from March, 2016

Start XAMPP Apache and others from Terminal ( Command Line )

Image
$ ./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)

Image
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 goextraand 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.
#dummy.local <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     </Directory>     ErrorLog "logs/dummy.local-error_log" </VirtualHost>
3). alias edithost='sudo sublime /etc/hosts'
Add following line in #Virtual Hosts section of the hosts file. # Virtual Hosts 127…