A wee while ago, I moved over to Redhat 9.0 from windows 98 where I was running PHPTriad (which includes Apache, MYSQL, PHP). I'm using the same php files as before and I can still boot into windows and the files still work there, however when I use them under Linux the cookies don't remain. Their are no errors produced at all.
I have managed to establish that the problem is on the server side. My reasoning for this: Same files on the same partition. Accessed from another computer on the network (windows or linux on client has same results). But on the server, if windows is running on the server, the cookies run fine on the server. If Linux is running, the cookies loose their value.
I know both PHP and MYSQL are running, since the pages are heavily reliant on them.
My suspicions:
- Security config/policy somewhere
- Bad compile (I've read on the apache site a while ago that apache compiled with a certain compiler that came with current (at that time) versions of linux had a bug(s).)
- Apache setting
- PHP setting (where is PHP configured?)
- Apache not liking FAT32 partition. Eliminated. Still has the same problem on ext3.
- File rights. Potentially elminiated. Write access is availble and tested throughout the folder and php files concerned.
I figured it would be valuable to find the versions of Apahce, PHP and MYSQL, but I'm not sure where to look under linux. I haven't done a lot of work with Apache under linux, but I have done a lot with it under windows, so it's only really the OS specific stuff which I'm new to with Apache, PHP etc.
This is a line from the httpd.conf file (generated by the "apacheconfig" (as labeled at the top of config file.)).
DocumentRoot "/var/www/html"
Yet in the "Apache Configuration" program (that comes with redhat 9.0) I've specified "/mnt/40g/bigpart/Files/Develop/web/htdocs/" which is where the files are stored. This address works, this is where the files are stored and seem to work from.
I wondered if this difference could mean that it isn't looking at this file (/etc/httpd/conf/httpd.conf) and is infact looking at another file?
I did notice that some unique information in this file was correct, such as:
ServerName k1
I have comfirmed that this file is being written by the "Apache Configuration" program which I mentioned earlier.
I have wondered about putting the files into the /var/www/html folder. My main reservation about that is that I don't want to make a big mess, and I'm wondering why it's getting to the /mnt/40g/... .
Basically I'm running out of ideas to try. I've considered downloading and installing the latest stable versions of PHP and Apache, but from what I've read, this sounds like it could turn into a serveral hour job. If someone thinks this might solve the problem, I'm willing to do it.
Any ideas?
Thanks
- Kevin 🙂