INSTALLING PHP 7 AND COMPOSER ON WINDOWS 10, NATIVELY

I am currently running Xampp for a dev server on Windows 7. It has Apache, PHP,MySQL and some other stuff all in one simple exe package for windows & works great. My version currently has PHP version 5.2.9 và the new version of Xampp comes with PHP 5.3.1

I would lượt thích to use the newer PHP but I bởi vì not want lớn update everything else. So how would I install the newest version of PHP in windows?

Also on the Xampp page there is another extension tải về for Tomcat 6.0.20 I am not sure what Tomcat does can someone explain?


php windows-7 tomcat xampp
mô tả
Improve this question
Follow
asked Jan 25 "10 at 23:49
*

JasonDavisJasonDavis
2,65066 gold badges2424 silver badges3131 bronze badges
địa chỉ a bình luận |

1 Answer 1


Active Oldest Score
1
PHP on Windows is essentially a couple of dll files, an ini file và an extension directory. You can have unlimited versions of PHP on your machine, what matters is which version your webserver (in your case with XAMPP, Apache) uses.

Bạn đang xem: Installing php 7 and composer on windows 10, natively

Firstly tải về the latest version of PHP from www.php.net, install it in, for instance, C:Program FilesPHP.

In your Apache conf tệp tin (Something lượt thích C:Program FilesXAMPPApacheConfhttpd.conf) edit the following section so it suits your new PHP installation:

# LoadModule php5_module "C:Program FilesPHPphp5apache2.dll"AddHandler application/x-httpd-php .php# configure the path to php.iniPHPIniDir "C:Program FilesPHPphp.ini"See the PHP installation docs for more.

Xem thêm: Phần Mềm Zxw Cho A - Trực Tuyến Zxw Đội 3

Calling phpinfo() from a kiểm tra script will also help you pinpoint any ini files that are in weird places (Windows directory, Apache Directory etc...)

Tomcat is an Apache extension for running Java, safe khổng lồ assume you don"t need it!


share
Improve this answer
Follow
answered Jan 26 "10 at 1:18
*

Jon RhoadesJon Rhoades
4,94933 gold badges2929 silver badges4646 bronze badges
địa chỉ cửa hàng a phản hồi |

Your Answer


Thanks for contributing an answer to hệ thống Fault!

Please be sure to lớn answer the question. Provide details and share your research!

But avoid

Asking for help, clarification, or responding khổng lồ other answers.Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.


Draft saved
Draft discarded

Sign up or log in


Sign up using Google
Sign up using Facebook
Sign up using thư điện tử and Password
Submit

Post as a guest


Name
e-mail Required, but never shown


Post as a guest


Name
email

Required, but never shown


Post Your Answer Discard

By clicking “Post Your Answer”, you agree lớn our terms of service, privacy policy and cookie policy


Not the answer you're looking for? Browse other questions tagged php windows-7 tomcat xampp or ask your own question.


The Overflow Blog
Featured on Meta
Related
3
How vì you install memcache
1
weird text appearing when using PHPBB >v3.0.1 XAMPP windows SQLite
0
PHP 5.3.2 tăng cấp on Windows
0
XAMPP OSX Snow Leopard và php ssh2 extension
5
tăng cấp PHP v5.3.3 to v5.3.4
1
MySQL 4.0, PHP 5.3 & Server 2008
2
Install PECL mailparse on XAMPP?
1
How to lớn install different versions of memcache with different versions of lampp
23
Connecting to MySQL from PHP is extremely slow
Hot Network Questions more hot questions

Question feed
Subscribe to lớn RSS
Question feed khổng lồ subscribe to lớn this RSS feed, copy & paste this URL into your RSS reader.


*

vps Fault
Company
Stack Exchange Network
site design / biểu tượng logo © 2022 Stack Exchange Inc; user contributions licensed under cc by-sa. Rev2022.2.7.41389


Server Fault works best with JavaScript enabled
*

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device & disclose information in accordance with our Cookie Policy.