Web Hosting Talk







View Full Version : phpinfo()


Omair Haroon
06-04-2001, 10:33 AM
Hello,

Can any expert raq guru or any one of you can check and tell me that have I installed PHP 4 correctly by visiting
http://216.234.186.28/test.php

Its a simple php page with

<?phpinfo()?>

in it..


I would be very thankful and also can anybody tell me how to make users and their database in the mysql..

and also how to check if mysql have been installed properly ?
and also how to install zend and what does zend do ?



Thanks

Cael
06-04-2001, 12:30 PM
Don't think so, I got a File Not Found error.

huck
06-04-2001, 03:28 PM
1. Check that the file is actually under the right directory.
2. Make sure it has the proper permissions. (chmod 755)
Try it again...

I am not sure what would happen if you had a php file installed but did not have php installed. This would also depend upon whether or not mod_php was installed. I do not however think you would get file not found error.

Gilby
06-04-2001, 04:56 PM
The phpinfo did show up under http://216.234.186.28/index.php and not at http://216.234.186.28/test.php

So if that is live (dynamic) data, then php is working.

mlovick
06-04-2001, 05:10 PM
I would be very thankful and also can anybody tell me how to make users and their database in the mysql..


The best place to get info on MySQL is www.mysql.org and view the manual.

To create a new db and user telnet or ssh in,

you need to decide
dbname
dbpass
dbuser

Then from the shell type:

$ mysqladmin -u root -p**** create dbname
$ mysql -u root -p**** mysql
[mysql] insert into user (host,user,password) values ('localhost','dbuser',password('dbpass'));
[mysql] insert into db values ('localhost','dbname','dbuser','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y');
[mysql] quit
$ mysqladmin -u root -p**** reload

Thats it.;)

Omair Haroon
06-05-2001, 01:52 AM
and what about php ???

anyone can tell me is mod_php enabled ?


Thanks,

Gilby
06-05-2001, 02:04 AM
Originally posted by Omair Haroon
and what about php ???
If your index.php has <?phpinfo();?> in it then it is installed correctly.

Omair Haroon
06-05-2001, 02:08 AM
it has the code

<?phpinfo();?>



Yupee


Thanks,

mlovick
06-05-2001, 05:15 AM
It looks good to me,

I strongly advise you to remove the page with phpinfo(); in it now - a hackers dream to know your server environment so intimately :)