elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Ingresar Registrarse
11 Octubre 2008, 01:48  



  Mostrar Mensajes
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 ... 301
181  Programación / Desarrollo Web / MOVIDO: Php script para rtsp y mms en: 16 Mayo 2008, 20:53
El tema ha sido movido a PHP.

https://foro.elhacker.net/index.php?topic=212623.0
182  Forums Generales / Foro Libre / MOVIDO: SPAM en los MP! en: 15 Mayo 2008, 03:20
El tema ha sido movido a Sugerencias y dudas sobre el Foro.

https://foro.elhacker.net/index.php?topic=212410.0
183  Sistemas Operativos / GNU/Linux / Apache+SSL+cURL+PHP5+MySQL+OracleXE+Webmin+SSH+VNC+phpMyAdmin en Debian Etch en: 14 Mayo 2008, 17:19
http://foro.elhacker.net/tutoriales_documentacion/apachesslcurlphp5mysqloraclexewebminsshvncphpmyadmin_en_debian_etch-t212192.0.html
184  Informática / Tutoriales - Documentación / Re: Apache+SSL+cURL+PHP5+MySQL+OracleXE+Webmin+SSH+phpMyAdmin en Debian Etch en: 14 Mayo 2008, 03:53
iraloooo ya t habias tardado haha (y)

te falto 007 xD

saludz  >:D

x ai teñ6o uñ tuto del c6f* xDDD pero ps ño está termiñado  :¬¬
185  Informática / Tutoriales - Documentación / Apache+SSL+cURL+PHP5+MySQL+OracleXE+Webmin+SSH+VNC+phpMyAdmin en Debian Etch en: 13 Mayo 2008, 19:46
How to: Apache + SSL + cURL + eAccelerator + PHP5 + MySQL + OracleXE + Webmin + SSH + VNC + Webalizer + phpMyAdmin en Debian Etch

Debido a necesidades de un cliente le he tenido que instalar todo eso en un servidor dedicado. Si alguien lo hace recomiendo que primero lo prueben en una virtual.  ;)


Instalar Debian con:
Sistema de escritorio
Sistema base

Fuentes:
Configuramos las fuentes:
Código:
nano /etc/apt/sources.list
#Etch
deb http://http.us.debian.org/debian etch main contrib non-free
#deb http://non-us.debian.org/debian-non-US etch/non-US main contrib non-free
deb http://security.debian.org etch/updates main contrib non-free
#deb http://www.debian-multimedia.org etch main
deb-src http://http.us.debian.org/debian etch main contrib non-free
#Para Oracle
deb http://oss.oracle.com/debian unstable main non-free
ctrl+ X, S
apt-get update

SSH:
Código:
apt-get install ssh

Webmin
Código:
apt-get install  libauthen-pam-perl libio-pty-perl  libmd5-perl libnet-ssleay-perl
wget http://internap.dl.sourceforge.net/sourceforge/webadmin/webmin_1.410_all.deb
dpkg -i webmin_1.410_all.deb
Webmin install complete. You can now login to https://ip:10000/
as root with your root password, or as any user who can use sudo
to run commands as root.
https://ip:10000/

Apache2 + PHP5
Código:
apt-get install apache2 php5 libapache2-mod-php5 php5-gd
a2enmod rewrite
/etc/init.d/apache2 force-reload

eAccelerator
Código:
apt-get install build-essential php5-dev
cd /tmp
wget http://bart.eaccelerator.net/source/0.9.5.2/eaccelerator-0.9.5.2.tar.bz2
tar xvfj eaccelerator-0.9.5.2.tar.bz2
cd eaccelerator-0.9.5.2
phpize
./configure
make
make install
nano  /etc/php5/conf.d/eaccelerator.ini
Ponemos:
extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/var/cache/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
mkdir -p /var/cache/eaccelerator
chmod 0777 /var/cache/eaccelerator
/etc/init.d/apache2 restart

cURL
Código:
apt-get install php5-curl
/etc/init.d/apache2 reload

SSL
Código:
apt-get install openssl ssl-cert
apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi
a2enmod ssl
/etc/init.d/apache2 force-reload
openssl req $@ -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout
/etc/apache2/apache.pem
Generating a 1024 bit RSA private key
...++++++
.................................++++++
writing new private key to '/etc/apache2/apache.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:MX
State or Province Name (full name) [Some-State]:DF
Locality Name (eg, city) []:Df
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:
Email Address []:amartinezdec@abargon.com
chmod 600 /etc/apache2/apache.pem
nano /etc/apache2/sites-available/default
Cambiar:
NameVirtualHost *
por
NameVirtualHost *:80
NameVirtualHost *:443
Y agregrar dentro de la directiva <virtualhost>:
SSLEngine on
SSLCertificateFile /etc/apache2/apache.pem
SSLCertificateKeyFile /etc/apache2/apache.pem
ctrl+ X, S
nano  /etc/apache2/ports.conf
Agregrar:
Listen 443
ctrl+ X, S
/etc/init.d/apache2 reload
Probamos el PHP
nano /var/www/test.php
<?php phpinfo(); ?>
ctrl+ X, S
https://ip/test.php

MySQL
Código:
apt-get install mysql-server mysql-client php5-mysql

Webalizer
Código:
apt-get install webalizer

PHPmyAdmin
Código:
cd /var/www/
mkdir phpmyadmin
cd /var/www/phpmyadmin
wget http://superb-west.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.11.6-all-languages.zip
unzip phpMyAdmin-2.11.6-all-languages.zip
https://ip/phpmyadmin/
Ponemos un theme bonito
cd /var/www/phpmyadmin/themes/
wget  http://internap.dl.sourceforge.net/sourceforge/phpmyadmin/arctic_ocean-2.11a.zip
unzip arctic_ocean-2.11a.zip
nano  /var/www/phpmyadmin/config.inc.php
<?php
$cfg['blowfish_secret'] = '8#$&/sdsad##';
$i = 0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['ThemeDefault']='arctic_ocean';
?>
ctrl+ X, S

Oracle XE
Código:
wget http://oss.oracle.com/el4/RPM-GPG-KEY-oracle  -O- | sudo apt-key add -
apt-get update
apt-get install oracle-xe

Executing Post-install steps...
You must run '/etc/init.d/oracle-xe configure' as the root user to configure the database.

/etc/init.d/oracle-xe configure

Specify the HTTP port that will be used for Oracle Application Express [8080]:
Specify a port that will be used for the database listener [1521]:
Specify a password to be used for database accounts.  Note that the same
password will be used for SYS and SYSTEM.  Oracle recommends the use of
different passwords for each database account.  This can be done after
initial configuration:
Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:

Starting Oracle Net Listener...Done
Configuring Database...Done
Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to http://127.0.0.1:8080/apex
Para verlo remotamente entrar a: http://127.0.0.1:8080/apex, loguearse, Administration, Manage HTTP Access: Seleccionar:
Available from local server and remote clients
Ahora ya puedes acceder a la página de administración desde cualquier lugar. http://ip:8080/apex

VNC
Código:
apt-get install vncserver
vncserver -geometry 1024x768 -depth 24

New 'X' desktop is nombredemáquina:1

Starting applications specified in /etc/X11/Xsession
Log file is /root/.vnc/nombredemáquina:1.log

Conectarnos ipdemáquina:1

Saludos




Agregado VNC

Falta: PostgreSQL.
186  Programación / PHP / Re: Enviar datos con post en: 13 Mayo 2008, 14:19
Quiero hacer un programa en php, para obtener en una base de datos un listado de una página, el problema es que esa web está paginada.

Entonces inmaginar que estamos en pagina1.php y para cambiar a la segunda paginacion envia un formulario con action=pagina1.php pero con method post y le pasa unos parámetros, como puede ser el ultimo registro mostrado, para poder mostrar los siguientes.

Entonces lo que yo quiero saber es como puedo hacer una petición post desde php para simular ser un visitante de la web.

Si la peticion fuera get, con esto:

file('http://web.com?variable1=2&variable2=3)

me serviria, pero no sé como construir el enlace para poderme descargar el resultado de esa web.

No sé si me he explicado.

Un saludo!

Código
   1. <?php 
  2.  $ch = curl_init('http://dominio.com/pagina.php');
  3.  curl_setopt ($ch, CURLOPT_POST, 1);
  4.  curl_setopt ($ch, CURLOPT_POSTFIELDS, "parametro1=valor1&parametro2=valor2");
  5.  curl_exec ($ch);
  6.  curl_close ($ch);
  7. ?>
 
187  Sistemas Operativos / GNU/Linux / Re: tengo ubuntu y no puedo instalar windows en: 13 Mayo 2008, 05:16
Prueba que el CD realmente sirva, sino pues prueba con otro  :xD. El arranque de Linux no tiene nada que ver.
188  Programación / Desarrollo Web / Re: Urls bonitas para Google en foro SMF en: 13 Mayo 2008, 05:13
He instalado varios mods y funcionan a medias. Tenia el seo4smf (el que tiene este ahora) y se veían los foros bien, pero a la hora de las acciones, no funcionaba, no dejaba responder mensajes, etc. Y el de pretty urls que ese no funcionaba a secas XDD

También puede ser que tengo el foro en una carpeta (raiz/foro) pero lo tengo en un subdominio (foro.xnova.com.es) ¿Entonces donde debo poner el htaccess?

Gracias

Yo revisaría porqué no sirve el seoforsmf ya que es muy bueno y nunca me ha fallado. Checa tus error_log.
189  Programación / PHP / Re: Definir variables desde URL en: 13 Mayo 2008, 05:12
Hola ps asi como dice el Asunto... tengo un codigo en html con una variable:
Código:
<html>
<body background="1.gif>
<img src="1.gif" border="3">
</html>

La variable sería "1.gif".. lo q quiero hacer es definir ese numero.. es decir si en la url se escribe 2 que quede "2.gif" en la imagen de fondo y en la imagen que se muestra y así con cualquier numero. Debe ser un codigo pequeño pero no se mucho de php.


Muchas gracias

Código:
<html>
<body background="1.gif>
<img src="<?=$_GET['numero'];?>.gif" border="3">
</html>

Y lo llamas pagina.php?numero=3

Suerte
190  Programación / Desarrollo Web / Re: SubDominios -vs- Dominios en: 08 Mayo 2008, 17:39
Es como si a tu empresa le pones un .blogspot.com  :xD

Creo que depede mucho de los recursos que tengas.
191  Sistemas Operativos / GNU/Linux / Re: ¿Cual es la distribucion mas dificil? en: 05 Mayo 2008, 18:34
Solaris en un Sparc en modo texto  :xD

Yo creo que la más díficil es la que no conozcas.
192  Sistemas Operativos / GNU/Linux / Re: Pide CDs Gratis de LINUX (Shipit) en: 05 Mayo 2008, 18:32
Dirás de Ubuntu... no de Linux... y Ubuntu  :-X

Por ahí anda un thread de Solaris, también te lo mandan gratis.
193  Programación / Desarrollo Web / Re: Como hacer aparecer mi Pagina en los Buscadores? en: 05 Mayo 2008, 18:23
Usa sitemaps: https://www.google.com/webmasters/tools/  ;)
194  Programación / PHP / Re: EMAILS en Joomla LOCAL , AYudaaaa en: 02 Mayo 2008, 16:37
Instala un relay como el ar6osoft mailer.  ;)
195  Programación / PHP / Re: equivalencia de odbc_result_all en: 02 Mayo 2008, 05:10
Nop
Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 [13] 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 ... 301






Consolas     La Web de Goku     MilW0rm     MundoDivx

Hispabyte     Truzone     TodoReviews     ZonaPhotoshop

hard-h2o modding    Foros de ayuda    Yashira.org    Videojuegos    indetectables.net   

Noticias Informatica    Seguridad Informática    ADSL    Foros en español    eNYe Sec

Todas las webs afiliadas están libres de publicidad engañosa.

Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC
Free counter and web stats