DaveCummings
Posts: 21
Joined: Tue May 29, 2012 8:26 pm
Location: Liverpool UK
Contact: Website

phpmyadmin

Wed Jun 27, 2012 10:34 pm

Hi all,
I now have my PI set up and running very happy with it! I do however have a couple of questions

1 - Is there anyway of monitoring the uptime on the webserver
2 - I cannot seem to install phpmyadmin does anyone have a good tutorial it keeps exiting at the end with a (1) error.

any help greatly taken!

dave

Freemann
Posts: 10
Joined: Wed Jun 27, 2012 8:20 pm

Re: phpmyadmin

Thu Jun 28, 2012 5:25 am

(debian)
sudo apt-get install phpmyadmin

User avatar
BakaOsaka
Posts: 40
Joined: Tue Jun 12, 2012 11:30 am

Re: phpmyadmin

Thu Jun 28, 2012 2:02 pm

I've actually modified a script to show some basic server information such as uptime, disk space usage, load etc. It requires PHP.

Code: Select all

<html>
<head>

<title><?php system("hostname"); ?> - Server Information</title>

</head>
<body>

<center>

<div align="left">
 <pre>
<div id="title1">Uptime:</div>
<?php system("uptime"); ?>


<div id="title1">System Information:</div>
<?php system("uname -a"); ?>


<div id="title1">Memory Usage (MB):</div>
<?php system("free -m"); ?>


<div id="title1">Disk Usage:</div>
<?php system("df -h"); ?>


<div id="title1">CPU Information:</div>
<?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
<?php system("cat /proc/cpuinfo | grep \"BogoMIPS\\|BogoMips\""); ?>

</align>
</pre>
</div>
</div>
</div>
</div>
</center>
</body>
</html>
You'll have to modify the layout etc, but save that as serverinfo.php and it should work.

DaveCummings
Posts: 21
Joined: Tue May 29, 2012 8:26 pm
Location: Liverpool UK
Contact: Website

Re: phpmyadmin

Fri Jun 29, 2012 3:49 pm

Hi,
That page is great - thanks!
I have tried running apt-get install phpmyadmin it appears to go through things but i get the following error

invalid group www-data
dpkg: error processing phpmyadmin --configure, sub process installed post-installation script returned error ext status 1

E: Sub-process /usr/bin/dpkg returned an error code 1

DaveCummings
Posts: 21
Joined: Tue May 29, 2012 8:26 pm
Location: Liverpool UK
Contact: Website

Re: phpmyadmin

Fri Jun 29, 2012 6:20 pm

right ignore this i had been playing with the squeeze all day and I must have broken something, I have since downloaded the os again and tried this again - works fine now

Paulmc
Posts: 2
Joined: Wed Jun 27, 2012 6:04 pm

Re: phpmyadmin

Fri Jun 29, 2012 10:55 pm

When i configure phpmyadmin i get the following error after following the instructions and then trying to run /setup

phpMyAdmin - Error
The mysqli extension is missing. Please check your PHP configuration. <a href="Documentation.html#faqmysql" target="documentation"><img src="themes/dot.gif" title="Documentation" alt="Documentation" class="icon ic_b_help" /></a>
Help?

Paulmc
Posts: 2
Joined: Wed Jun 27, 2012 6:04 pm

Re: phpmyadmin

Mon Jul 02, 2012 6:38 pm

Fixed it! All good! :D

maui
Posts: 25
Joined: Sun Jul 08, 2012 10:10 am

Re: phpmyadmin

Tue Jul 24, 2012 8:41 pm

aloha,

Your code was just what I was looking for ;)
1000 thanks for that, because I'm a php newbee.
I edited your code and put a top extencion in it.
Some color and graphics would be nice, but ... I'm not that good... yet :D

Code: Select all

<html>
<head>

<title><?php system("hostname"); ?> - Server Information</title>

</head>
<body>

<center>

<h1>Raspberry Pi Information</h1>
<div align="left">
 <pre>

<h2>Uptime:</h2>
<?php system("uptime"); ?>

<h2>System Information:</h2>
<?php system("uname -a"); ?>


<h2>Memory Usage (MB):</h2>
<?php system("free -m"); ?>


<h2>Disk Usage:</h2>
<?php system("df -h"); ?>


<h2>CPU Information:</h2>
<?php system("cat /proc/cpuinfo | grep \"model name\\|processor\""); ?>
<?php system("cat /proc/cpuinfo | grep \"BogoMIPS\\|BogoMips\""); ?>

<h2>CPU usage:</h2> 
<?php system("top -b -n1");?>

</align>
</pre>
</div>
</div>


Bioshox
Posts: 104
Joined: Sun May 27, 2012 12:18 pm
Location: Manchester, United Kingdom.
Contact: Website

Re: phpmyadmin

Tue Jul 24, 2012 9:43 pm

You might wanna check out: https://github.com/Bioshox/Raspcontrol

Displays uptime, ram usage, sd card usage and other other useful info. :)
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials :)

Return to “Networking and servers”

Who is online

Users browsing this forum: No registered users and 8 guests