PHPMyAdmin Link Only Offers Download or View With

Discussion in 'HOWTO-Related Questions' started by giganet, Aug 22, 2007.

  1. giganet

    giganet New Member

    Hello Group

    Ubuntu 6.06
    Server version: Apache/1.3.34 (Ubuntu)
    Server built: Jul 26 2006 09:10:06
    PHP 5.1.2 (cli) (built: Jul 17 2007 17:32:48)

    I have have been following the tutrial http://flurdy.com/docs/postfix and am not completed with the setup process however I am at the phase of getting ready to test if the email server is functioning to this point.

    Anyhow, I am told I should be able to create mysql tables by 'command line' OR by using 'phpmyadmin'.
    When I am at the server index which displays links to 'apache2-default' which takes me to the apache test page and also the 'phpmyadmin' link which when clicked on only offers to doanload the file or view it by selecting a local app. :confused:
    I have created a 'test.php' file in '/var/www/test.php' but when I click on it I get the same result- Save OR View??

    What am I doing wrong, why won't 'phpmyadmin' work as it should?

    I ran 'sudo dpkg -l' and the list shows that both 'apache' and 'apache2' are installed in addition to that the list also shows 'php4' & 'php5' as being installed too! :eek:
    According to the flurdy tutorial I am following the only pacakges to be used are 'apache2' and 'php4'...
    It seems by this tutorial that 'SquirrelMail' is only compatible with 'php4' and not 'php5' - I guess??

    If I restart apache all is fine.
    But if I attempt to do the same with apache2
    Code:
    sudo /etc/init.d/apache2 restart
     * Forcing reload of apache 2.0 web server...                                                                                apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    (98)Address already in use: make_sock: could not bind to address [::]:80
    no listening sockets available, shutting down
    Unable to open logs
    
    Another note would be that when I access the server by IP using a browser the index does display links as I defined above, but it bothers me with it's referral to apache2- when I run 'apache -v' it returns 1.3.34 not 2.

    Should I 'apt-get remove apache' && 'apt-get remove php4' or what- I'm not sure?

    Oh Yeah, I fogot this-- I edited '/etc/mysql/config.inc.php' ALSO
    host = localhost
    auth_type = config
    user = root
    password = xxxxx

    Can someone provide a n00b! some guidance please?

    Thank you

    Regards
     
    Last edited: Aug 22, 2007
  2. falko

    falko Super Moderator Howtoforge Staff

    PHP is not enabled in Apache.
    What are the outputs of
    Code:
    ls -la /etc/apache2/mods-available
    and
    Code:
    ls -la /etc/apache2/mods-enabled
    ?
     
  3. giganet

    giganet New Member

    RE: PHPMyAdmin Link

    Thanks for the reply...


    The output of the first command:

    Code:
    mailman@giganetwireless:/etc$ sudo ls -la /etc/apache2/mods-available
    total 192
    drwxr-xr-x 2 root root 4096 2007-08-23 11:07 .
    drwxr-xr-x 8 root root 4096 2007-08-23 22:47 ..
    -rw-r--r-- 1 root root   66 2006-07-26 11:01 actions.load
    -rw-r--r-- 1 root root   60 2006-07-26 11:01 asis.load
    -rw-r--r-- 1 root root   70 2006-07-26 11:01 auth_anon.load
    -rw-r--r-- 1 root root   68 2006-07-26 11:01 auth_dbm.load
    -rw-r--r-- 1 root root   74 2006-07-26 11:01 auth_digest.load
    -rw-r--r-- 1 root root  130 2006-07-26 11:01 auth_ldap.load
    -rw-r--r-- 1 root root   62 2006-07-26 11:01 cache.load
    -rw-r--r-- 1 root root   70 2006-07-26 11:01 cern_meta.load
    -rw-r--r-- 1 root root   61 2006-07-26 11:01 cgid.conf
    -rw-r--r-- 1 root root   60 2006-07-26 11:01 cgid.load
    -rw-r--r-- 1 root root   58 2006-07-26 11:01 cgi.load
    -rw-r--r-- 1 root root   37 2006-07-26 11:01 dav_fs.conf
    -rw-r--r-- 1 root root   64 2006-07-26 11:01 dav_fs.load
    -rw-r--r-- 1 root root   58 2006-07-26 11:01 dav.load
    -rw-r--r-- 1 root root   66 2006-07-26 11:01 deflate.load
    -rw-r--r-- 1 root root   72 2006-07-26 11:01 disk_cache.load
    -rw-r--r-- 1 root root   66 2006-07-26 11:01 expires.load
    -rw-r--r-- 1 root root   72 2006-07-26 11:01 ext_filter.load
    -rw-r--r-- 1 root root   72 2006-07-26 11:01 file_cache.load
    -rw-r--r-- 1 root root   66 2006-07-26 11:01 headers.load
    -rw-r--r-- 1 root root   60 2006-07-26 11:01 imap.load
    -rw-r--r-- 1 root root   66 2006-07-26 11:01 include.load
    -rw-r--r-- 1 root root   60 2006-07-26 11:01 info.load
    -rw-r--r-- 1 root root   60 2006-07-26 11:01 ldap.load
    -rw-r--r-- 1 root root   70 2006-07-26 11:01 mem_cache.load
    -rw-r--r-- 1 root root   85 2006-07-26 11:01 mime_magic.conf
    -rw-r--r-- 1 root root   72 2006-07-26 11:01 mime_magic.load
    -rw-r--r-- 1 root root  133 2006-04-06 02:44 php4.conf
    -rw-r--r-- 1 root root   59 2006-04-06 02:44 php4.load
    -rw-r--r-- 1 root root  133 2006-07-18 17:07 php5.conf
    -rw-r--r-- 1 root root   59 2006-07-18 17:07 php5.load
    -rw-r--r-- 1 root root  840 2006-07-26 11:01 proxy.conf
    -rw-r--r-- 1 root root   78 2006-07-26 11:01 proxy_connect.load
    -rw-r--r-- 1 root root   70 2006-07-26 11:01 proxy_ftp.load
    -rw-r--r-- 1 root root   72 2006-07-26 11:01 proxy_http.load
    -rw-r--r-- 1 root root  316 2006-07-26 11:01 proxy.load
    -rw-r--r-- 1 root root   66 2006-07-26 11:01 rewrite.load
    -rw-r--r-- 1 root root   66 2006-07-26 11:01 speling.load
    -rw-r--r-- 1 root root 3545 2006-07-26 11:01 ssl.conf
    -rw-r--r-- 1 root root   58 2006-07-26 11:01 ssl.load
    -rw-r--r-- 1 root root   64 2006-07-26 11:01 suexec.load
    -rw-r--r-- 1 root root   70 2006-07-26 11:01 unique_id.load
    -rw-r--r-- 1 root root  244 2006-07-26 11:01 userdir.conf
    -rw-r--r-- 1 root root   66 2006-07-26 11:01 userdir.load
    -rw-r--r-- 1 root root   70 2006-07-26 11:01 usertrack.load
    -rw-r--r-- 1 root root   74 2006-07-26 11:01 vhost_alias.load
    The output of the second command:

    Code:
    mailman@giganetwireless:/etc$ sudo ls -la /etc/apache2/mods-enabled
    total 8
    drwxr-xr-x 2 root root 4096 2007-08-23 11:01 .
    drwxr-xr-x 8 root root 4096 2007-08-23 22:47 ..
    lrwxrwxrwx 1 root root   36 2007-07-31 10:23 cgi.load -> /etc/apache2/mods-available/cgi.load
    lrwxrwxrwx 1 root root   40 2007-07-31 10:23 userdir.conf -> /etc/apache2/mods-available/userdir.conf
    lrwxrwxrwx 1 root root   40 2007-07-31 10:23 userdir.load -> /etc/apache2/mods-available/userdir.load
    Since this original post was made I removed:
    apache
    apache2
    php4
    php5
    libapache2-mod-php4
    libapache2-mod-php5
    libapache-mod-php5
    squirrelmail

    And then I re-installed:
    apache2
    php5
    libapache2-mod-php5
    untar xva <roundmail_file_name>


    Thank you for the help

    Regards
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You must enable PHP5 like this:
    Code:
    a2enmod php5
    and restart Apache.
     

Share This Page