sudo aptitude updatesudo aptitude install apache2 php5 php5-mysql mysql-serversudo aptitude install php5-gd php5-imagick php5-xsl - installs the GD, Imagick, XSL libraries.mysqladmin -u root password ___root - sets the password for the administrator account for accessing the database.sudo a2enmod php5 - sudo a2enmod php5 php modulesudo /etc/init.d/apache2 force-reload - restart apachegksu gedit /var/www/phpinfo.php<?php phpinfo() ?> , save and close.mod_rewritesudo a2enmod rewrite - activate the module itselfgksu gedit /etc/apache2/sites-available/default <Directory />
Options FollowSymLinks
AllowOverride All
</ Directory> sudo /etc/init.d/apache2 force-reload - yes, the server needs to be restarted after making changes in the settings :)sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/apache.pem - create a certificatesudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl - we copy settings for a future hostgksu gedit /etc/apache2/sites-available/defaultNameVirtualHost *:80
<VirtualHost *:80>gksu gedit /etc/apache2/sites-available/ssl NameVirtualHost *: 443
<VirtualHost *: 443>
...
DocumentRoot ...
SSLEngine on
SSLCertificateFile /etc/apache2/apache.pem a2enmod ssl - a2enmod ssl SSL modulea2ensite ssl - we include a hostsudo /etc/init.d/apache2 force-reload - it's time to remember, restart apache.gksu gedit /etc/apache2/httpd.confServerName localhostsudo apt-get install trac libapache2-svn subversion python-subversion libapache2-mod-python - install the necessary componentssudo a2enmod mod_python - sudo a2enmod mod_python module to work with Pythonsudo groupadd svn - create a group to work with SVNsudo usermod -a -G svn __ - add your user to the created groupsudo usermod -a -G svn www-data - add the Apache user to the groupsudo mkdir /var/svn - folder for future repositorysudo svnadmin create /var/svn - create the repository itselfsudo chown -R www-data:svn /var/svn - change permissions for a folder to be accessed by users from the SVN groupsudo chmod -R g+ws /var/svnsudo htpasswd -c -m /etc/apache2/svn.htpasswd __ - create a password that will later be used in Apache to access the foldergksu gedit /etc/apache2/conf.d/svn <Location "/ svn">
DAV svn
Svnpath / var / svn
AuthType Basic
AuthName "SVN Repositories"
AuthUserFile /etc/apache2/svn.htpasswd
Require valid-user
</ Location> sudo mkdir /var/tracsudo trac-admin /var/trac initenvsudo chown -R www-data:svn /var/tracsudo chmod -R g+ws /var/tracsudo htpasswd -c -m /etc/apache2/trac.htpasswd __gksu gedit /etc/apache2/conf.d/trac <LocationMatch "/ trac / login">
AuthType Basic
AuthName "Projects"
AuthUserFile /etc/apache2/trac.htpasswd
Require valid-user
</ LocationMatch>
<Location / trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv / var / trac
PythonOption TracUriRoot / trac
</ Location> sudo aptitude install inadyn - installgksu gedit /etc/inadyn.conf - create a configuration file--username your_dynDNS_name --password your_varol --update_period 60000 --alias name.your.host --background
sudo /usr/sbin/inadyn - run the clientexport EDITOR=gedit
sudo crontab -e@reboot /usr/sbin/inadynsudo crontab -l - check ifps -A | grep inadyn ps -A | grep inadyn - we look, it is started or notSource: https://habr.com/ru/post/20525/
All Articles