I am using xampp for deploying web apps. It includes the PHP module in a package. Now what I want to do is change the default path to PHP so that I can make use of other versions of PHP without overwriting the existing module. My new copy of PHP exists on the desktop. How can I configure Apache to refer to the PHP module present on the desktop, rather than the default one?
The document root (web root) directory is located at /opt/lampp/htdocs/ . All files placed in this directory will be processed by the web server. To host other files on your system with XAMPP, you can configure an alias with Apache.
In the xampp PHP server, files are served by default from c:/xampp/htdocs directory.
php54
for PHP 5.4)php
directory!) httpd-xampp.conf
file.Change the following variables/directives:
PHPINIDir
to be [your xampp folder]/[new version of PHP]
LoadModule
to be [your xampp folder]/[new version of PHP]/php5apache2_2.dll
Save the httpd-xampp.conf
file. Restart your XAMPP apache server. If your server get restarted successfully, then your server's PHP version was upgraded. You can check the status of your PHP version by using the URL [localhost][:port]/xampp/phpinfo.php
.
If you are still having issues, try this as well:
Change the LoadFile "[xammp folder]/php/php5ts.dll"
directive to LoadFile "[xampp folder]/php54/php5ts.dll"
Source : http://www.techflirt.com/how-to-upgrade-php-in-xampp/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With