Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WindowsLinuxPHP
Hello all,

I'm developing a web site with my Windows 7 computer, I've installed EasyPHP (a php server with mysql... like xampp).

The problem I'm having here is that there are plenty of files involved in the site and Windows is not case sensitive so if for any reason I've made any mistake in the name case windows loads it without problem and I don't notice that problem.

When I upload the site to the linux production server then I'm facing the problem that all the links that point to an incorrect case file point to the 404 page...

Is there any way to configure EasyPHP or windows to become case sensitive? I can't change the behavior of the remote server...

I've been looking at the Internet for a while looking for an answer to my question and it seems that it is not possible, but anyway, I've tought on asking it here and cross fingers... I would like to avoid to put a linux virtual machine only to develop the web site.

So in order to summarize:

1) the production server is linux.
2) the working computer is windows.
3) windows handles files as non case sensitive. Linux does it as case sensitive.
4) when I port my local web to the production server I got problems due to the case sensitive linux way to work.
5) I would like to know if I can configure the working computer to react like linux in that case sensitive issue to avoid the need of a virtual machine.
Posted 8-Dec-12 6:23am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Why don't you develop on Linux? This would result in less bugs on production server. You can easily install Ubuntu on Windows using Wubi (http://www.ubuntu.com/download/desktop/windows-installer[^]).
 
Alternatively, you can install cygwin and PHP package on Windows to get a Linux-like environment. However, cygwin doesn't support case sensitive file name unless you tweak a registry key.
 
See http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-casesensitive[^] for details.
 
I presume tweaking this key would make Windows filesystem case sensitive - which should satisfy your requirement, without the need to install cygwin.
 
Good luck!
  Permalink  
Comments
Sergey Alexandrovich Kryukov at 9-Dec-12 0:17am
   
Good points. Using Linux on the server side would be my idea, too.
One more important point: the working OS could still be Windows, if this is more convenient for OP.
My 5.
--SA
manoranjan at 9-Dec-12 2:26am
   
Thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 718
1 OriginalGriff 421
2 Tadit Dash 355
3 sanket saxena 329
4 Peter Leow 193
0 Sergey Alexandrovich Kryukov 12,109
1 OriginalGriff 7,326
2 Peter Leow 5,003
3 Abhinav S 4,003
4 Maciej Los 3,575


Advertise | Privacy | Mobile
Web04 | 2.8.140421.2 | Last Updated 8 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid