Basic Webserver Administration on Posix (Centos, Linux, etc...)

Disclaimer

I am a part time user of Posix. So, if you are looking for the bare minimum you are likely at the right place. My development platform is a Windows laptop. My production server is a VPS running centos.

I put this page together as these are not command lines I run all the time. Having this page saves me the trouble of having to google for an example as I just do not do many of them enough to remember them off the top of my head.

I typically use WHM for a number of these functions, but I must confess preferring the command line.

Restarting Services

Restart Apache


/etc/init.d/httpd restart

Restart SSH


/etc/init.d/sshd restart

Restart cPanel


/etc/init.d/cpanel restart

Posix (Centos/Linux) Commands

Locate a file

Note: Qualify the path as far as you know


find /home/public_html -name filename.txt -print

Get list of groups


cat /etc/group | cut -d":" -f1

Get list of users


cat /etc/passwd | cut -d":" -f1

File Locations


                 php.ini: /usr/local/lib
              httpd.conf: /usr/local/apache/conf
             Apache logs: /usr/local/apache/logs 
       Apache Php Config: /usr/local/apache/conf/php.conf
 Apache error doc config: /usr/local/apache/conf/includes/errordocument.conf

 

 


If you find this site useful and are a book buyer/reader...

Abe Books is one of my affiliates. I only use affiliates that I also purchase products from. I love Abe books. I have purchased many books from them originally cost $40 to $60 for as little as $5 to $10 dollars including shipping costs.

By accessing Abe books and clicking on one of my links I receive a small commission on your purchase that helps pay for this site. You pay no more for your books than if you accessed their site directly. Thanks for your support.

Free Shipping 125x125

Webserver Resources

WAMP

Apache

SysAdmin













navTango.com free

75% of your donation

goes to charity.