Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a pet project to develop a browser based mp3 player. Most of it is in MySQL and php and then there's a flash based component. I'm using apache2. The path of my share folder in samba is

[website]
path = /development/public_html

is the same as the directory path of my directive.

<Directory /development/public_html>
*some stuff*
AuthUserFile /development/passwords
Require user someone
</Directory>

My current setup is a computer and server in my room. The computer I'm working on is running windows and I when make changes to the php files I can immediately view them online. I can't use wamp just because I need to do a lot of stuff in linux and my windows computer isn't powerful enough to handle some of the stuff I want to do.

I'm really new to programming and just wanted to know, is this method considered efficient?

What other alternatives are there to immediately view the changes you've made online?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Surely it's much more secure not to share with Samba and update your documents using SFTP/SCP instead? You should easily be able to find a graphical client for windows, take a look at WinSCP.

Also with that setup is it not possible for anyone who can access your site to gain access the your password file too? I'm not much of a web designer but it looks that way.

If this is just for development on a local machine then this is all pretty much moot, but best practice etc etc...

share|improve this answer
    
No, the password file is in a different directory. I like to check the site pretty frequently so SFTP'ing and SCP'ing take forever. Whereas in my current setup, any change I make is immediately viewable on the web. –  user784637 Jan 10 '12 at 10:26
    
Take a look at WinSCP: winscp.net/eng/docs/screenshots Graphical client and you can just drag and drop once you've logged in. I don't think you should see much/any difference in transfer speed between Samba/SCP, maybe you are referring to SCP'ing files over command line? If so then yeah I agree that will be slower in terms of actual operation, typing it out etc :) –  Breadbin Jan 10 '12 at 13:44
    
I swear i'm not a shill for WinSCP :) If you're up for a challenge then try learning Vi/Vim and edit the files on the host over command line. It's a lightweight but very powerful text editor. –  Breadbin Jan 10 '12 at 13:52
    
Thanks for the suggestion, but all I do is merely save the file and the changes are reflected on mysite.com. I use vim pretty frequently, but it's for editing .conf files and bash scripts, I don't use it for php development because my IDE is helpful at code completion, syntax checking, etc... –  user784637 Jan 10 '12 at 20:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.