LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache2, PHP and Gallery problem (https://www.linuxquestions.org/questions/linux-software-2/apache2-php-and-gallery-problem-309539/)

itamarl 04-04-2005 06:08 AM

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!

linuxxed 04-04-2005 07:38 AM

have you got a virtual host defined for that FQDN? If yes then apache will process the directives there ..

itamarl 04-04-2005 07:45 AM

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!

Crashed_Again 04-04-2005 09:11 AM

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?

itamarl 04-04-2005 09:27 AM

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?

Crashed_Again 04-04-2005 11:42 AM

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.

itamarl 04-05-2005 01:36 AM

: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.