Results 1 to 10 of 10

Thread: [RESOLVED]Php/MySql Deployment

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Cebu PH
    Posts
    95

    [RESOLVED]Php/MySql Deployment

    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!

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Php/MySql Deployment

    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.
    My usual boring signature: Something

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Php/MySql Deployment

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Php/MySql Deployment

    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?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Cebu PH
    Posts
    95

    Re: Php/MySql Deployment

    i mean, i made this project locally... then i want it to be deployed on a Local area network..

  6. #6
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Php/MySql Deployment

    Look above a replies no 1 and 2.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Php/MySql Deployment

    Simply make port 80 on your PC accessible over the LAN if you have a firewall enabled. Otherwise it should work already.

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Location
    Cebu PH
    Posts
    95

    Re: Php/MySql Deployment

    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.

  9. #9
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Php/MySql Deployment

    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
    My usual boring signature: Something

  10. #10
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Php/MySql Deployment

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width