Apache2, PHP and Gallery problem
Hello all,
I am experiencing a weird problem with my Debian box. Please excuse me if this is down right stupid :newbie: I Installed Apache2, PHP4 and Gallery on my Sarge box using apt. When I try to connect to the the server from a remote box using the FQDN I can connect to the homepage (the apache opening screen) but when I try to connect to the /gallery folder I am asked if I want to save the .php file. I have also revealed that if I try to connect using the IP address of the server and /gallery I am able to see the gallery web site. I understand that I need to enable the FQDN somewhere on the server. I have added it to /etc/hostname and to the /etc/hosts file with no avail. Can any of you help me here? Thanks allot! |
have you got a virtual host defined for that FQDN? If yes then apache will process the directives there ..
|
I have looked in /etc/apache2/sites-available/default and thought I should mention my FQDN...
The question is - where and how :scratch: Am I right? should it be there? What syntax should I use? Thanks for the reply! |
Most likely the issue is that apache is not setup with php support. That is why it is prompting you to download the .php file.
Do you have the php module loaded in your apache.conf file? Do you have it setup in your /etc/conf.d/apache file? |
Thanks Crashed_Again, But PHP is working when I go to the ip-address/gallry.
for some reason when I approach it as FQDN/gallery I get the "save as". I need to make my apache live with the fact that PHP needs to work when I use the FQDN style Any ideas? |
Oh sorry, I failed to see that you did have php working. Well then, I would guess its a config issue in your apache.conf. Can you create a php file in your FQDN root and try to access it that way? You mine as well post your apache.conf or httpd.conf(whatever its called in debain(I don't know debian)).
I recall running into this issue before when I first setup php and apache. The problem is, I don't remember how I fixed it. Maybe looking at your conf file will jog my memory. |
:p :rolleyes:
Oh dear.... I cleared the cache of my browser and now it works... I guess I had some problems in the begining and they got stuck in the cache of my Firefox (and IE). When I tried again from home it worked instantly! I then connected back to work via VNC, cleared the cache and it instantly loaded.. I want to thank the lot of you and apologize for bothering you. |
All times are GMT -5. The time now is 08:03 PM. |