LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-22-2005, 04:40 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Stats Page For Apache?


I am trying to get a stats page for my website using this software someone recommended but I really have no idea where to begin.

I downloaded the software called phpSysInfo-2.5-RC.tar.gz but from here I don't know what to do with it. I have created a directory to view my stats page on my server called /stats/ but from here I don't know what to do.

Here is the software link for what I am wanting to use and here is an example of the software in action on an actual running IIS server.

Can someone please let me know what I need to do on my Linux box to get this going? I assume the first step would be extracting it from its compressed form but then I am all ears.
 
Old 11-22-2005, 04:54 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it will install the same way as any other source tarball. first you decompress it, then you read the README nad INSTALL files inside it.
 
Old 11-22-2005, 05:18 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
So would this be done as root or a basic user account?

I don't use tarball's often so please excuse my ignorance.

Code:
stricom:~# pwd
/root
stricom:~# cd /home/carlos/files/
stricom:/home/carlos/files# ls
carlwilldotcom  learning debian linux.pdf  readme.txt
fonts           phpSysInfo-2.5-RC.tar.gz
stricom:/home/carlos/files# gzip phpSysInfo-2.5-RC.tar.gz
gzip: phpSysInfo-2.5-RC.tar.gz already has .gz suffix -- unchanged
 
Old 11-23-2005, 06:45 AM   #4
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Bump for help.
 
Old 11-23-2005, 07:00 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Try tar zxvf phpSysInfo-2.5-RC.tar.gz to unzip it.
 
Old 11-23-2005, 04:26 PM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally posted by Hangdog42
Try tar zxvf phpSysInfo-2.5-RC.tar.gz to unzip it.
Yes - that did the trick to uncompressing the tarball.

Now I am a little confused on how to get this working. My website is very simple. It just has one main index.html page that is located under the document root. It has 2 more subdirectories and 1 of them is a sub-dir I created to display the stats this stuff is suppose to display. The dir is carlwill.dyndns.org/status.

When I decompressed the tarball, it generated a directory called "phpsysinfo". I moved this directory to my document root which is "/var/www/" but now I am a little confused. It says if this is a new install (which it is...) to "copy" a file called config.php.new to config.php & edit it. What does that mean? Do they want me to rename this file and then edit it? If they wanted me to rename this file, wouldn't I "move" the file to the same location it is now and just lose the .new at the end?

Quote:
INSTALLATION AND CONFIGURATION
------------------------------
Just decompress and untar the source (which you should have done by now,
if you're reading this...), into your webserver's document root.

There is a configuration file called config.php.new. If this a brand
new installation, you should copy this file to config.php and edit it.


- make sure your 'php.ini' file's include_path entry contains "."
- make sure your 'php.ini' has safe_mode set to 'off'.

Please keep in the mind that because phpSysInfo requires access to many
files in /proc and other system binary you **MUST DISABLE** php's
safe_mode. Please see the PHP documentation for information on how you
can do this.

That's it. Restart your webserver (if you changed php.ini), and viola!
 
Old 11-23-2005, 05:07 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Do they want me to rename this file and then edit it? If they wanted me to rename this file, wouldn't I "move" the file to the same location it is now and just lose the .new at the end?
You can either copy, rename or move this file, the choice is really yours. Personally I would copy it so I have a pristine backup in case the editing takes a horribly bad turn. At any rate, as long as you end up with a file name config.php, you're good to go.

By the way, when I installed this, I didn't end up changing the config.php file at all.
 
Old 11-24-2005, 09:51 AM   #8
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
OK - So what I did now was extract the "tarball" to my root directory "/var/www/" and there I now have a directory called phpsysinfo. I coped the file to the same directory just lose the .new" extension. Now I am confused as to where or what needs to be done? I want to view these web stats when I go to http://carlwill.dyndns.org/status via the web so do I need to move this /var/www/phpsysinfo/ directory to /var/www/status/

Code:
login as: root
Using keyboard-interactive authentication.
Password:
Last login: Tue Nov 22 18:21:39 2005 from 192.168.1.1
stricom:~# cd /var/www/
stricom:/var/www# ls
index.html  main  phpsysinfo  status
stricom:/var/www# cd phpsysinfo/
stricom:/var/www/phpsysinfo# ls
ChangeLog       COPYING  includes   phpsysinfo.dtd  templates
config.php.new  images   index.php  README
stricom:/var/www/phpsysinfo# cp config.php.new config.php
stricom:/var/www/phpsysinfo# ls
ChangeLog   config.php.new  images    index.php       README
config.php  COPYING         includes  phpsysinfo.dtd  templates
stricom:/var/www/phpsysinfo#

Last edited by carlosinfl; 11-24-2005 at 09:53 AM.
 
Old 11-25-2005, 07:57 AM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Yes, you can do it the way you've suggested by moving it to the status directory (although you may have to specify index.php as part of the URL you enter). The other way to do this would be to set up a virtual host within Apache so you could use http://status.carlwill.dyndns.org. At least with no-ip.com (which is what I use) you can set it up so anything ending in your domain (carlwill.dyndns.org) gets sent to your IP address. If you use a virtual host, then you could leave phpsysinfo in its current directory and point to it with the virual host entry.

There is really no advantage of one way over the other, it is pretty much personal preference.
 
Old 11-25-2005, 08:41 AM   #10
SpiderIRE
Member
 
Registered: Jan 2005
Distribution: FC (Planet CCRMA Kernel)
Posts: 81

Rep: Reputation: 15
ok first off - i went to your site and noticed a few different things! First off, you have a directory called 'main' with no index.html or index.php or whatever your httpd.conf file is set show as its 'default' page! (just a thought!)

next, your web server doesn't seem to have PHP installed on it! when i went to this address http://carlwill.dyndns.org/phpsysinfo i was prompted to download the phpsysinfo file instead of your web server parsing the file! so you'll need to install that from http://www.php.net

next, if you want to have http://carlwill.dyndns.org/status as the web address for your stats, then rename the folder 'phpsysinfo' to 'status'. Do this using the MV command!

i.e. mv /var/www/phpsysinfo /var/www/status

so once you have PHP installed on the server, and you have the directory renamed, you can go to http://carlwill.dyndns.org/status and you should be able to.....do whatever needs done! i don't know the 'package' your trying to install but if its anything like a lot of PHP packages (i.e. phpBB) you'll be prompted with an install script!

-David
 
Old 11-25-2005, 09:05 AM   #11
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
next, your web server doesn't seem to have PHP installed on it! when i went to this address http://carlwill.dyndns.org/phpsysinfo i was prompted to download the phpsysinfo file instead of your web server parsing the file! so you'll need to install that from http://www.php.net
Based on just this, there is no reason to believe that he doesn't have php installed. Unless Apache recieves a URL with a .php file called, it doesn't parse the file through the php interpreter, so the fact that you called the phpsysinfo directory doesn't really tell you anything.
 
Old 11-25-2005, 09:45 AM   #12
SpiderIRE
Member
 
Registered: Jan 2005
Distribution: FC (Planet CCRMA Kernel)
Posts: 81

Rep: Reputation: 15
Apologies..............

http://carlwill.dyndns.org/phpsysinfo/config.php

heres a PHP file that once again, lets me download it! so to modify my previous statment: MAYBE php isn't installed, at the end of the day your web server is not parsing your PHP files-so fix it!

MAYBE you need to install PHP, or maybe you just have to point your httpd.conf file to the PHP Module or whatever needs to done to make PHP parse your files with the PHP extension!

-David
 
Old 11-25-2005, 03:53 PM   #13
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
David and all...

Thanks for the info. I do not think I have PHP installed so I guess my next step would be to either find how I can ask my system if I have PHP installed and or just simply install PHP. I have never used PHP so I would assume I really don't have it installed on my machine.

Is there a command or test I can perform to verify if I do or don't have PHP installed?
 
Old 11-26-2005, 07:21 AM   #14
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
If you run php --version in a console, you'll find out if you have it installed and what version you're running. If you get errors back, then odds are you don't have it installed.
 
Old 11-26-2005, 10:40 AM   #15
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Here is what I found / did ...

Code:
login as: root
Using keyboard-interactive authentication.
Password:
Last login: Thu Nov 24 10:52:39 2005 from 192.168.1.1
stricom:~# php --version
-bash: php: command not found
I then used APT-GET to search for PHP and I find a massive list of things...

Code:
php-auth - PHP PEAR modules for creating an authentication system
php-cache-lite - Fast and lite data cache system
php-cgiwrap - allows ordinary users to run their own CGI scripts and adds suppor                                                          t for PHP
php-clamav - PHP bindings for libclamav
php-date - PHP PEAR module for Date and Time Zone Classes
php-db - PHP PEAR Database Abstraction Layer
php-elisp - Emacs support for php files
php-file - PHP Pear modules for common file and directory routines
php-fpdf - PHP class to generate PDF files
php-html-template-it - PEAR HTML Template IT
php-http - PHP PEAR module for HTTP related stuff
php-http-request - provides an easy way to perform HTTP requests
php-image-canvas - Image_Canvas module for PEAR
php-image-graph - Image_Graph module for PEAR
php-imlib - PHP Imlib2 Extension
php-mail - PHP PEAR module for sending email
php-mail-mime - PHP PEAR module for creating and decoding MIME messages
php-net-sieve - net_sieve module for PEAR
php-net-smtp - PHP PEAR module implementing SMTP protocol
php-net-socket - PHP PEAR Network Socket Interface module
php-net-url - easy parsing of Urls
php-pager - Pages an array of data, creating links to previous and next pages
php-pear - PEAR - PHP Extension and Application Repository
php-radius - Radius protocol implementation in PHP
php-services-weather - acts as an interface to various online weather-services
php-simpletest - Unit testing and web testing framework for PHP
php-xml-parser - PHP PEAR module for parsing XML
php4 - server-side, HTML-embedded scripting language (meta-package)
php4-apd - PHP code execution profiler and debugger
php4-auth-pam - A PHP extension for PAM authentication
php4-cgi - server-side, HTML-embedded scripting language (CGI binary)
php4-clamavlib - PHP ClamAV Lib - ClamAV Interface for PHP4 Scripts
php4-cli - command-line interpreter for the php4 scripting language
php4-common - Common files for packages built from the php4 source
php4-curl - CURL module for php4
php4-dbtcp - PHP bindings for DBTCP
php4-dev - Files for PHP4 module development
php4-domxml - XMLv2 module for php4
php4-gd - GD module for php4
php4-gpib - libgpib php bindings
php4-idn - PHP api for the IDNA library
php4-imagick - ImageMagick module for php4
php4-imap - IMAP module for php4
php4-interbase - InterBase (FireBird) module for PHP4
php4-json - json serialiser for PHP4
php4-kadm5 - An extension to manage kerberos admin information
php4-lasso - Liberty ID-FF library - PHP 4 bindings
php4-ldap - LDAP module for php4
php4-mapscript - module for php4-cgi to use mapserver
php4-maxdb - PHP extension to access MaxDB databases
php4-mcal - MCAL calendar module for php4
php4-mcrypt - MCrypt module for php4
php4-mhash - MHASH module for php4
php4-mysql - MySQL module for php4
php4-odbc - ODBC module for php4
php4-pear - PHP Extension and Application Repository (transitional package)
php4-pear-log - Log module for PEAR
php4-pgsql - PostgreSQL module for php4
php4-ps - An extension to create PostScript files
php4-recode - Character recoding module for php4
php4-rrdtool - RRD module for php4
php4-snmp - SNMP module for php4
php4-spplus - Secured payment system of the Caisse d'Epargne (French bank)
php4-sqlite - PHP4 bindings to SQLite, a file-based SQL engine
php4-sqlrelay - SQL Relay PHP API
php4-sybase - Sybase / MS SQL Server module for php4
php4-syck - YAML parser kit -- PHP4 bindings
php4-tclink - TrustCommerce TCLink module for php4
php4-uuid - OSSP uuid module for php4
php4-xslt - XSLT module for php4
php5 - server-side, HTML-embedded scripting language (meta-package)
php5-cgi - server-side, HTML-embedded scripting language (CGI binary)
php5-clamavlib - PHP ClamAV Lib - ClamAV Interface for PHP5 Scripts
php5-cli - command-line interpreter for the php5 scripting language
php5-common - Common files for packages built from the php5 source
php5-curl - CURL module for php5
php5-dev - Files for PHP5 module development
php5-gd - GD module for php5
php5-imap - IMAP module for php5
php5-json - JSON serialiser for PHP5
php5-ldap - LDAP module for php5
php5-mhash - MHASH module for php5
php5-mysql - MySQL module for php5
php5-odbc - ODBC module for php5
php5-pgsql - PostgreSQL module for php5
php5-recode - recode module for php5
php5-snmp - SNMP module for php5
php5-sqlite - SQLite module for php5
php5-sybase - Sybase / MS SQL Server module for php5
php5-uuid - OSSP uuid module for php5
php5-xmlrpc - XML-RPC module for php5
php5-xsl - XSL module for php5
phpbb2 - A fully featured and skinnable flat (non-threaded) webforum
phpbb2-conf-mysql - Automatic configurator for phpbb2 on MySQL database
phpbb2-languages - phpBB2 additional languages
phpgacl - PHP Generic Access Control Lists
phpgroupware - web based groupware system written in PHP
phpgroupware-addressbook - phpGroupWare addressbook management module
phpgroupware-admin - phpGroupWare administration module
phpgroupware-bookmarks - phpGroupWare bookmark management module
phpgroupware-calendar - phpGroupWare calendar management module
phpgroupware-chat - phpGroupWare chat module
phpgroupware-comic - phpGroupWare comic strip parser module
phpgroupware-developer-tools - phpGroupWare developer tools
phpgroupware-dj - phpGroupWare mp3 database interface module
phpgroupware-eldaptir - phpGroupWare LDAP tree editor module
phpgroupware-email - phpGroupWare E-Mail client module
phpgroupware-etemplate - phpGroupWare etemplate module
phpgroupware-felamimail - phpGroupWare felamimail (Squirrelmail) module
phpgroupware-filemanager - phpGroupWare filemanager module
phpgroupware-folders - phpGroupWare folders module
phpgroupware-ftp - phpGroupWare ftp module
phpgroupware-fudforum - phpGroupWare fudforum module
phpgroupware-headlines - phpGroupWare headlines catcher module
phpgroupware-hr - phpGroupWare human resource management module
phpgroupware-img - phpGroupWare image editor module
phpgroupware-infolog - phpGroupWare infolog applcation
phpgroupware-manual - phpGroupWare on-line manual module
phpgroupware-messenger - phpGroupWare messenger module
phpgroupware-news-admin - phpGroupWare news administration interface
phpgroupware-nntp - phpGroupWare newsgroup reader module
phpgroupware-notes - phpGroupWare notes management module
phpgroupware-phonelog - phpGroupWare phone logging module
phpgroupware-phpbrain - phpGroupWare phpbrain module
phpgroupware-phpgwapi - library of common phpGroupWare functions
phpgroupware-phpsysinfo - phpGroupWare phpSysInfo module
phpgroupware-polls - phpGroupWare polling module
phpgroupware-preferences - phpGroupWare preferences management module
phpgroupware-projects - phpGroupWare projects management module
phpgroupware-qmailldap - phpGroupWare qmailldap module
phpgroupware-registration - phpGroupWare registration module
phpgroupware-setup - phpGroupWare setup III module
phpgroupware-sitemgr - phpGroupWare web content manager
phpgroupware-skel - phpGroupWare skeleton module
phpgroupware-soap - phpGroupWare SOAP module
phpgroupware-stocks - phpGroupWare stock management module
phpgroupware-todo - phpGroupWare todo list management module
phpgroupware-tts - phpGroupWare tts module
phpgroupware-wiki - phpGroupWare wiki module
phpgroupware-xmlrpc - phpGroupWare XMLRPC module
phpix - A PHP-based web photo album
phpldapadmin - web based interface for administering LDAP servers
phpmyadmin - set of PHP-scripts to administrate MySQL over the WWW
phppgadmin - Set of PHP scripts to administrate PostgreSQL over the WWW
phpqladmin - LDAP user administration interface
phpreports - XML-based report generator for PHP
phpsysinfo - PHP based host information
phpunit - Unit testing suite for PHP4
phpwiki - informal collaborative website manager
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
web page with apache regnier Linux - Networking 3 02-15-2005 09:49 PM
Apache Stats Shell Script Pho Linux - General 1 12-18-2004 09:41 AM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM
apache first page tpark Linux - Networking 4 02-10-2004 10:34 PM
Apache first page kelper Linux - Software 7 03-10-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration