LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2005, 06:08 AM   #1
itamarl
LQ Newbie
 
Registered: Jul 2004
Location: Israel
Distribution: Debian Sarge
Posts: 8

Rep: Reputation: 0
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

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!
 
Old 04-04-2005, 07:38 AM   #2
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
have you got a virtual host defined for that FQDN? If yes then apache will process the directives there ..
 
Old 04-04-2005, 07:45 AM   #3
itamarl
LQ Newbie
 
Registered: Jul 2004
Location: Israel
Distribution: Debian Sarge
Posts: 8

Original Poster
Rep: Reputation: 0
I have looked in /etc/apache2/sites-available/default and thought I should mention my FQDN...

The question is - where and how

Am I right? should it be there? What syntax should I use?

Thanks for the reply!
 
Old 04-04-2005, 09:11 AM   #4
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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?
 
Old 04-04-2005, 09:27 AM   #5
itamarl
LQ Newbie
 
Registered: Jul 2004
Location: Israel
Distribution: Debian Sarge
Posts: 8

Original Poster
Rep: Reputation: 0
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?
 
Old 04-04-2005, 11:42 AM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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.
 
Old 04-05-2005, 01:36 AM   #7
itamarl
LQ Newbie
 
Registered: Jul 2004
Location: Israel
Distribution: Debian Sarge
Posts: 8

Original Poster
Rep: Reputation: 0


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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.1 Apache2 with PHp and pear problem Jediman Linux - Software 10 04-19-2005 03:35 PM
[SOLVED] PHP safe mode, Chroot, Apache, Gallery gypsy_rabbi Linux - Security 2 10-06-2004 03:45 PM
Problem with PHP 4.3.4 and Apache2 Jeniva Linux - Newbie 7 11-16-2003 03:57 AM
photo gallery that will work in php safemode also ehpserver Linux - Software 0 10-09-2003 07:22 PM
whats the problem with rh8 and apache2/php? bigswifty75 Linux - Newbie 8 07-03-2003 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration