Cheatography
                https://cheatography.com
            
        
        
    
                   
                            
                    
        
        
            
    
        
                            
        
                
        
            
                                
            
                
                                                | MySQL5
                        
                                                                                    
                                                                                            | mkdir /usr/src/mysql | Folder for installation |  
                                                                                            | cp mysql-VERSION.tar.gz /usr/src/mysql | move zip to folder |  
                                                                                            | gunzip < mysql-VERSION.tar.gz | tar -xvf - | unzip .tar.gz |  
                                                                                            | groupadd mysql | create mysql group |  
                                                                                            | useradd -g mysql mysql | create mysql user |  
                                                                                            | ./configure --prefix=/usr/local/mysql | configure installation |  
                                                                                            | make -j 4 | compile with 4 cores |  
                                                                                            | make install | install |  
                                                                                            | cp support-files/my-medium.cnf /etc/my.cnf | configure mysql... |  
                                                                                            | cd /usr/local/mysql |  
                                                                                            | bin/mysql_install_db --user=mysql |  
                                                                                            | chown -R root  . |  
                                                                                            | chown -R mysql lib |  
                                                                                            | chown -R mysql var |  
                                                                                            | chgrp -R mysql . |  
                                                                                            | bin/mysqld_safe --user=mysql & | start mysql |  
                                                                                            | bin/mysql | connect to mysql |  |  | Apache2
                        
                                                                                    
                                                                                            | mkdir /usr/src/httpd | create folder for source |  
                                                                                            | cp httpd-VERSION.tar.gz /usr/src/httpd | copy zip to new location |  
                                                                                            | gunzip < httpd-VERSION.tar.gz | tar -xvf - | unzip .tar.gz |  
                                                                                            | ./configure --prefix=/usr/local/apache2 --enable-mime-magic --enable-expires --enable-headers --enable-ssl --enable-http --enable-info --enable-dir --enable-rewrite --enable-so | configure apache compilation |  
                                                                                            | make | compile apache |  
                                                                                            | make install | install apache |  Apache2 Configuration
                        
                                                                                    
                                                                                            | old line | new line |  
                                                                                            | DocumentRoot "/usr/local/apache2/htdocs" | DocumentRoot "/var/www/htdocs" |  
                                                                                            | <Directory "/usr/local/apache2/htdocs"> | <Directory "/var/www/htdocs"> |  
                                                                                            | AllowOverride None | AllowOverride All |  
                                                                                            | DirectoryIndex index.html index.html.var | DirectoryIndex index.php index.html index.html.var |  
                                                                                            | AddHandler type-map var- addline: | old line + AddHandler php5-script php |  
                                                                                            | AddType Section - addline : | AddType application/x-httpd-php .php |  
                                                                                            | /usr/local/apache2/bin/apachectl start | start server |  File: /usr/local/apache2/conf/httpd.conf PHP 5
                        
                                                                                    
                                                                                            | mkdir /usr/src/php5 | create folder for source |  
                                                                                            | cp php-VERSION.tar.bz2 /usr/src/php5 | move zip to new folder |  
                                                                                            | tar xjf php-VERSION.tar.bz2 | unzip bz2 file |  
                                                                                            | ./configure --prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs  --with-mysql=shared,/usr/local/mysql | configure php compilation |  
                                                                                            | make | compile |  
                                                                                            | make install | install |  
                                                                                            | cp php.ini-development /usr/local/php5/lib | move the php.ini (development instead of dist) |  | 
            
                            
            
            
        
        
        
        
        
            
    
        
          
Created By
Metadata
Favourited By
Comments
Thanks a lot, very helpful!
Amazing work bro!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by matttias