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
phpmyadmin
9 posts
- Posts: 11
- Joined: Tue May 29, 2012 8:26 pm
(debian)
sudo apt-get install phpmyadmin
sudo apt-get install phpmyadmin
- Posts: 10
- Joined: Wed Jun 27, 2012 8:20 pm
I've actually modified a script to show some basic server information such as uptime, disk space usage, load etc. It requires PHP.
You'll have to modify the layout etc, but save that as serverinfo.php and it should work.
- 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.
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
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
- Posts: 11
- Joined: Tue May 29, 2012 8:26 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
- Posts: 11
- Joined: Tue May 29, 2012 8:26 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?
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?
- Posts: 2
- Joined: Wed Jun 27, 2012 6:04 pm
Fixed it! All good! 
- Posts: 2
- Joined: Wed Jun 27, 2012 6:04 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
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
- 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>
- Posts: 22
- Joined: Sun Jul 08, 2012 10:10 am
You might wanna check out: https://github.com/Bioshox/Raspcontrol
Displays uptime, ram usage, sd card usage and other other useful info.
Displays uptime, ram usage, sd card usage and other other useful info.
Owner of: http://www.fusionstrike.com - I make gorgeous Raspberry Pi Tutorials 
- Posts: 99
- Joined: Sun May 27, 2012 12:18 pm
- Location: Manchester, United Kingdom.