简体   繁体   中英

Web DevelopmentL: PHP & Apache

Im trying to write a blog using PHP,I downloaded Php 5, Notepad++ And Apache Tomecat 7.

The problem is that I dont know where to save the .Php files I wrote so I can open them using the Apache Server.

Can anyone help please?

Thanks in advance.

You don't need Tomcat server that is for Java applications.

You're best bet is to install WAMP (on Windows) or LAMP (on Linux) then you have all the tools including MySQL to start coding. The Apache server comes preconfigured for use with PHP.

If you're coding on Windows then WAMP is a single install package.

There are plenty of tutorials to help you out, but essentially your Apache server will have a web root directory named "www" in it's configuration file. That's where you place all of your php and html files, etc.

[Edit]

Reading some of the comments, the recommendation for WAMP or XAMP for your local development . You can run all this comfortably on a laptop. When it comes to releasing your application to the world you will probably want to pick a Hosting service that supports PHP and will take care of all the server configuration for you. You'll just be copying up your PHP code files and creating the databse.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM