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.
AFAIK phpMyAdmin isn't part of the installation you can get it from:
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
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
Both apache and mysql seem to be running ok.
Document root? Which directory is it. Is it my home directory? Do I have to log as root to run any php files?
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.
The document root will be defined in httpd.conf:
grep DocumentRoot /path/to/httpd.conf
find you httpd.conf
# 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.
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.
|All times are GMT -5. The time now is 10:25 PM.|