i have developed a simple php project..
i just want to ask, how am i going to deploy it? are there any steps on how to this? what will i configure? Etc,....
Need help here badly... Any suggestions will be appreciated.. Thanks!
Printable View
i have developed a simple php project..
i just want to ask, how am i going to deploy it? are there any steps on how to this? what will i configure? Etc,....
Need help here badly... Any suggestions will be appreciated.. Thanks!
what do you mean deploy it? did you make it locally and want to put it on the web? then get a domain, upload through ftp, export your local db, and import remotely.
Deploying a PHP application is usually just a case of copying the appropriate files across to the server via FTP, SSH, HTTP or SMB. You may want to consider using synchronisation software if you want to ensure only the appropriate (changed) files are copied.
Another option is to package the files in a ZIP file with relative folder names included. You can then make a simple upload interface on the site and extract / copy the files using PHP. You need to ensure you take some security precautions before you do this however.
- Use a secure login interface to authenticate yourself and possibly fix it to an IP address. SSL is desirable, if not a challenge response mechanism.
- Ensure you use the interface to update a separate application: i.e: a directory that the interface doesn't reside in.
As a matter of caution, I would only do the zip/tar trick if you have shell access. Securing a file upload interface can be tougher than you think. (I've had a site compromised before now because I didn't do adequate checks on uploads.)
Or, is the question how to create a redistributable package?
i mean, i made this project locally... then i want it to be deployed on a Local area network..
Look above a replies no 1 and 2.
Simply make port 80 on your PC accessible over the LAN if you have a firewall enabled. Otherwise it should work already.
How will i know if my port 80 is accessible on LAN?
Sorry for so many questions, im a beginner on Php so i will ask you guys tons of questions. Thanks a lot! I really appreciate it.
well you need the IP address of the server, then go to another computer on the network and type it in in (doubles :) ) the browser. If you site shows up, then it works
If you are not running any kind of software firewall then it is already accessible.
If you are, then you will need to open that port.
Windows, from XP SP2 onwards, includes a firewall which is enabled by default. You can open port 80 (or just disable the firewall altogether) from the Windows Firewall control panel.
Linux distros generally open port 80 by default.