Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Apr 07, 2010 11:24 am 
Offline
Senior Newbie

Joined: Wed Mar 31, 2010 1:18 pm
Posts: 5
WLM: seilaman@hotmail.com
Hi, i've set up my server to work with suexec and fastcgi (fcgid).
All works well for named vhosts but when i install phpmyadmin and try to access the url http://mydomain.com/phpmyadmin the browser downloads a .php file meaning apache don't know how to handle .php files

Obviously i tried to change the conf of phpmyadmin in apache to match the conf of my vhosts (the ones working) but with no luck. Aside from all sorts of erros, no can do. :\

i don't have mod_php installed.

Code:
root@guardian:~# dpkg -l | grep apache2
ii  apache2                           2.2.12-1ubuntu2.2             Apache HTTP Server metapackage
ii  apache2-mpm-prefork               2.2.12-1ubuntu2.2             Apache HTTP Server - traditional non-threade
ii  apache2-suexec                    2.2.12-1ubuntu2.2             Standard suexec program for Apache 2 mod_sue
rc  apache2-suexec-custom             2.2.12-1ubuntu2.2             Configurable suexec program for Apache 2 mod
ii  apache2-utils                     2.2.12-1ubuntu2.2             utility programs for webservers
ii  apache2.2-bin                     2.2.12-1ubuntu2.2             Apache HTTP Server common binary files
ii  apache2.2-common                  2.2.12-1ubuntu2.2             Apache HTTP Server common files
ii  libapache2-mod-fcgid              1:2.2-1                       an alternative module compat with mod_fastcg
rc  libapache2-mod-php5               5.2.10.dfsg.1-2ubuntu6.4      server-side, HTML-embedded scripting languag


Code:
root@guardian:~# dpkg -l | grep php
rc  libapache2-mod-php5               5.2.10.dfsg.1-2ubuntu6.4      server-side, HTML-embedded scripting languag
ii  php5-cgi                          5.2.10.dfsg.1-2ubuntu6.4      server-side, HTML-embedded scripting languag
ii  php5-common                       5.2.10.dfsg.1-2ubuntu6.4      Common files for packages built from the php
ii  php5-mcrypt                       5.2.6-0ubuntu2                MCrypt module for php5
ii  php5-mysql                        5.2.10.dfsg.1-2ubuntu6.4      MySQL module for php5
rc  phpmyadmin                        4:3.2.2.1-1                   MySQL web administration tool


Here's the conf of a php-working vhost

Code:
<VirtualHost 109.74.xxx.xxx:80>
  ServerName domain.net
  ServerAlias www.domain.net
  ServerAdmin mail@domain.net
  DocumentRoot /var/www/domain.net/web

  <IfModule mod_fcgid.c>
    SuexecUserGroup web web
    PHP_Fix_Pathinfo_Enable 1
    <Directory /var/www/domain.net/web/>
      Options +ExecCGI
      AllowOverride All
      AddHandler fcgid-script .php
      FCGIWrapper /var/www/php-fcgi-scripts/domain.net/php-fcgi-starter .php
      Order allow,deny
      Allow from all
    </Directory>
  </IfModule>

  ErrorLog /var/www/domain.net/logs/error.log
  CustomLog /var/www/domain.net/logs/access.log combined
  ServerSignature Off

</VirtualHost>


Contents of php-fcgi-starter

Code:
#!/bin/sh
PHPRC=/etc/php5/cgi/
export PHPRC
export PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_CHILDREN=8
exec /usr/lib/cgi-bin/php


I've tried to configure phpmyadmin and failed.
What can i do? Can someone shed a light on this subject?

Thanks
Nuno


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group