how to create virtual host on XAMPP [duplicate]

Step 1) C:\WINDOWS\system32\drivers\etc\ Open the “hosts” file : 127.0.0.1 localhost 127.0.0.1 test.com 127.0.0.1 example.com Step 2) xampp\apache\conf\extra\httpd-vhosts.conf <VirtualHost *:80> DocumentRoot C:/xampp/htdocs/test/ ServerName www.test.com </VirtualHost> <VirtualHost *:80> DocumentRoot C:/xampp/htdocs/example/ ServerName www.example.com </VirtualHost> Step 3) C:\xampp\apache\conf\httpd.conf. Scroll down to the Supplemental configuration section at the end, and locate the following section (around line 500), Remove the # … Read more

Upgrading PHP in XAMPP for Windows?

Take a backup of your htdocs and data folder (subfolder of MySQL folder), reinstall upgraded version and replace those folders. Note: In case you have changed config files like PHP (php.ini), Apache (httpd.conf) or any other, please take back up of those files as well and replace them with newly installed version.

How to locate the php.ini file (xampp)

For Windows, you can find the file in the C:\xampp\php\php.ini-Folder (Windows) or in the etc-Folder (within the xampp-Folder). Under Linux, most distributions put lampp under /opt/lampp, so the file can be found under /opt/lampp/etc/php.ini. It can be edited using a normal Text-Editor. Clarification: Xampp (X (for “some OS”), Apache, MySQL, Perl, PHP) Lampp (Linux, Apache, … Read more

XAMPP Sendmail using Gmail account

This is what worked for me Hopefully no one else will burn oil to figure this out like i did. Here is my sendmail.ini [sendmail] smtp_server=smtp.gmail.com smtp_port=25 error_logfile=error.log debug_logfile=debug.log auth_username=myemail@gmail.com auth_password=yourgmailpassword force_sender=myemail@gmail.com php/php.ini —-basically comment everything out except sendmail_path & mail.add_x_header [mail function] ; For Win32 only. ; http://php.net/smtp ;SMTP = localhost ; http://php.net/smtp-port ;smtp_port … Read more

XAMPP permissions on Mac OS X?

Tried the above but the option to amend the permission was not available for the htdocs folder, My solution was: Open applications folder Locate XAMPP folder Right click, get info (as described above) In pop-up window locate the ‘sharing & permission’ section Click the ‘locked’ padlock symbol Enter admin password Change ‘Everyone’ permissions to read … Read more