Wednesday, October 26, 2005

Server Administration 1

Where is PHP.so located?



locate php.so



How can I stop iptables?

service iptables stop



How can I change password for root user?

Use passwd command

[root@srv:~]$ passwd

Changing password for user root.

New password:


Retype new password:

passwd: all authentication tokens updated successfully.



How can I search for "conf" in filenames within the current directory and display its listing in a long listing format?

dir -l | grep conf



Run phpinfo in command mode?

php -i



Get the first fifty lines of a command?


 php -i | head -50


0 Comments:

Post a Comment

<< Home