LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 09-18-2006, 12:06 PM   #1
Br. Nicholas
Member
 
Registered: Nov 2000
Location: Buena Vista, Colorado
Posts: 31

Rep: Reputation: 15
Apache PHP Configuration Problem


I have the same problem with both OpenSuse 10.1 and SLES 10. I go into Yast and set up everything for apache2. I try to open a php page, and it wants to open in a program such as gedit or save to the disk.

Now here's the strange part.

If I put a php page in my Default Host, it works. I can get phpinfo and everything. But if I put the same file in any other virtual host, it prompts me to open or save the document.

Below is the Virtual Host setup for one of my hosts. Yast only wanted to let me add one AddHandler, so I had to manually add the others. Then I ran SuSEconfig and restarted apache.

This VirtualHost is for internal use only. Hence, the strange address.

I'm running the 64 bit Suse, if that makes a difference. It seems to me that it is probably a problem with how I have my virtual hosts set up since it works with my Default Host, but even if I copy my virtual hosts from my existing SuSE 10.0 production server, it does the same thing. It works on SuSE 10.0, but not 10.1 or SLES 10.

I've read all the posts on this list, and many others, about getting php to work, and tried practically everything -- but this seems to be a new twist on it.

If anyone could help shed some light on what in the world is going on here, I would *greatly* appreciate it. I've been fighting with this for several days.


<VirtualHost 192.168.0.50>
DocumentRoot /srv/www/htdocs/dormitionskete.org.ds/
ServerName dormitionskete.org.ds
ServerAdmin dsadmin@dormition.ds
ScriptAlias /cgi-bin/ /srv/www/htdocs/dormitionskete.org.ds/cgi-bin/
<Directory /srv/www/htdocs/dormitionskete.org.ds/cgi-bin/>
AllowOverride None
Options Indexes FollowSymLinks Includes ExecCGI MultiViews
Order allow,deny
Allow from all
DirectoryIndex index.shtml index.html index.php
AddHandler send-as-is asis
AddHandler cgi-script .cgi
</Directory>
# YaST created entry
<Directory "/srv/www/htdocs/dormitionskete.org.ds/">
Options Indexes FollowSymLinks Includes ExecCGI MultiViews
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.shtml index.html index.php
AddHandler php-script .php
AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler send-as-is asis
</Directory>
</VirtualHost>
 
Old 09-19-2006, 08:12 PM   #2
mattl
Member
 
Registered: Mar 2004
Location: MA, USA
Distribution: OpenSuse 10, FC4/5, Mepis
Posts: 95

Rep: Reputation: 15
i am not an expert , but i do use virtual hosts with apache on suse as well with no probs - so since youve no replies yet, here goes ...as i recall from my setups i have never had to make any reference to php in my virtual host sections and it works. id try removing the addhandler and p
hp specific lines in your virtual host. all i ever had to do was make sure that the apache-php module was loaded and that was that. i do recall having to specify the filetype on another web server i used briefly a few yrs ago but dont think thats your issue here.
 
Old 09-19-2006, 09:45 PM   #3
Br. Nicholas
Member
 
Registered: Nov 2000
Location: Buena Vista, Colorado
Posts: 31

Original Poster
Rep: Reputation: 15
When I hadn't received any replies by late this afternoon, I finally gave up and blew away my SLES 10 install and put 10.1 back on it. I tried to put Suse 10.0 on it, but my hardware is too new. I figure I'll try to install apache, php and perl from the 10.0 dvd on it and see if that works better. It works on my two 10.0 production servers. If it won't let me put the 10.0 packages on it, I'll try your suggestion with the 10.1 packages. If it still doesn't work, I'll either have one of the other servers run apache and not bother with it on this machine anymore, or set up a virtual server on this machine and run redhat on it just for apache. It's just for internal use only anyway. I'm tired of fighting with it. I want to get this box out of my office and get on with my life.

Thanks very much for your post, though.
 
Old 09-20-2006, 04:59 PM   #4
Br. Nicholas
Member
 
Registered: Nov 2000
Location: Buena Vista, Colorado
Posts: 31

Original Poster
Rep: Reputation: 15
Question

Never mind. I thought I found the problem. I was wrong.

Last edited by Br. Nicholas; 09-20-2006 at 05:11 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
PHP configuration with apache web server vikrambhimbar Linux - Software 4 12-17-2005 05:04 AM
Apache 2 Configuration in Webmin -- and PHP support vharishankar Linux - General 4 02-10-2005 05:06 AM
Apache PHP configuration varunbihani Linux - Newbie 2 01-18-2005 03:49 AM
PHP and APACHE servers.. configuration question eech55 *BSD 6 10-20-2004 03:40 PM
Apache MySQL PHP configuration Gilion Linux - Software 1 02-02-2004 11:58 AM


All times are GMT -5. The time now is 04:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration