File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes PHP and the fly likes Deploying a php on apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "Deploying a php on apache" Watch "Deploying a php on apache" New topic

Deploying a php on apache

vamsi acharya
Ranch Hand

Joined: Jun 28, 2009
Posts: 55

Hey guys , Am kind of noob when it comes to server-side scripting , i have downloaded and installed PHP,apache and Mysql and am following w3schools for my tutorial on php , now i want to know how to deploy a php application in the apache server , i tried googling it and felt kinda complicated , A brief explanation on how to begin with is appreciated , thank you !!

"Known is a drop , unknown is an ocean " !
Tim Moores

Joined: Sep 21, 2011
Posts: 2417
You need to install the mod_php module in Apache if it isn't installed already. I'm sure there's documentation available for it that tells you how to do that, and how to run your first PHP script.
Aniket S. Kulkarni
Ranch Hand

Joined: Jun 15, 2011
Posts: 87

If you just want to start with PHP as quickly as possibly, then you're better off installing preconfigured Apache + PHP + mysql stack like WAMP-it'll have everything already configured.

Aniket Kulkarni
Oracle Certified Professional, Java SE 6 Programmer.
abani patra
Ranch Hand

Joined: Oct 11, 2011
Posts: 70
For deploying your php application , if you have installed XAMPP then just put your code inside the htdocs folder of xampp installed directory ,then access that from your browser.
vamsi acharya
Ranch Hand

Joined: Jun 28, 2009
Posts: 55

I don't have a XAMPP , i installed each of them separately !!
Sameera Jayasekara

Joined: Mar 06, 2011
Posts: 5

vamsi acharya wrote:I don't have a XAMPP , i installed each of them separately !!

For development purposes using XAMPP or WAMP is easy. But for production purposes that is not recommended.

Bachelor of Computer Science | SCJP 5(97%) | SCWCD 5(100%) | SCBCD 5(100%) |
I agree. Here's the link:
subject: Deploying a php on apache
It's not a secret anymore!