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 22nd August 2007, 22:26
giganet giganet is offline
Senior Member
 
Join Date: Aug 2007
Location: California
Posts: 243
Thanks: 116
Thanked 1 Time in 1 Post
Send a message via AIM to giganet
Question PHPMyAdmin Link Only Offers Download or View With

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.
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!
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 by giganet; 22nd August 2007 at 22:32.
Reply With Quote
Sponsored Links
  #2  
Old 23rd August 2007, 19:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

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
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 24th August 2007, 17:22
giganet giganet is offline
Senior Member
 
Join Date: Aug 2007
Location: California
Posts: 243
Thanks: 116
Thanked 1 Time in 1 Post
Send a message via AIM to giganet
Post 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
Reply With Quote
  #4  
Old 25th August 2007, 16:08
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
 
Default

You must enable PHP5 like this:
Code:
a2enmod php5
and restart Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link to download kernal version envisage Kernel Questions 1 20th June 2007 14:54
colocation problem d3m0nic Installation/Configuration 14 23rd June 2006 23:18
phpMyAdmin question? ctroyp Installation/Configuration 1 20th March 2006 23:19
download link mrh Installation/Configuration 4 8th August 2005 19:31


All times are GMT +2. The time now is 03:43.


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