LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-04-2004, 03:27 PM   #1
AskMe
Member
 
Registered: Jul 2003
Posts: 123

Rep: Reputation: 15
How do I know that apache, MySql, PHP, phpMyAdmin is Installed


How do I know that I have Installed Apache, PHP and MySql successfully and it is running well. Does phpMyAdmin comes with Red Hat 9 CD I mean together with MySql and Apache.
I am new user to LINUX.
 
Old 02-04-2004, 03:36 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
AFAIK phpMyAdmin isn't part of the installation you can get it from:
http://www.phpmyadmin.net

To see if your services are running:
ps -ef | grep -e "httpd\|mysql"

To see if php is working create a file called "phpinfo.php" in your DocumentRoot containing
Code:
<?php phpinfo(); ?>
then try to access it in your browser via your web server. If php is installed you will get an html page with a purple banner.
 
Old 02-04-2004, 03:46 PM   #3
AskMe
Member
 
Registered: Jul 2003
Posts: 123

Original Poster
Rep: Reputation: 15
I see the following, But still I cannot see PHP anywhere...
Do I have to write any php file and run it, then how?

This is what I see, when I run above command.............................................................................................
root 2215 1 0 04:59 ? 00:00:00 /usr/sbin/httpd
apache 2236 2215 0 04:59 ? 00:00:00 [httpd]
apache 2237 2215 0 04:59 ? 00:00:00 [httpd]
apache 2238 2215 0 04:59 ? 00:00:00 [httpd]
apache 2239 2215 0 04:59 ? 00:00:00 [httpd]
apache 2240 2215 0 04:59 ? 00:00:00 [httpd]
apache 2241 2215 0 04:59 ? 00:00:00 [httpd]
apache 2242 2215 0 04:59 ? 00:00:00 [httpd]
apache 2243 2215 0 04:59 ? 00:00:00 [httpd]
root 2852 1 0 05:02 ? 00:00:00 /bin/sh /usr/bin/safe_mysqld --defaults-file=/etc/my.cnf
mysql 2877 2852 0 05:02 ? 00:00:00 [mysqld]
engineer 2888 2542 0 05:03 pts/1 00:00:00 mysql
engineer 2976 2948 0 05:43 pts/2 00:00:00 grep -e httpd\|mysql
 
Old 02-04-2004, 03:56 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Both apache and mysql seem to be running ok.

Quote:
Originally posted by AskMe
I see the following, But still I cannot see PHP anywhere...
Do I have to write any php file and run it, then how?
Quote:
Originally posted by david_ross
To see if php is working create a file called "phpinfo.php" in your DocumentRoot containing
Code:
<?php phpinfo(); ?>
then try to access it in your browser via your web server. If php is installed you will get an html page with a purple banner.
 
Old 02-04-2004, 04:10 PM   #5
AskMe
Member
 
Registered: Jul 2003
Posts: 123

Original Poster
Rep: Reputation: 15
Document root? Which directory is it. Is it my home directory? Do I have to log as root to run any php files?
 
Old 02-04-2004, 04:15 PM   #6
deidre
LQ Newbie
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware & Gentoo
Posts: 9

Rep: Reputation: 0
DocumentRoot:
The directory out of which you will serve your
documents. By default, all requests are taken from this directory, but
symbolic links and aliases may be used to point to other locations.
 
Old 02-04-2004, 04:16 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
The document root will be defined in httpd.conf:
grep DocumentRoot /path/to/httpd.conf
 
Old 02-04-2004, 05:27 PM   #8
_KDF
Member
 
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
find you httpd.conf

# updatedb
# locate httpd.conf

then open httpd.conf with your favourite editor (we will say emacs )

# emacs httpd.conf

locate documentroot=/some/path in the conf file, that is the directory where you will place the next file.

ctrl + x then ctrl + c to exit emacs

then cd to wherever your document root is now

# emacs phpinfo.php

and type <?php phpinfo(); ?> into it.

then

ctrl + x
ctrl + s
ctrl + x
ctrl + c

now open your browser and type http//yourip/phpinfo.php and you should see a whole bunch of stuff, if you do php is installed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how do i Know Apache PHP MYSQL Installed on my Dedicated Server? phpsharma Linux - Newbie 3 04-18-2005 05:40 PM
How do I tell yum/apt/rpm that I have hand built and installed apache/mysql/php BigDave Linux - Software 1 04-14-2005 02:51 PM
Upgrade MySQL from 3.23 to 4.0 on FreeBSD with PHP and Apache installed somah *BSD 2 10-07-2004 10:59 AM
installed apache, mysql -- help with php machiner Linux - Software 2 07-28-2004 01:36 PM
Linux 8.0 installed with Apache 2.0, PHP and MySQL fmagoufis Linux - Newbie 1 12-12-2002 01:13 PM


All times are GMT -5. The time now is 03:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration