Apache Mac Case Sensitivity

I have a Mac running Apache (Default Zend Server Setup) and a AptanaCloud Site (*NIX virtual host).

I thought all Unix based systems were case sensitive, however my Mac doesn't seam to mind on PHP includes but Aptana does. This is quite  bore as I when I move my projects from the local server to remote they often don't work because of folder names.

I use the Zend_Autoloader to load my external PHP classes which uses the pattern Folder/Folder/Class.php for Folder_Folder_Class... However there are some custom paths like a folder called models takes classes mapped as Model_. So sometimes the folder has to be lower case and sometimes upper depending on whether it is registered in the Autoloader.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Yes, Mac's are not case sensitive. If you make a directory called "test" and then immediately try and make a directory called "TEST" it will give you an error.

You probably want to come up with a naming convention for your folders and files anyway. This is just good programming practice.

This is a good place to start:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
OS X 10.x uses case sensitive HFS by default, unless you changed it due to re-installation or use of disk system utility.
If you changed it to case-insensitive there is no way for any program to use case-sensitive files or directories. You need to ensure unique names youself.
stmayesAuthor Commented:
My file system seams to be case-sensitive but Apache doesn't.

Re: naming convention, I do have a convention in place but my Zend Autoloader is trying to be too helpful by allowing me to put this like Module_Form_Class in a folder called module/forms/Class.php.. (note the plural folder name). For folders not registered in the Autoloader I have to use the same as the class name eg. Module_Connector_Class is mapped to Module_Connector_Class...

My problem is that Apache finds the files/ folders regardless of case, whereas my server is a little more picky.

Can anyone help me find an option to make Apache more strict???
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

do you use mod_spelling? check your config files for CheckSpelling directive
or do you have RewriteRule which match case insensitive
stmayesAuthor Commented:
No rewrite rule. Just checked all config files. No reference to Mod_Spelling or CheckSpelling... Thanks for the tip though...
case sensitive filesystem, and no case sensitive configuration for apache; that sound strange, very strange.
Are you really talking about URLs handled by apache? and not URLs handled by a module (like php, perl, mod_jk, ...)
stmayesAuthor Commented:
I fairly certain it's Apache. I'm using Zend_Application_Module_Autoloader (from the Zend Framework) to do my PHP includes. I guess it could be PHP. The two PHP versions are identical as is the source code. The only difference is Mac and Linux.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.