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.

XAMPP – Port 80 in use by “Unable to open process” with PID 4! 12

Open a CMD prompt as administrator and execute the following command: net stop was /y Open the Run dialog box (press Win+R), then type: services.msc Then search for World Wide Web Publishing Service (WWW-Publishing Service) and Web Deployment Agent Service and stop them. You should also disable them. Start Apache again with XAMPP 🙂 Link … Read more

PHP – SSL certificate error: unable to get local issuer certificate

Finally got this to work! Download the certificate bundle. Put it somewhere. In my case, that was c:\wamp\ directory (if you are using Wamp 64 bit then it’s c:\wamp64\). Enable mod_ssl in Apache and php_openssl.dll in php.ini (uncomment them by removing ; at the beginning). But be careful, my problem was that I had two … Read more

Is there way to use two PHP versions in XAMPP?

Why switch between PHP versions when you can use multiple PHP versions at the same time with a single xampp installation? With a single xampp installation, you have 2 options: Run an older PHP version for only the directory of your old project: This will serve the purpose most of the time. You may have … Read more

PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

8388608 bytes is 8M, the default limit in PHP. Update your post_max_size in php.ini to a larger value. upload_max_filesize sets the max file size that a user can upload while post_max_size sets the maximum amount of data that can be sent via a POST in a form. So you can set upload_max_filesize to 1 meg, … Read more

How to configure XAMPP to send mail from localhost?

You can send mail from localhost with sendmail package , sendmail package is inbuild in XAMPP. So if you are using XAMPP then you can easily send mail from localhost. for example you can configure C:\xampp\php\php.ini and c:\xampp\sendmail\sendmail.ini for gmail to send mail. in C:\xampp\php\php.ini find extension=php_openssl.dll and remove the semicolon from the beginning of … Read more

Make XAMPP / Apache serve file outside of htdocs folder [closed]

Ok, per pix0r’s, Sparks’ and Dave’s answers it looks like there are three ways to do this: Virtual Hosts Open C:\xampp\apache\conf\extra\httpd-vhosts.conf. Un-comment ~line 19 (NameVirtualHost *:80). Add your virtual host (~line 36): <VirtualHost *:80> DocumentRoot C:\Projects\transitCalculator\trunk ServerName transitcalculator.localhost <Directory C:\Projects\transitCalculator\trunk> Order allow,deny Allow from all </Directory> </VirtualHost> Open your hosts file (C:\Windows\System32\drivers\etc\hosts). Add 127.0.0.1 transitcalculator.localhost … Read more

How to solve “Error: MySQL shutdown unexpectedly”?

IMPORTANT: do NOT delete ibdata1 file. You could destroy all your databases. Instead, first try using the MySQL backup folder which is included with XAMPP. So do next steps: Rename folder mysql/data to mysql/data_old Make a copy of mysql/backup folder and name it as mysql/data Copy all your database folders from mysql/data_old into mysql/data (except … Read more

tech