From eef9c8dfcc69b231ad9ee3531404b541a8890c9f Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Mon, 9 Jan 2012 11:39:36 -0500 Subject: [PATCH] Added README --- GENERAL.md | 35 ++++++++++++++++++++++++++++------- README.md | 4 ++++ 2 files changed, 32 insertions(+), 7 deletions(-) create mode 100644 README.md diff --git a/GENERAL.md b/GENERAL.md index 33cc3e4..5037bd4 100644 --- a/GENERAL.md +++ b/GENERAL.md @@ -13,19 +13,40 @@ To install available updates: Gentoo services have init files in the `/etc/init.d/` directory. -To start a service: +* To start a service: `/etc/init.d/[service] start` -To restart a service: +* To restart a service: `/etc/init.d/[service] restart` -To stop a service: +* To stop a service: `/etc/init.d/[service] stop` -Common services +* Common services -`mysqld` - mysql + `mysqld` - mysql + + `php-fpm` - php with fpm + + `lighttpd` - lighttpd web server -`php-fpm` - php with fpm +## Installing software + +Generally, all there is to installing addtional software is + +`emerge [software]` + +But sometimes you don't know the package name, or if it exists, so you want to search: + +`emerge --search [software]` + +And it's a good idea to see what packages will be installed, without actually installing it + +`emerge -pv [software]` + +* If the sofware you are trying to install is masked, you can add the software to the `package.keywords` file in `/etc/portage/`. If the file doesn't exist, you can create it. +Each package added to the file looks like this: +`[category]/[software] ~amd64` or if you are using a 32-bit version, `[category]/[software] ~x86` + +* If the software doesn't have the `USE` settings it needs, for example if php doesn't have mysql support, you can add these to the `package.use` file in `/etc/portage` -`lighttpd` - lighttpd web server \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..2d019b1 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Gentoo Web Server Guide + +A guide to setup and maintain a webserver with php/lighttpd +