Themabewertung:
  • 33 Bewertung(en) - 1.03 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Debian 7
#1
Sources Liste für Debian 7 & 7x64:
apt-get -y install vim-nox

vi /etc/apt/sources.list

###### Debian Main Repos
deb http://ftp.de.debian.org/debian/ wheezy main contrib non-free 
deb-src http://ftp.de.debian.org/debian/ wheezy main contrib non-free 

###### Debian Update Repos
deb http://security.debian.org/ wheezy/updates main contrib non-free 
deb http://ftp.de.debian.org/debian/ wheezy-proposed-updates main contrib non-free 
deb-src http://security.debian.org/ wheezy/updates main contrib non-free 
deb-src http://ftp.de.debian.org/debian/ wheezy-proposed-updates main contrib non-free 


apt-get update && apt-get upgrade && apt-get -y install apache2 mysql-server php5
apt-get -y install phpmyadmin


ssh2 Installation:

dpkg --add-architecture i386 && apt-get update && apt-get install aptitude && apt-get install ia32-libs-i386

aptitude update && aptitude install sudo php5-dev php5-cli php-pear php5-curl php5-mcrypt php5-mysql build-essential && aptitude install openssl-dev zlib1g-dev libssh2-1-dev libssh2-php wget

pecl install -f ssh2

touch /etc/php5/apache2/conf.d/ssh2.ini

echo extension=ssh2.so > /etc/php5/apache2/conf.d/ssh2.ini

(wenn nicht geht dann manuel eintragen in die php.ini ->> extension=ssh2.so )

apache2ctl restart


Bearbeiten von default.conf

vi /etc/apache2/sites-available/default (kann auch die Datei 000-default sein)

dann das ändern...

<VirtualHost *:80>
ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

5. speichern
6. a2enmod rewrite
7. /etc/init.d/apache2 restart


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste