Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Apache - PHP problems...!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
encase
n00b
n00b


Joined: 25 Oct 2004
Posts: 55
Location: Switzerland

PostPosted: Thu Oct 28, 2004 11:01 am    Post subject: [solved] Apache - PHP problems...! Reply with quote

I'm trying to setup a vhost mailserver with phpmyadmin support. Howto is here [url
]http://www.gentoo.org/doc/en/virt-mail-howto.xml?style=printable[/url]

Also followed this Instructions: http://forums.gentoo.org/viewtopic.php?t=104806&highlight=apache+php

Everytime when i try to access the phpmyadmin page, the browser wants to save the page instead of showing it.
I'm new to apache and php, so I don't know how to solve this problem. Would be great, if someone could help me out...

encase


Last edited by encase on Wed Jul 27, 2005 5:40 am; edited 1 time in total
Back to top
View user's profile Send private message
Vulpes_Vulpes
Apprentice
Apprentice


Joined: 10 Dec 2003
Posts: 264
Location: Amsterdam

PostPosted: Thu Oct 28, 2004 11:13 am    Post subject: Reply with quote

Are you sure you loaded apache with PHP support?

Code:

# nano -w /etc/conf.d/apache2
APACHE_OPTS="-D SSL -D PHP4"


What output do you see when you:
http://localhost/phpinfo.php

Duplicate: http://forums.gentoo.org/viewtopic.php?t=243749&highlight=
Back to top
View user's profile Send private message
encase
n00b
n00b


Joined: 25 Oct 2004
Posts: 55
Location: Switzerland

PostPosted: Thu Oct 28, 2004 11:18 am    Post subject: Reply with quote

Yes, I've uncommented this line:

APACHE_OPTS="-D SSL -D PHP4"

---------------
http://fqdn/phpinfo.php shows nothing : page not found!
Back to top
View user's profile Send private message
encase
n00b
n00b


Joined: 25 Oct 2004
Posts: 55
Location: Switzerland

PostPosted: Thu Oct 28, 2004 11:51 am    Post subject: Reply with quote

So i created a testfile for php (found in apache book) called phpinfo.php

When I'm trying to access this page, the browser wants to save it.
Back to top
View user's profile Send private message
encase
n00b
n00b


Joined: 25 Oct 2004
Posts: 55
Location: Switzerland

PostPosted: Thu Oct 28, 2004 12:04 pm    Post subject: Solved!! Reply with quote

So the problem is solved!! There was something missing in my apache.conf file. Now I've added theme. I should have read the complete Discussion of the apache-Howto.

Thanks anyway....

encase
Back to top
View user's profile Send private message
Albert_Alligator
Apprentice
Apprentice


Joined: 12 May 2004
Posts: 193
Location: Okefenokee Swamp

PostPosted: Sun Aug 07, 2005 3:09 pm    Post subject: Re: Solved!! Reply with quote

encase wrote:
So the problem is solved!! There was something missing in my apache.conf file. Now I've added theme. I should have read the complete Discussion of the apache-Howto.

Thanks anyway....

encase


Well, what was it...because now its plaguing me. What was your solution?

This type of post isn't helpful in the forums and shouldn't even be made. If you solve your problem, please add your solution to the thread. Just putting <SOLVED> in the title and not including a solution is just bad form.

Al
_________________
As Socrates once said "I drank what?"
Back to top
View user's profile Send private message
encase
n00b
n00b


Joined: 25 Oct 2004
Posts: 55
Location: Switzerland

PostPosted: Tue Aug 09, 2005 10:27 pm    Post subject: Reply with quote

ok, first of all check everything two times!! especially the installed mod_php version. and add the correct entries in the httpd.conf file.

- set the correct php extension :: e.g. -PHP4 or -PHP5
- set the correct link to the php libraries.

btw. check the apache logs, there should be some useful info. you can post it, if you something weird..
_________________
look to the master :: follow the master :: walk with the master :: see through the master :: become the master
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Wed Aug 10, 2005 1:42 am    Post subject: Reply with quote

There is also a project-page for the new php-ebuilds: http://svn.gnqs.org/projects/gentoo-php-overlay/

There you can find an updated version of the installation instructions based on the forum thread you mentioned: http://svn.gnqs.org/projects/gentoo-php-overlay/wiki/InstallOverlay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum