Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st March 2012, 14:01
maxxer maxxer is offline
Member
 
Join Date: May 2007
Posts: 34
Thanks: 6
Thanked 1 Time in 1 Post
Default How To Set Up Apache2 With mod_fcgid And PHP5 On Debian Squeeze

What about phpmyadmin? Anyone configured it?
Just linking /etc/phpmyadmin/apache.conf won't process php files!
Reply With Quote
Sponsored Links
  #2  
Old 21st March 2012, 15:09
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,146
Thanks: 4
Thanked 55 Times in 51 Posts
Default

it should be enough to just:

Code:
apt-get install phpmyadmin
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
  #3  
Old 21st March 2012, 15:13
maxxer maxxer is offline
Member
 
Join Date: May 2007
Posts: 34
Thanks: 6
Thanked 1 Time in 1 Post
 
Default

no. that procedure creates the link to /etc/phpmyadmin/apache.conf, but then I believe fcgid doesn't have the permission to read from /usr/share/phpmyadmin, because when I try to access http://server/phpmyadmin I get offered the php source and not the real php web page.

Found out that in /etc/phpmyadmin/apache.conf, before <IfModule mod_php5.c> you need to add:

Code:
    Options FollowSymLinks +ExecCgi
    <IfModule mod_fcgid.c>
            AddHandler fcgid-script .php
            FCGIWrapper /var/www/php-fcgi-scripts/web1/php-fcgi-starter .php
            AllowOverride All 
            Order allow,deny
            allow from all
    </IfModule>
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.