ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need some guidance and I'm not sure where to post or start.
At home and work I have setup a FreeBSD 5.4 workstation for learning how to work with PHP / MySQL and Apache. While part of the process is to learn FreeBSD and to become more proficient in *nix, I also want to migrate towards PHP / MySql development
My web developement has primarily been HTML/XHTML/CSS and some ASP in a windows environement using notepad, Frontpage and Dreamweaver.
In either environment I have a windows workstation where I use Dreamweaver. I have setup a FreeBSD 5.4 workstation with PHP4, Mysql-4.x, Apache 1.3. I have been successful thus far setting up and configuring the FreeBSD box. All modules are working as best I can tell. Basically tested the MySQL using the Admintool from a remote pc and can see the existing databases, as well as made a quick test page with <?php phpinfo(); ?> all seems to work.
For development purposes, How can I connect from a remote pc to the FreeBSD box ? I am assuming ftp would be the easiest.
I guess what I am asking is how everyone uses their developement environment.
Do you work locally using VIM/VI/emacs...or what.
You'll definitely want to set up FTP on the BSD box. Then you could use your more powerful development tools on your local computer and upload the files back to the BSD box when you're done.
If you want to make small modifications, you could SSH into your BSD box, VI the file, and save it directly.
Setting up FTP and SSH is pretty easy. Set up the config files, start up and test the servers, then set it up so the servers automatically start on each reboot. Oh yeah, and get the firewall configured, too. If you google up some specific tutorials on the net, you could have it set up in 15 minutes.
I have ftp starting using inetd.conf and added inetd_enable="YES" to rc.conf. It works and I am able to ftp into /usr/home/MyAcct. However after reading a little about ftp, it appears that I can only ftp into by home folder.
The apache files live under /usr/local/www/apache/data
Do I go into the apache httpd.conf and change the DocumentRoot directive to my folder, or is there a permissions thing I can do to allow me to "roam" while in ftp, into my BSD dev box ?
This is the part I am a lttle fuzzy on.
Do I change the DocumentRoot directive?
Do I setup Alias ?
Do I setup Virtuals
This BSD developement box would only be used by me.
Personally I'd day that if you want to do fixes/updates etc from your Windows/Dreamweaver box, get Putty which is a free version of SSH. SSH comes with SCP (and SFTP) included, so you don't need FTP.
In fact, I prefer SCP anyway, as you can put/get files from/to anywhere; it's just an extension of SSH.
Also, I prefer the syntax...
I know there is some boolean in the rc file that lets you roam above your home file. Something like rootlock... Can't remember.
And about Putty, I've heard good things about it, but seeing as I have never used it I don't have much to say about it. I guess if you do that you don't even have to set up an FTP server? Out of my realm
Thanks. I will look into putty. However I think I found what I was looking for.
In the httpd.conf file, there is a directive called UserDir. Basically from what I have found so far is by placing a folder called public_html in my home folder..
/usr/home/myacct/public_html/
I would place any of my html files (or php) into this folder.
Then from a remote machine, if I wanted to see how they looked, I would type the following url..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.