Ressources dev:Reseau

De Ressources pour développeurs - The Roxane Company.
Aller à : Navigation, rechercher

[modifier] Exécuter une tâche cron

/usr/local/php5/bin/php fonctionne mais ne prend pas en compte les variables $_SERVER

Solution : utiliser lynx /usr/bin/lynx -dump "http://nom-domaine.tld/.../nom-fichier.php" >> /home/utilisateur/www/places_test/logs/cron.log

Source : http://forum.ovh.com/archive/index.php/t-35061.html

[modifier] Générer des clés SSH

cd ~/.ssh

ssh-keygen -t dsa

Nom du fichier : id_rsa2

Passphrase : aucun

Le programme vous annonce que deux clés ont été générées :

- id_rsa2 qui est la clé privée (et qui reste)

- id_rsa.pub qui est la clé publique (et qui va être copiée)

[modifier] Installer SSH2 sur OVH

ns351967 ssh2-0.12 # phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
ns351967 ssh2-0.12 # aclocal
acinclude.m4:1098: warning: underquoted definition of PHP_CHECK_SIZEOF
acinclude.m4:1098: run info '(automake)Extending aclocal'
acinclude.m4:1098: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
ns351967 ssh2-0.12 # libtoolize --force
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
ns351967 ssh2-0.12 # autoheader
ns351967 ssh2-0.12 # autoconf
ns351967 ssh2-0.12 # ./configure --with-ssh2
(…)
checking whether to build static libraries... no
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
ns351967 ssh2-0.12 # make
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
---
Build complete.
Don't forget to run 'make test'.
ns351967 ssh2-0.12 # make install
Installing shared extensions: /usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/

Outils personnels
Espaces de noms
Variantes
Actions
Navigation
Boîte à outils