Import existing site into phpstorm

Hello all,

This is my first post and it is a newbie question for sure..  I promise to contribute once things get rolling, even if on a small scale.

I have always wanted to learn php/mysql but could never get that first step going.  I am familar with client/server, html, mysql, etc. as I have a very active social network website.  The thing is I have worked from the role of project manager for virtually every module we create on my network.  Therefore I have become very familar with the general concepts, but I am reliant upon the developers to do the actual work. I would very much like this to change so I need to learn..

Ok, so I have an existng website on an Apache server (CENTOS 5.10) running PHP 5.2.17 and Percona 5.5.35.  I am comfortable accessing the server directly and making small modifications via SFTP and SSH and even accessing phpmyadmin to access the tables directly.

However I want to create a project and import my entire site into phpstorm.  Thus being able to work locally on the files/database.  This way I can work on the site in the same way as if it was online, but do it all from a local environment.  Then once the work is completed and tested on the local machine I can upload it to the live environment.

I created a new project, then clicked on 'tools' -> 'deployment' -> 'configuration'.  I then entered the settings and was able to connect to the remote host.  Then from the New Project wizard, choose New Project from Existing Files.  The site files were then imported.  

But it appears that right now it is just the files and site struture.  What I want to do is build a full replica of my site (database included), so I can work on the site locally.  

Do I need to install WAMPServer to act as the mysql database?  I am sorry for such a basic question..  

Thank you!

2 comments
Comment actions Permalink

Hi there,

What I want to do is build a full replica of my site (database included), so I can work on the site locally.  

Do I need to install WAMPServer to act as the mysql database?  I am sorry for such a basic question..

Generally speaking yes -- you need that software running on your local computer (or another dev computer/server in your LAN or VM).

You can install all required software manually (Apache/nginx, mySQL/PostgreeSQL, PHP etc) or install it as one pack (http://www.easyphp.org/, XAMPP, WAMP, http://www.uniformserver.com/)

Alternatively (which is better, considering your production OS is Linux) use Vagrant and have it ALL installed on Virtual Machine (easier to manage/move to another computer etc).

P.S.
For basic stuff (no URL rewriting involved), PhpStorm has simple built-in HTTP web server, but DB/PHP you will have to install yourself.

Few basic links:

0
Comment actions Permalink

Thank you so much for pointing me in the right direction.  I will go with Vagrant.

I will appeciate the time to help out a newbie like me.  Although I am new to the actual coding, I'm sure my past experience will help me move up the learning curve quikcly and I am dedicating 4 hours a day to PHP training (with a realistic 6 month min. before I feel I have some fairly decent knowledge).  Of course I know it is a never-ending learning, and I look forward to the challange .  Hopefully in time I will be able to contribute and even offer support for other newbies like me.

Love the PHP community..

Thank you!  

0

Please sign in to leave a comment.