Erstellt von Fabrício Vasconc
vor mehr als 8 Jahre
|
||
Instalação Servidor Sites
#Comenta a linha cdromvim /etc/apt/souces.list#Instalar sambaapt-get install samba<strong>#Crie um novo usuário no linux e adicionar no samba</strong>adduser tismbpasswd -a ti#Criar compartilhamentos mkdir /home/sites mkdir /home/backupsites/ mkdir /home/lixeira #Edite o arquivo de configuração do sambavim /etc/samba/smb.confCriação de uma lixeira para todos os compartilhamentos e uma pasta para ficar os backups[global]workgroup = unimedpel.localnetbios name = hospedagemdns proxy = yeslog file = /var/log/samba/log.%mmax log size = 1000syslog = 0obey pam restrictions = yesmap to guest = bad uservfs objects = recyclerecycle:repository = /home/lixeira/recycle:keeptree = lixeirarecycle:versions = yesrecycle:exclude = *.tmp, *.log, *.obj, ~*.*, *.bak, *.isorecycle:exclude_dir = tmp, cache[Sites]comment = Sitespath = /home/sites/browseable = yespublic = novalid users = root tionly guest = nowritable = yes#force create mode = 775#force directory mode = 775[BackupSites]comment = BackupSitespath = /home/backupsites/browseable = yespublic = novalid users = root tionly guest = nowritable = yes[Lixeira]comment = Lixeirapath = /home/lixeira/#Instalar apacheapt-get install apache2<strong>#Instalar PHP5 e dependencias</strong>apt-get install php5 libapache2-mod-php5 php5-mysql #Editar o arquivo 000-default e apache.conf do apache para alterar a pasta padrãovim /etc/apache2/sites-available/000-default.confDocumentRoot /home/sites vim /etc/apache2/apache.conf<Directory /home/sites/>
Möchten Sie kostenlos Ihre eigenen Notizen mit GoConqr erstellen? Mehr erfahren.