terça-feira, outubro 30, 2012

apache erro apache2apache2: Could not reliably determine the server's fully qualified domain name, using

Erro ao iniciar o apache

Starting apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName



sudo nano /etc/apache2/httpd.conf

adicionar no ficheiro

127.0.0.1 localhost

sudo nano /etc/hosts

adicionar no ficheiro

127.0.0.1 localhost

Raspberry pi phpMyAdmin

apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

 Escolha o servidor web que deve ser configurado automaticamente para   â
   â correr o phpMyAdmin.                                                   â
   â                                                                        â
   â Servidor web a reconfigurar automaticamente:                           â
   â                                                                        â
   â    [*] apache2                                                         â
   â    [ ] lighttpd             

selecionar apache2


 âââââââââââââââââââââââââ⤠A configurar phpmyadmin ââââââââââââââââââââââââââ
 â                                                                           â
 â O pacote phpmyadmin tem de ter uma base de dados instalada e configurada  â
 â antes de poder ser utilizado. Esta opção pode ser lidado opcionalmente    â â pelo dbconfig-common.                                                     â
 â                                                                           â
 â Se você é um administrador de bases de dados avançado e sabe que quer     ââ executar esta configuração manualmente, ou se a base de dados já está     â instalada e configurada, você deve recusar esta opção.  Detalhes do que   ââ necessita ser feito provavelmente devem ser disponibilizados em           â
 â /usr/share/doc/phpmyadmin.                                                â
 â                                                                           â
 â Caso contrário, você deve provavelmente escolher esta opção.              â                                                                           â
 â Configurar a base de dados para phpmyadmin com dbconfig-common?           â
 â                                                                           â
 â                                                                 â
 â                                                                           â
 âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ



sim


Inserir a senha do Mysql

definir a senha do phpmyadmin




nano /etc/php5/apache2/php.ini


adicionar ao ficheiro


extension=mysql.so

nano /etc/apache2/apache2.conf

adiconar ao ficheiro


Include /etc/phpmyadmin/apache.conf

 


testar http://ip/phpmyadmin

Raspberry Pi mudar a MOTD - Message of the day

nano /etc/motd




agora é só escrever


 __      ___ _____     _____  _____  ___   ___   ___  
 \ \    / (_)  __ \   |  __ \| ____|/ _ \ / _ \ / _ \ 
  \ \  / / _| |__) |__| |__) | |__ | | | | | | | | | |
   \ \/ / | |  ___/ _ \  _  /|___ \| | | | | | | | | |
    \  /  | | |  |  __/ | \ \ ___) | |_| | |_| | |_| |
     \/   |_|_|   \___|_|  \_\____/ \___/ \___/ \___/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
E gravar :) 
 

Raspberry Pi - MySQL

sudo apt-get install mysql-server mysql-client


ââââââââââââââââââââ⤠A configurar mysql-server-5.5 ââââââââââââââââââââââ
   â Embora não seja obrigatório, é fortemente recomendado que defina uma   â
   â palavra-passe para o utilizador administrativo "root" do MySQL.                        â
   â                                                                                                                                 â
   â Se este campo for deixado em branco, a palavra-passe não irá ser       â
   â alterada.                                                              â
   â                                                                        â
   â Nova palavra-passe para o utilizador "root" do MySQL:                  â
   â                                                                        â
   â ______________________________________________________________________ â
   â                                                                        â
   â                                                                    â
   â                                                                        â
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ


inserir a senha para o sql


mysql -u root -p


Inserir a senha


create database raspberrypidb;


Query OK, 1 row affected (0.00 sec)

use raspberrypidb;

Database changed



show tables;

Empty set (0.00 sec)


crtl+c para sair da consola do mysql


sudo service apache2 restart

service apache2 status


Raspberry Pi webmin



wget http://prdownloads.sourceforge.net/webadmin/webmin_1.600_all.deb

dpkg --install webmin_1.600_all.deb

faltam algumas depencias 

apt-get install libapt-pkg-perl libnet-ssleay-perl  libauthen-pam-perl libio-pty-perl  apt-show-versions





Webmin install complete. You can now login to https://raspberrypi:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.





ystem hostname raspberrypi (127.0.1.1)
Operating system Debian Linux 7.0
Webmin version 1.600
Time on system Tue Oct 30 14:49:02 2012
Kernel and CPU Linux 3.2.27+ on armv6l
System uptime 2 hours, 10 minutes
Running processes 77
CPU load averages 0.68 (1 min) 0.98 (5 mins) 0.68 (15 mins)
CPU usage 1% user, 0% kernel, 0% IO, 99% idle
Real memory 438.47 MB total, 86.41 MB used
Virtual memory 100 MB total, 0 bytes used
Local disk space 7.34 GB total, 2.14 GB used
Package updates 1 package updates are available



raspberry pi Raspcontrol

Raspcontrol

http://raspcontrol.com/download/

meter o ficheiro descarregado na pasta var tmp

ir a pasta

unzip Bioshox-Raspcontrol-b48ec2f.zip


cd Bioshox-Raspcontrol-b48ec2f

nano start.sh

onde está port=80
mudar para port=81
sudo ./start.sh


abrir o browser
http://192.168.1.171:81/


Please choose a username and password to login with


Uptime
1 hour 43 minutes 56 seconds


CPU
Loads: 1 Min: 0 · 5 Mins: 0.11 · 15 Mins: 0.17

CPU is running at 697.95 MHz


Memory
9%

Free: 399 MB Used: 38 MB · Total: 438 MB
Swap
0%

Free: 99 MB Used: 0 MB · Total: 99 MB


Storage





Montado
Uso%

Total: TamaB · Free: LivreB · Format: TipoB
/
24%

Total: 7,3GB · Free: 5,4GB · Format: ext4B
/boot
30%

Total: 56MB · Free: 40MB · Format: vfatB


Network
Ethernet | Received: 9.88 MB · Sent: 0.66 MB · Total: 10.54 MB
Active Network Connections: 24


Active Users
User: pi
IP From:



crtl +c para terminar

 chmod 777 ./start.sh
 


bem depois de testar vi que era bonito mas perferia o WEbmin

Raspberry pi Instalação do PHP

sudo apt-get install php5




sudo service apache2 restart
php -v


resultado


PHP 5.4.4-7 (cli) (built: Sep 13 2012 04:23:31)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies



ok

ir a pasta /var/www

criar um novo ficheiro

teste.php


codigo para o ficheiro

phpinfo();
?>



abrir um browser http://ip/teste.php





Deverá abrir

PHP Version 5.4.4-7


System Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l
Build Date Sep 13 2012 01:19:39
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
Scan this dir for additional .ini files /etc/php5/apache2/conf.d
Additional .ini files parsed /etc/php5/apache2/conf.d/10-pdo.ini
PHP API 20100412
PHP Extension 20100525
Zend Extension 220100525
Zend Extension Build API220100525,NTS
PHP Extension Build API20100525,NTS
Debug Build no
Thread Safety disabled
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support provided by mbstring
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streamshttps, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
Registered Stream Socket Transportstcp, udp, unix, udg, ssl, sslv3, tls
Registered Stream Filterszlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

Raspeberry pi Apache web server


instalar o apache web server



sudo apt-get update
sudo apt-get install apache2

cd /etc/apache2


teste de browser

http://ip

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

Rasberry upgrade

Updating linux
1. sudo apt-get update
2. sudo apt-get upgrade

Updating Raspberry Pi Firmware
1. sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
2. sudo apt-get install git-core
3. sudo rpi-update


segunda-feira, outubro 29, 2012

Elastix+freepbx 10

Bem na versão 10 do freepbx foi removido do framework o modulo do CDR report por isso para activar novamente este modulo e preciso efectuar o download

http://mirror.freepbx.org/modules/release/2.10/cdr-2.10.0.6.tgz

e a instalação e já está a funcionar :)


LinkWithin

Related Posts Widget for Blogs by LinkWithin