Cheatography
https://cheatography.com
Basics
deb http:/ /ol d-r ele ase s.u bun tu.c om /ub untu/ lucid main restricted universe multiverse
deb http:/ /ol d-r ele ase s.u bun tu.c om /ub untu/ lucid- ‐updates main restricted universe multiverse
deb http:/ /ol d-r ele ase s.u bun tu.c om /ub untu/ lucid- ‐sec urity main restricted universe multiverse
text scrollt langsam => /etc/modprobe.d/blacklistframebuffer.conf ---- zeile
blacklist vga16fb" hinzufügen
sources ändern: vi /etc/a pt/ sou rce s.list |
MySQL
$ mkdir /usr/src/mysql |
$ cp mysql-VERSION.tar.gz /usr/src/mysql |
$ cd /usr/src/mysql |
$ gunzip < mysql-VERSION.tar.gz | tar -xvf - |
$ cd mysql-VERSION |
$ groupadd mysql |
$ useradd -g mysql mysql |
$ ./configure --prefix=/usr/local/mysql [add the necessary extra options here] |
$ make |
$ make install |
$ cp support-files/my-medium.cnf /etc/my.cnf |
$ cd /usr/local/mysql |
$ bin/mysql_install_db --user=mysql |
$ chown -R root . |
$ chown -R mysql lib |
$ chgrp -R mysql . |
$ bin/mysqld_safe --user=mysql & |
$ mysql |
SHOW DATABASES; |
cd /usr/local/mysql ; bin/mysqld_safe --user=mysql & |
|
|
Apache2
$ mkdir /usr/src/httpd |
$ cp httpd-VERSION.tar.gz /usr/src/httpd |
$ cd /usr/src/httpd |
$ gunzip < httpd-VERSION.tar.gz | tar -xvf - |
$ cd httpd-VERSION |
$ ./configure --prefix=/usr/local/apache2 [add extra options here] |
$ make |
$ make install |
PHP5
$ mkdir /usr/src/php5 |
$ cp php-VERSION.tar.gz /usr/src/php5 |
$ cd /usr/src/php5 |
$ gunzip < php-VERSION.tar.gz | tar -xvf - |
$ cd php-VERSION |
$ ./configure \ |
$ --prefix=/usr/local/php5 \ |
$ --with-apxs2=/usr/local/apache2/bin/apxs \ |
$ --with-mysql=shared,/usr/local/mysql [add your options here] |
$ make |
$ make install |
cp php.ini-dist /usr/local/php5/lib |
Configuring Apache
DocumentRoot "/usr/local/apache2/htdocs" |
DocumentRoot "/var/www/htdocs" |
<Directory "/usr/local/apache2/htdocs"> |
<Directory "/var/www/htdocs"> |
AllowOverride None |
AllowOverride All |
DirectoryIndex index.php index.html index.html.var |
/usr/local/apache2/bin/apachectl start |
|
Created By
Metadata
Favourited By
Comments
matttias, 17:50 15 Oct 19
a very nice
Add a Comment
Related Cheat Sheets