RedHat 7.3 Apache and PHP 4 installed
Gallery is working beautifully but I have one outstanding problem.
the mod_rewrite module is definitely installed. Also loaded and added in httpd.conf.
The setup program refuses to acknowledge this and gives an error message saying that it is not installed or the .htaccess file is not working. I get the message above this that the .htaccess is working.
I suspect this is a Redhat thing, I have also noted that the mod_rewrite function has undergone some changes due to security breaches.
Anybody had this working on RedHat 7.2 or 7.3?
Posts: 7994
Hmm. Not sure what's going wrong with your setup, but you could try to force mod_rewrite on. Re-run the config wizard, but start it with this url:
http://your.server/gallery/setup/index.php?init_mod_rewrite=1
Posts: 487
Bharat, I've noticed this too, it will always say mod_rewrite fails
unless you manually input the index.php. You have to do the full
path. http://www.server.com/gallery/setup/index.php when you
run configure. If you leave off the index.php, it will say mod_rewrite
doesn't work. I don't think this is actually mentioned anyplace. You
may wish to include a small bit in the initial configuration to redirect
them to the same path + index.php to bypass this false error.
Posts: 4
Thanks Bharat, that gets me through the config pages. There must still be something wrong though. The album links will not work and I just get a 404 error. The setup page does show mod_rewrite as working this time.
Sorry vallimar, that still didnt show mod_rewrite as installed.
Thanks for the help so far.
Posts: 7994
Humm. This code always detects it properly for me on my various servers. :smile:
Ok, tell you what. I'll offer my standard deal: Donate $10-20 to the Gallery fund and private message me ssh hostname/username/password info and I'll log onto your system, diagnose and fix the problem and make any necessary changes to the Gallery code so that others don't have this issue.
Posts: 4
Thanks Bharat, sounds like a plan.
Give me a couple of days to sort out access. It's my server but has clients material on it so while I may respect, trust and admire you :smile: I just have to clear a couple of things first. More than happy about the donation too.
The URL does get rewritten to the album name so that part of the mod_rewrite seems ok. its just that Apache isnt recognising the new URL. So this may end up as an apache problem rather than a Gallery one. Interestingly enough I completely cleared and formatted the system drive to upgrade to RH 7.3 and modified the new httpd.conf to include my Virtual Server section so everything else is pretty standard.
Posts: 4
For those who would like to know how Bharat fixed it !!!
The alias for the gallery directory in httpd.conf didnt have a trailing slash so Apache was adding one.
Alias /gallery "/mnt/gallery/"
http://www.domain.com//Album
Spotted in the error log by Bharat.
Thanks again Bharat :cool: :cool: