ncc50446 Posted September 6, 2010 Share Posted September 6, 2010 Hey, Well, I'm trying to move towards Linux a little. Try something new. Anyways, I have Windows XP (Yes I know, out of date. I have Vista, but going to be getting Windows 7 soon, so just waiting to upgrade then). I then also have Fedora 13. Now on Windows, WAMP is already setup great. But, I'm trying to move to LAMP. But I need to still use all the files on both OS's. Depending on which I'm booted under. So, how do I set up mysql to use the database stored on xp (C:/) and apache to use the files for the site, also on xp? Can it easily be done? Thank for any help :) Link to comment Share on other sites More sharing options...
0 cybertimber2008 Posted September 6, 2010 Share Posted September 6, 2010 Oh dear what a setup. It's possible to do so long as you have a partition that can be read and written to in both Windows and Fedora. That means a FAT partition for the most part. Then just point both WAMP and LAMP to that location. Its theorietical though.... I can imagine doing it more with the raw packages (apache, mysql, php) because one could configure them fully to make them compatible. Back it up before trying, all i'm saying. Might I ask though... why not set up a seperate machine that acts as your web server? That way you are truely OS independent. If you are doing what it sounds like you are... it'd be much easier if you have a spare machine. Link to comment Share on other sites More sharing options...
0 SharpGreen Posted September 6, 2010 Share Posted September 6, 2010 Oh dear what a setup. It's possible to do so long as you have a partition that can be read and written to in both Windows and Fedora. That means a FAT partition for the most part. Then just point both WAMP and LAMP to that location. Its theorietical though.... I can imagine doing it more with the raw packages (apache, mysql, php) because one could configure them fully to make them compatible. Back it up before trying, all i'm saying. Might I ask though... why not set up a seperate machine that acts as your web server? That way you are truely OS independent. If you are doing what it sounds like you are... it'd be much easier if you have a spare machine. No need to use FAT, Fedora (through use of the NTFS-3g package) can read/write the existing XP partition. And I do it all the time, using an all in one package called XAMPP, which comes in Windows and Linux flavors. Its really quite simple to do even if you don't use XAMPP. Alls thats really needed is to modify your Apache config to point to the appropriate htdocs folder on your XP partition. Look in the Apache config file for "DocumentRoot" and change it to the path on your XP partition where your Windows htdocs folder is. I'm not that well versed in configuring MySQL so that one I can't help with. Also you'll have to setup your Windows partition to auto mount when you boot into Fedora, as it doesn't (at least in Ubuntu) do so by default. Link to comment Share on other sites More sharing options...
0 farmeunit Posted September 6, 2010 Share Posted September 6, 2010 I use XAMPP on a flash drive to move websites between Windows machines. You carry the DBs, files, and everything things else on the drive. I do not know if or how you could use that same drive in Linux. You could run a Windows VM in your Linux distribution, but that just adds a whole other layer. Link to comment Share on other sites More sharing options...
0 ncc50446 Posted September 6, 2010 Author Share Posted September 6, 2010 @cybertimber2008 - I'm using a laptop. This server is only a local server, and doesn't get viewed outside of the laptop. It's for work. Currently all I do is on Windows, and wanted to try something different, while still being able to fall back to Windows if I have/want to. @SharpGreen -Thank you, I will take a look into that :) @farmeunit - Thank you. I will look into that as well :) Link to comment Share on other sites More sharing options...
0 ncc50446 Posted September 7, 2010 Author Share Posted September 7, 2010 Hey, Does Fedora see the path the same way that Windows does? I tried to change the path in the httpd.donf but not httpd wont start.. C:/web/apache/htdocs But does Linux see that as the path as well? Maybe they call it something different? Fedora just seems to call it 52 GB Filesysystem Thanks for any help :) Link to comment Share on other sites More sharing options...
0 simsie Posted September 7, 2010 Share Posted September 7, 2010 No *Nix OS uses drive letters, not even Macs. It's purely a Windows thing. In Fedora it'll probably be /mnt/<something>/web... OR /media/ is quite common too. Never personally used Fedora, however. Link to comment Share on other sites More sharing options...
0 ncc50446 Posted September 7, 2010 Author Share Posted September 7, 2010 Ah, that would be my problem then lol I found it under Media, followed by a bunch of seemingly random characters lol Thanks! :) Link to comment Share on other sites More sharing options...
0 ncc50446 Posted September 7, 2010 Author Share Posted September 7, 2010 That didn't work either....I changed it to /media/01CAFC837B1E9E80/web/apache/htdocs And still no good...I think I might just have to bite the bullet and pick an OS. Might be easier lol Instead of wasting time on something small like this. So I'll just move everything to Fedora 13. I like it so far :) And easy enough to move everything back to XP should I need to. Link to comment Share on other sites More sharing options...
Question
ncc50446
Hey,
Well, I'm trying to move towards Linux a little. Try something new.
Anyways, I have Windows XP (Yes I know, out of date. I have Vista, but going to be getting Windows 7 soon, so just waiting to upgrade then).
I then also have Fedora 13.
Now on Windows, WAMP is already setup great.
But, I'm trying to move to LAMP.
But I need to still use all the files on both OS's. Depending on which I'm booted under.
So, how do I set up mysql to use the database stored on xp (C:/) and apache to use the files for the site, also on xp?
Can it easily be done?
Thank for any help :)
Link to comment
Share on other sites
8 answers to this question
Recommended Posts