| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 38982 | 2003-10-23 20:58:00 | Web/Ftp Testing Server at Home. | 45South (4769) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 186014 | 2003-10-23 20:58:00 | Hello, I design & build the odd website & would like to setup 2 other boxes on my home network that I can simulate web servers on & test sql, php, asp etc. I'd like to setup a Windows machine & a Linux box as well. I have RedHat 9.0, Mandrake 9.0, 2000Pro, 2000Server, XPPro, 95, 98SE at my disposal. Can anyone point me to a decent howto (from scratch) to set this up with the best choice from above. I already have a local network of 5 machines so am reasonably familiar with networking etc although the Linux box (currently with RedHat 9.0 on it isn't connected) I've tried a dozen times with no luck yet. Any help would be appreciated. Thanks 45South |
45South (4769) | ||
| 186015 | 2003-10-23 21:12:00 | Hi 45South, Welcome to PressF1. Web/FTP is pretty easy with RedHat. Im currently running Slackware 9.1, and am using the same vsftpd .conf files as I did when using Redhat 8/9. Try running: lspci as root and make sure its ackowledging that your NIC is there. Then, run: redhat-config-network That should help you to get it going. You may need to restart network access with (As root): service network restart Next, we're going to hope you've installed vsftpd (They removed the other ftpd in 9.0, leaving just vsftpd) and Apache. If not, then run: redhat-config-packages This will bring up the packages you can install from the Installation CD's. Just put a tick in the FTP/Web server categories and insert the relevant CD's as requested. You may need to make sure that it's installing the related MySQL and PHP rpm's for support. From here, (Once installed) You'll need to play around with the vsftpd setup, but we'll get to that later as its not as easy as just starting the service (Its a Very Secure FTP Daemon remember... ;-)). Apache simply requires you to run: redhat-config-services set it up from in there because I cant remember the name of the Apache service, but I think its httpd, so: service httpd start would begin the Apache Web-server From there, place your index.html and related files in: /var/www/htdocs/ Then load up your fav browser and type in: http://localhost Should bring up your website! Let me know how you get on with the networking/web setup (Apache has a default index.html file if you dont have any on hand so just start the service and check it, you can modify the files as you please) and then we can get stuck into the vsftpd setup :-) Hope this helps Chill. |
Chilling_Silently (228) | ||
| 186016 | 2003-10-23 21:16:00 | With RH9 It can all be done by the way you first install it, choosing a customised install and selecting Apache, PHP and MySQL and VSFTP, then making sure that they run in the services. There might be a howto for it but that was how I installed all the required programs. You can also install them from the rpm's on the CD or downloading Apache, PHP and MySQL. You'll have to read the documentation supplied on howto get it all working. Windows I installed PHPHome2 (program found on sourceforge) which installs Apache, PHP and MySQL, I haven't installed an FTP Server with Windows as of yet, so I don't know which would be the one to use, I don't use ASP either, so I can't help there. The documentation supplied with both programs should give enough explanation to installing them. |
Kame (312) | ||
| 186017 | 2003-10-23 21:20:00 | > Windows > > I installed PHPHome2 (program found on sourceforge) > which installs Apache, PHP and MySQL, I haven't > installed an FTP Server with Windows as of yet, so I > don't know which would be the one to use, I don't use > ASP either, so I can't help there. I'll send this URL onto Liam, he used to have a free FTP server running from doze... I should see if he's going to be trying out vsftpd in RH also...! |
Chilling_Silently (228) | ||
| 186018 | 2003-10-23 21:50:00 | Thanks for the quick replies guys Will this setup enable me to see websites etc from the other Windows machine on my local network or is there more I have to configure for that to happen Thanks again |
45South (4769) | ||
| 186019 | 2003-10-23 21:56:00 | Do you mean the website you're hosting? Yes, its "free-to-air" in a manner of speaking.. If they can get a TCP/IP connection to your Webserver PC then they can probably browse your website. It wont affect Internet Connection Sharing if that's what you're meaning...! |
Chilling_Silently (228) | ||
| 186020 | 2003-10-23 22:15:00 | Thanks Chilling Sort of, the Linux & Windows servers won't be on the net, they are purely for testing sites, scripts, different browsers etc from my other local machines before uploading to owners webspaces. Basically I want to create an intranet I guess, not sure really, bit of a novice at this |
45South (4769) | ||
| 186021 | 2003-10-23 22:18:00 | Just dont setup DNS on the Linux box, and make sure that your PC that's connected to the internet isnt going to be trying Port-Forwarding to that machine for any reason (Which is shouldnt be, as its not on the LAN ATM you mentioned). It'll be accessable from your LAN, but to get it going to the outside world (Or prevent it) you'll have to enable (Or make sure it isnt) Port-Forwarding. |
Chilling_Silently (228) | ||
| 186022 | 2003-10-24 01:03:00 | As long as your network supports TCP/IP you are fine, to connect to it from a computer on your network, just open up a web browser type <computername> or <networkIP> e.g. 192.168.1.2 or mycomp That's how you would test locally whether php was working, whether your scripts are working etc... That's how I test my scripts out before uploading overseas. |
Kame (312) | ||
| 186023 | 2003-10-24 07:47:00 | Thanks guys, had it working sort of. Setup RedHat & using Mozzilla could view the Php page using localhost or billsbox.com Tried to assign an IP address to the NIC & activate it now I can't see the Php page. Haven't been successful in viewing the page from my XP corporate machine either, have no connection either way XP to Linux nor Linux to XP Any other tips? Thanks |
45South (4769) | ||
| 1 2 | |||||