Dman8568 Posted April 28, 2006 Share Posted April 28, 2006 Hi, I was wondering if there was anything out on the net that can emulate a Linux environment. What I have is Windows EX running an Apache Server w/ PHP installed. Now when I develope my site localy I have to use windows filepaths (i.e. C:/[file-path]), and when I upload them I have to change them back to Linux paths ( /home/[file-path] ). So, basicly is there anything out there that can cause Apache to run in a emulated Linux so I don't have to change all the file paths when I go to uplead? Thanks, Dman8568 Quote Link to comment Share on other sites More sharing options...
MikeJ Posted April 28, 2006 Share Posted April 28, 2006 http://www.cygwin.com/ Might do what you are looking for. Then check out http://httpd.apache.org/docs/1.3/cygwin.html Quote Link to comment Share on other sites More sharing options...
Ayman Posted April 28, 2006 Share Posted April 28, 2006 Why don't you use relative paths instead? Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted April 28, 2006 Share Posted April 28, 2006 And along with relative paths you can also use XAMPP in your windows environment. Quote Link to comment Share on other sites More sharing options...
TCH-Carl Posted April 29, 2006 Share Posted April 29, 2006 Emulate ??? Why not try and start using Linux Personally, I very rarely use Windows... I have used many flavours of Linux, currently sticking to Mandriva.. really loving it. No driver CDs required, no service packs and oh, no more 0x88810234 's Quote Link to comment Share on other sites More sharing options...
stevevan Posted April 29, 2006 Share Posted April 29, 2006 I'd agree with Carl. I went out an bought a new laptop today and the first thing I did when I got home (after backing things up to a DVD) is to dump the default install of Windows XP and loaded Ubuntu linux. Now the only windows machine I deal with is for work! Quote Link to comment Share on other sites More sharing options...
Dman8568 Posted May 1, 2006 Author Share Posted May 1, 2006 Some Answers: http://www.cygwin.com/ Might do what you are looking for. Then check out http://httpd.apache.org/docs/1.3/cygwin.html ~ This sounds like exatly what I'm looking for. My one problem now is getting an Apache Server to run inside this emulated LINUX [see answer to TCH-Bruce's reply] Why don't you use relative paths instead? ~ I have tried this, but as my site is very dynamic I am having troubles getting an included file to return needed variables to the parent program. (i.e. include"[relative path]" didn't work, but include"[absolute path]"; And along with relative paths you can also use XAMPP in your windows environment. ~ Looking into this, this sounds like a VERY nice Apache Install package. However, I am currently having problems loading the installer program through cygwin. (It has been returning an "File/Dir Dosen't Exist" err when I run the launch command) Emulate ??? Why not try and start using Linux ... ~ Because the PC that I currently use is not mine, but my family's. (If it was mine, I probably would load LINUX on it) Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted May 1, 2006 Share Posted May 1, 2006 ~ Looking into this, this sounds like a VERY nice Apache Install package. However, I am currently having problems loading the installer program through cygwin. (It has been returning an "File/Dir Dosen't Exist" err when I run the launch command) You don't need cygwin to use XAMPP. Works right in Windows. Even works on a USB pen drive. Quote Link to comment Share on other sites More sharing options...
Dman8568 Posted May 1, 2006 Author Share Posted May 1, 2006 You don't need cygwin to use XAMPP. Works right in Windows. Even works on a USB pen drive. If i'm trying to emulate LINUX wouldn't I have to install the Apache Server inside the LINUX Enviroment provided by cygwin? Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted May 1, 2006 Share Posted May 1, 2006 No, you just need the apache server, mysql and php. That's it. Many of the forum members use XAMPP. Quote Link to comment Share on other sites More sharing options...
Dman8568 Posted May 1, 2006 Author Share Posted May 1, 2006 But if I would do it that way, with Apache loaded in Windows, wouldn't the Paths be Windows based (C:/... ), and not LINUX Based (/home/... ). (That the whole reason I'm trying to emulate LINUX)? Quote Link to comment Share on other sites More sharing options...
TCH-Tim Posted May 1, 2006 Share Posted May 1, 2006 I use xampp under Windows and use relative paths just fine. If you want to get into specific include problems I'm sure we could figure it out between all of us. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.