PHP 5.3 & Xdebug & APC install script per Dreamhost
Ecco a voi uno script per installare:• PHP 5.3.0
• Xdebug 2.0.5
• APC 3.1.2
su Dreamhost (ma in realtà può essere facilmente adattato ad altre situazioni).
Lo script è in bash ed è stato originariamente preso dal wiki di DH ma ha subito molte aggiunte per addattarlo ai miei scopi. A differenza dello script originale ho preferito, fin dove possibile, appoggiarmi a librerie già presenti sul sistema, senza imbarcarmi in dispendiose ed ulteriori compilazioni. Ho tentato di preservare tutte le feature presenti nel PHP di base di DH, l'unica rinuncia è stata Kerberos (ho tentato in tutti i modi, ma il configure proprio non le voleva vedere le sue librerie sotto /usr/lib/) che, in ogni caso, è raramente sfruttato con PHP (ma magari mi sbaglio).
In sintesi conclusiva ecco a voi lo script (è necessario personalizzare almeno la variabile DOMAIN):
#!/bin/sh
# Script updated 2009-07-24 by ercoppa (ercoppa.org) to convert this script for PHP 5.3 (with all features of dreamhost,
# except kerberos) with Xdebug and APC
#
# Script updated 2009-05-24 by ksmoe to correct copying of correct PHP cgi file (php-cgi instead of php)
# Script updated 2006-12-25 by Carl McDade (hiveminds.co.uk) to allow memory limit and freetype
#
# Script updated 2007-11-24 by Andrew (ajmconsulting.net) to allow 3rd wget line to pass
# LIBMCRYPT version information (was set as static download file name previously.)
#
# Script updated 2009-4-25 by Daniel (whathuhstudios.com) for latest source versions
#
# Save the code to a file as *.sh
# Abort on any errors
#
set -e
# The domain in which to install the PHP CGI script.
export DOMAIN="librecode.com"
# Where do you want all this stuff built? I'd recommend picking a local
# filesystem.
# ***Don't pick a directory that already exists!*** We clean up after
# ourselves at the end!
SRCDIR=${HOME}/source
# And where should it be installed?
INSTALLDIR=${HOME}/php5
# Set DISTDIR to somewhere persistent, if you plan to muck around with this
# script and run it several times!
DISTDIR=${HOME}/dist
# Pre-download clean up!!!!
rm -rf $SRCDIR
# Update version information here.
PHP5="php-5.3.0"
CURL="curl-7.19.5"
XDEBUG="xdebug-2.0.5"
AUTOCONF="autoconf-2.63"
CCLIENT="imap-2004g"
CCLIENT_DIR="imap-2004g"
OPENSSL="openssl-0.9.8k"
OPENSSL_DIR="openssl-0.9.8k"
LIBMCRYPT="libmcrypt-2.5.8"
APC="APC-3.1.2"
# What PHP features do you want enabled?
PHPFEATURES="--prefix=${INSTALLDIR} \
--with-config-file-path=${INSTALLDIR}/etc/php5/${DOMAIN} \
--with-config-file-scan-dir=${INSTALLDIR}/etc/php5/${DOMAIN} \
--enable-fastcgi \
--bindir=$INSTALLDIR/bin \
--enable-force-cgi-redirect \
--with-xml \
--with-freetype-dir=/usr \
--with-mhash=/usr \
--with-zlib-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-curl=${INSTALLDIR} \
--with-gd \
--enable-gd-native-ttf \
--enable-memory-limit \
--enable-ftp \
--enable-exif \
--enable-sockets \
--enable-wddx \
--enable-sqlite-utf8 \
--enable-calendar \
--enable-mbstring \
--enable-mbregex \
--enable-bcmath \
--with-mysql=/usr \
--with-mysqli \
--without-pear \
--with-gettext \
--with-pdo-mysql \
--with-openssl=${INSTALLDIR} \
--with-imap=${INSTALLDIR} \
--with-xsl \
--with-ttf=/usr \
--with-xslt \
--with-xslt-sablot=/usr \
--with-dom-xslt=/usr \
--with-mcrypt=${INSTALLDIR} \
--with-imap-ssl=/usr"
# ---- end of user-editable bits. Hopefully! ----
# Push the install dir's bin directory into the path
export PATH=${INSTALLDIR}/bin:$PATH
# set up directories
mkdir -p ${SRCDIR}
mkdir -p ${INSTALLDIR}
if [ ! -f ${DISTDIR} ]
then
mkdir -p ${DISTDIR}
fi
cd ${DISTDIR}
# Get all the required packages
if [ ! -f ${DISTDIR}/${PHP5}.tar.gz ]
then
wget -c http://it.php.net/get/${PHP5}.tar.gz/from/ch.php.net/mirror
fi
if [ ! -f ${DISTDIR}/${CURL}.tar.gz ]
then
wget -c http://curl.haxx.se/download/${CURL}.tar.gz
fi
if [ ! -f ${DISTDIR}/${AUTOCONF}.tar.gz ]
then
wget -c http://ftp.gnu.org/gnu/autoconf/${AUTOCONF}.tar.gz
fi
if [ ! -f ${DISTDIR}/${XDEBUG}.tgz ]
then
wget -c http://xdebug.org/files/${XDEBUG}.tgz
fi
if [ ! -f ${DISTDIR}/${CCLIENT}.tar.Z ]
then
wget -c ftp://ftp.cac.washington.edu/imap/old/${CCLIENT}.tar.Z
fi
if [ ! -f ${DISTDIR}/${OPENSSL}.tar.gz ]
then
wget -c http://www.openssl.org/source/${OPENSSL}.tar.gz
fi
if [ ! -f ${DISTDIR}/${LIBMCRYPT}.tar.gz ]
then
wget -c http://easynews.dl.sourceforge.net/sourceforge/mcrypt/${LIBMCRYPT}.tar.gz
fi
if [ ! -f ${DISTDIR}/${APC}.tgz ]
then
wget -c http://pecl.php.net/get/${APC}.tgz
fi
echo ---------- Unpacking downloaded archives. This process may take several minutes! ----------
cd ${SRCDIR}
# Unpack them all
echo Extracting ${PHP5}...
tar xzf ${DISTDIR}/${PHP5}.tar.gz
echo Done.
echo Extracting ${CURL}...
tar xzf ${DISTDIR}/${CURL}.tar.gz
echo Done.
echo Extracting ${XDEBUG}...
tar xzf ${DISTDIR}/${XDEBUG}.tgz
echo Done.
echo Extracting ${AUTOCONF}...
tar xzf ${DISTDIR}/${AUTOCONF}.tar.gz
echo Done.
echo Extracting ${CCLIENT}...
uncompress -cd ${DISTDIR}/${CCLIENT}.tar.Z |tar x
echo Done.
echo Extracting ${OPENSSL}...
uncompress -cd ${DISTDIR}/${OPENSSL}.tar.gz |tar x
echo Done.
echo Extracting ${LIBMCRYPT}...
tar xzf ${DISTDIR}/${LIBMCRYPT}.tar.gz
echo Done.
echo Extracting ${APC}...
tar xzf ${DISTDIR}/${APC}.tgz
echo Done.
# Build them in the required order to satisfy dependencies
#cURL
echo ###################
echo Compile CURL
echo ###################
cd ${SRCDIR}/${CURL}
./configure --enable-ipv6 --enable-cookies \
--enable-crypto-auth --prefix=${INSTALLDIR}
# make clean
make
make install
#CCLIENT
echo ###################
echo Compile CCLIENT
echo ###################
cd ${SRCDIR}/${CCLIENT_DIR}
make ldb
# Install targets are for wusses!
cp c-client/c-client.a ${INSTALLDIR}/lib/libc-client.a
cp c-client/*.h ${INSTALLDIR}/include
#OPENSSL
echo ###################
echo Compile OPENSSL
echo ###################
# openssl
cd ${SRCDIR}/${OPENSSL_DIR}
./config --prefix=${INSTALLDIR}
make
make install
#MCRYPT
echo ###################
echo Compile MCRYPT
echo ###################
cd ${SRCDIR}/${LIBMCRYPT}
./configure --disable-posix-threads --prefix=${INSTALLDIR}
# make clean
make
make install
#PHP 5
echo ###################
echo Compile PHP
echo ###################
cd ${SRCDIR}/${PHP5}
./configure ${PHPFEATURES}
# make clean
make
make install
# Copy a basic configuration for PHP
mkdir -p ${INSTALLDIR}/etc/php5/${DOMAIN}
cp ${SRCDIR}/${PHP5}/php.ini-production ${INSTALLDIR}/etc/php5/${DOMAIN}/php.ini
#AUTOCONF
echo ###################
echo Compile AUTOCONF
echo ###################
cd ${SRCDIR}/${AUTOCONF}
./configure --prefix=${INSTALLDIR}
# make clean
make
make install
# XDEBUG
echo ###################
echo Compile XDEBUG
echo ###################
cd ${SRCDIR}/${XDEBUG}
export PHP_AUTOHEADER=${INSTALLDIR}/bin/autoheader
export PHP_AUTOCONF=${INSTALLDIR}/bin/autoconf
echo $PHP_AUTOHEADER
echo $PHP_AUTOCONF
${INSTALLDIR}/bin/phpize
./configure --enable-xdebug --with-php-config=${INSTALLDIR}/bin/php-config --prefix=${INSTALLDIR}
# make clean
make
mkdir -p ${INSTALLDIR}/extensions
cp modules/xdebug.so ${INSTALLDIR}/extensions
echo "zend_extension=${INSTALLDIR}/extensions/xdebug.so" >> ${INSTALLDIR}/etc/php5/${DOMAIN}/xdebug.ini
# APC
echo ###################
echo Compile APC
echo ###################
cd ${SRCDIR}/${APC}
${INSTALLDIR}/bin/phpize
./configure --enable-apc --enable-apc-mmap --with-php-config=${INSTALLDIR}/bin/php-config --prefix=${INSTALLDIR}
# make clean
make
cp modules/apc.so ${INSTALLDIR}/extensions
echo "extension=${INSTALLDIR}/extensions/apc.so" >> ${INSTALLDIR}/etc/php5/${DOMAIN}/apc.ini
# Copy PHP CGI
mkdir -p ${HOME}/${DOMAIN}/cgi-bin
chmod 0755 ${HOME}/${DOMAIN}/cgi-bin
cp ${INSTALLDIR}/bin/php-cgi ${HOME}/${DOMAIN}/cgi-bin/php.cgi
rm -rf $SRCDIR $DISTDIR
# Create .htaccess
if [ -f ${HOME}/${DOMAIN}/.htaccess ]
then
echo #
echo '#####################################################################'
echo ' Your domain already has a .htaccess, it is ranamed .htaccess_old '
echo ' --> PLEASE FIX THIS PROBLEM <-- '
echo '#####################################################################'
echo #
mv ${HOME}/${DOMAIN}/.htaccess ${HOME}/${DOMAIN}/.htaccess_old
fi
echo 'Options +ExecCGI' >> ${HOME}/${DOMAIN}/.htaccess
echo 'AddHandler php-cgi .php' >> ${HOME}/${DOMAIN}/.htaccess
echo 'Action php-cgi /cgi-bin/php.cgi' >> ${HOME}/${DOMAIN}/.htaccess
echo '' >> ${HOME}/${DOMAIN}/.htaccess
echo '<FilesMatch "^php5?\.(ini|cgi)$">' >> ${HOME}/${DOMAIN}/.htaccess
echo 'Order Deny,Allow' >> ${HOME}/${DOMAIN}/.htaccess
echo 'Deny from All' >> ${HOME}/${DOMAIN}/.htaccess
echo 'Allow from env=REDIRECT_STATUS' >> ${HOME}/${DOMAIN}/.htaccess
echo '</FilesMatch>' >> ${HOME}/${DOMAIN}/.htaccess
echo ---------- INSTALL COMPLETE! ----------
echo
echo 'Configuration files:'
echo "1) General PHP -> ${INSTALLDIR}/etc/php5/${DOMAIN}/php.ini"
echo "2) Xdebug conf -> ${INSTALLDIR}/etc/php5/${DOMAIN}/xdebug.ini"
echo "3) APC conf -> ${INSTALLDIR}/etc/php5/${DOMAIN}/apc.ini"
echo
echo 'You have to modify these files in order to enable Xdebug or APC features.'
exit 0
# Script updated 2009-07-24 by ercoppa (ercoppa.org) to convert this script for PHP 5.3 (with all features of dreamhost,
# except kerberos) with Xdebug and APC
#
# Script updated 2009-05-24 by ksmoe to correct copying of correct PHP cgi file (php-cgi instead of php)
# Script updated 2006-12-25 by Carl McDade (hiveminds.co.uk) to allow memory limit and freetype
#
# Script updated 2007-11-24 by Andrew (ajmconsulting.net) to allow 3rd wget line to pass
# LIBMCRYPT version information (was set as static download file name previously.)
#
# Script updated 2009-4-25 by Daniel (whathuhstudios.com) for latest source versions
#
# Save the code to a file as *.sh
# Abort on any errors
#
set -e
# The domain in which to install the PHP CGI script.
export DOMAIN="librecode.com"
# Where do you want all this stuff built? I'd recommend picking a local
# filesystem.
# ***Don't pick a directory that already exists!*** We clean up after
# ourselves at the end!
SRCDIR=${HOME}/source
# And where should it be installed?
INSTALLDIR=${HOME}/php5
# Set DISTDIR to somewhere persistent, if you plan to muck around with this
# script and run it several times!
DISTDIR=${HOME}/dist
# Pre-download clean up!!!!
rm -rf $SRCDIR
# Update version information here.
PHP5="php-5.3.0"
CURL="curl-7.19.5"
XDEBUG="xdebug-2.0.5"
AUTOCONF="autoconf-2.63"
CCLIENT="imap-2004g"
CCLIENT_DIR="imap-2004g"
OPENSSL="openssl-0.9.8k"
OPENSSL_DIR="openssl-0.9.8k"
LIBMCRYPT="libmcrypt-2.5.8"
APC="APC-3.1.2"
# What PHP features do you want enabled?
PHPFEATURES="--prefix=${INSTALLDIR} \
--with-config-file-path=${INSTALLDIR}/etc/php5/${DOMAIN} \
--with-config-file-scan-dir=${INSTALLDIR}/etc/php5/${DOMAIN} \
--enable-fastcgi \
--bindir=$INSTALLDIR/bin \
--enable-force-cgi-redirect \
--with-xml \
--with-freetype-dir=/usr \
--with-mhash=/usr \
--with-zlib-dir=/usr \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-curl=${INSTALLDIR} \
--with-gd \
--enable-gd-native-ttf \
--enable-memory-limit \
--enable-ftp \
--enable-exif \
--enable-sockets \
--enable-wddx \
--enable-sqlite-utf8 \
--enable-calendar \
--enable-mbstring \
--enable-mbregex \
--enable-bcmath \
--with-mysql=/usr \
--with-mysqli \
--without-pear \
--with-gettext \
--with-pdo-mysql \
--with-openssl=${INSTALLDIR} \
--with-imap=${INSTALLDIR} \
--with-xsl \
--with-ttf=/usr \
--with-xslt \
--with-xslt-sablot=/usr \
--with-dom-xslt=/usr \
--with-mcrypt=${INSTALLDIR} \
--with-imap-ssl=/usr"
# ---- end of user-editable bits. Hopefully! ----
# Push the install dir's bin directory into the path
export PATH=${INSTALLDIR}/bin:$PATH
# set up directories
mkdir -p ${SRCDIR}
mkdir -p ${INSTALLDIR}
if [ ! -f ${DISTDIR} ]
then
mkdir -p ${DISTDIR}
fi
cd ${DISTDIR}
# Get all the required packages
if [ ! -f ${DISTDIR}/${PHP5}.tar.gz ]
then
wget -c http://it.php.net/get/${PHP5}.tar.gz/from/ch.php.net/mirror
fi
if [ ! -f ${DISTDIR}/${CURL}.tar.gz ]
then
wget -c http://curl.haxx.se/download/${CURL}.tar.gz
fi
if [ ! -f ${DISTDIR}/${AUTOCONF}.tar.gz ]
then
wget -c http://ftp.gnu.org/gnu/autoconf/${AUTOCONF}.tar.gz
fi
if [ ! -f ${DISTDIR}/${XDEBUG}.tgz ]
then
wget -c http://xdebug.org/files/${XDEBUG}.tgz
fi
if [ ! -f ${DISTDIR}/${CCLIENT}.tar.Z ]
then
wget -c ftp://ftp.cac.washington.edu/imap/old/${CCLIENT}.tar.Z
fi
if [ ! -f ${DISTDIR}/${OPENSSL}.tar.gz ]
then
wget -c http://www.openssl.org/source/${OPENSSL}.tar.gz
fi
if [ ! -f ${DISTDIR}/${LIBMCRYPT}.tar.gz ]
then
wget -c http://easynews.dl.sourceforge.net/sourceforge/mcrypt/${LIBMCRYPT}.tar.gz
fi
if [ ! -f ${DISTDIR}/${APC}.tgz ]
then
wget -c http://pecl.php.net/get/${APC}.tgz
fi
echo ---------- Unpacking downloaded archives. This process may take several minutes! ----------
cd ${SRCDIR}
# Unpack them all
echo Extracting ${PHP5}...
tar xzf ${DISTDIR}/${PHP5}.tar.gz
echo Done.
echo Extracting ${CURL}...
tar xzf ${DISTDIR}/${CURL}.tar.gz
echo Done.
echo Extracting ${XDEBUG}...
tar xzf ${DISTDIR}/${XDEBUG}.tgz
echo Done.
echo Extracting ${AUTOCONF}...
tar xzf ${DISTDIR}/${AUTOCONF}.tar.gz
echo Done.
echo Extracting ${CCLIENT}...
uncompress -cd ${DISTDIR}/${CCLIENT}.tar.Z |tar x
echo Done.
echo Extracting ${OPENSSL}...
uncompress -cd ${DISTDIR}/${OPENSSL}.tar.gz |tar x
echo Done.
echo Extracting ${LIBMCRYPT}...
tar xzf ${DISTDIR}/${LIBMCRYPT}.tar.gz
echo Done.
echo Extracting ${APC}...
tar xzf ${DISTDIR}/${APC}.tgz
echo Done.
# Build them in the required order to satisfy dependencies
#cURL
echo ###################
echo Compile CURL
echo ###################
cd ${SRCDIR}/${CURL}
./configure --enable-ipv6 --enable-cookies \
--enable-crypto-auth --prefix=${INSTALLDIR}
# make clean
make
make install
#CCLIENT
echo ###################
echo Compile CCLIENT
echo ###################
cd ${SRCDIR}/${CCLIENT_DIR}
make ldb
# Install targets are for wusses!
cp c-client/c-client.a ${INSTALLDIR}/lib/libc-client.a
cp c-client/*.h ${INSTALLDIR}/include
#OPENSSL
echo ###################
echo Compile OPENSSL
echo ###################
# openssl
cd ${SRCDIR}/${OPENSSL_DIR}
./config --prefix=${INSTALLDIR}
make
make install
#MCRYPT
echo ###################
echo Compile MCRYPT
echo ###################
cd ${SRCDIR}/${LIBMCRYPT}
./configure --disable-posix-threads --prefix=${INSTALLDIR}
# make clean
make
make install
#PHP 5
echo ###################
echo Compile PHP
echo ###################
cd ${SRCDIR}/${PHP5}
./configure ${PHPFEATURES}
# make clean
make
make install
# Copy a basic configuration for PHP
mkdir -p ${INSTALLDIR}/etc/php5/${DOMAIN}
cp ${SRCDIR}/${PHP5}/php.ini-production ${INSTALLDIR}/etc/php5/${DOMAIN}/php.ini
#AUTOCONF
echo ###################
echo Compile AUTOCONF
echo ###################
cd ${SRCDIR}/${AUTOCONF}
./configure --prefix=${INSTALLDIR}
# make clean
make
make install
# XDEBUG
echo ###################
echo Compile XDEBUG
echo ###################
cd ${SRCDIR}/${XDEBUG}
export PHP_AUTOHEADER=${INSTALLDIR}/bin/autoheader
export PHP_AUTOCONF=${INSTALLDIR}/bin/autoconf
echo $PHP_AUTOHEADER
echo $PHP_AUTOCONF
${INSTALLDIR}/bin/phpize
./configure --enable-xdebug --with-php-config=${INSTALLDIR}/bin/php-config --prefix=${INSTALLDIR}
# make clean
make
mkdir -p ${INSTALLDIR}/extensions
cp modules/xdebug.so ${INSTALLDIR}/extensions
echo "zend_extension=${INSTALLDIR}/extensions/xdebug.so" >> ${INSTALLDIR}/etc/php5/${DOMAIN}/xdebug.ini
# APC
echo ###################
echo Compile APC
echo ###################
cd ${SRCDIR}/${APC}
${INSTALLDIR}/bin/phpize
./configure --enable-apc --enable-apc-mmap --with-php-config=${INSTALLDIR}/bin/php-config --prefix=${INSTALLDIR}
# make clean
make
cp modules/apc.so ${INSTALLDIR}/extensions
echo "extension=${INSTALLDIR}/extensions/apc.so" >> ${INSTALLDIR}/etc/php5/${DOMAIN}/apc.ini
# Copy PHP CGI
mkdir -p ${HOME}/${DOMAIN}/cgi-bin
chmod 0755 ${HOME}/${DOMAIN}/cgi-bin
cp ${INSTALLDIR}/bin/php-cgi ${HOME}/${DOMAIN}/cgi-bin/php.cgi
rm -rf $SRCDIR $DISTDIR
# Create .htaccess
if [ -f ${HOME}/${DOMAIN}/.htaccess ]
then
echo #
echo '#####################################################################'
echo ' Your domain already has a .htaccess, it is ranamed .htaccess_old '
echo ' --> PLEASE FIX THIS PROBLEM <-- '
echo '#####################################################################'
echo #
mv ${HOME}/${DOMAIN}/.htaccess ${HOME}/${DOMAIN}/.htaccess_old
fi
echo 'Options +ExecCGI' >> ${HOME}/${DOMAIN}/.htaccess
echo 'AddHandler php-cgi .php' >> ${HOME}/${DOMAIN}/.htaccess
echo 'Action php-cgi /cgi-bin/php.cgi' >> ${HOME}/${DOMAIN}/.htaccess
echo '' >> ${HOME}/${DOMAIN}/.htaccess
echo '<FilesMatch "^php5?\.(ini|cgi)$">' >> ${HOME}/${DOMAIN}/.htaccess
echo 'Order Deny,Allow' >> ${HOME}/${DOMAIN}/.htaccess
echo 'Deny from All' >> ${HOME}/${DOMAIN}/.htaccess
echo 'Allow from env=REDIRECT_STATUS' >> ${HOME}/${DOMAIN}/.htaccess
echo '</FilesMatch>' >> ${HOME}/${DOMAIN}/.htaccess
echo ---------- INSTALL COMPLETE! ----------
echo
echo 'Configuration files:'
echo "1) General PHP -> ${INSTALLDIR}/etc/php5/${DOMAIN}/php.ini"
echo "2) Xdebug conf -> ${INSTALLDIR}/etc/php5/${DOMAIN}/xdebug.ini"
echo "3) APC conf -> ${INSTALLDIR}/etc/php5/${DOMAIN}/apc.ini"
echo
echo 'You have to modify these files in order to enable Xdebug or APC features.'
exit 0
P.s. lo script è disponibile anche qui ed il risultato dello script è visibile qui (banale phpinfo()).
Saluti.
• 6 commenti • Inserisci un commento • Pubblicato il 24 luglio 2009 •
2.
bogomips_16443
- 28 agosto 2010 @ 5:18
Data originale: 27 luglio 2010 @ 5:39>> 21 07 2010
Se si puo' compilare PHP5, perche' non si dovrebbe poter utilizzare MongoDB?
Fu questa la domanda con la quale inizia il processo per intallare Mongo in Dreamhost in un account normale.
La documentezione ufficiale e' la seguente:
http://wiki.dreamhost.com/index.php/Installing_PHP5
ma e' parecchio noiosa, per cui la gente ha realizzato suoi propri scripts peer effettuare unn'installazione piu' rapida e facile:
http://www.ercoppa.org/blog-PHP-53--Xdebug--APC-install-script-per-Dreamhost.htm
Di conseguenza, basandomi su tale script e vedendo la documantazione di mongo, tento di installarlo con:
pecl install mongo
ma non era disponibile o non avevo i permessi.
- Installazione.
Quindi realizzo la seguente:
git clone git://github.com/mongodb/mongo-php-driver.git
git clone git://github.com/mongodb/mongo-php-driver.git
cd mongo-php-driver
./configure --with-php-config=/home/usuario/path/instalacion/bin/php-config
make
make install
dopo di che correggo un paio di collegamenti simbolici:
#EXTENSION_DIR = /home/usuario/path/instalacion/lib/php/extensions/no-debug-non-zts-20090626
ln -s /home/usuario/path/instalacion/lib/php/extensions/no-debug-non-zts-20090626 /home/usuario/path/instalacion/extensions
e configuro php.ini.
Per mettere in esecuzione il servizio: (e' possibile metterlo in un cron in modo simile)
cd /home/usuario/path/instalacion/mongostatic/mongodb-linux-x86_64-static-1.X.X
bin/mongod --dbpath data/db/
Per informazioni sul demone:
http://direccionweb.com:28017
Il resto e' solo esecuzione:
http://www.php.net/manual/en/mongo.tutorial.php
NOTA.
ATTENZIONE. Si deve vedere cosa accade con le condizioni di uso che dicono che non si possano mettere demoni in esecuzione: avviarlo su richiesta?
http://www.dreamhost.com/tos.html
"Any application that listens for inbound network connections (even if the application would otherwise be allowed) are not permitted"
Pubblicato da: jag2kn en
<<
http://jag2kn.blogspot.com/2010/07/mongodb-en-dreamhost-basic.html
--
Sembra che la gente non trovi poi cosi' schifoso il tuo blog (come invece dici sul post su TopHost). Forse l'unica cosa che non funziona sono i miei messaggi (anzi, quelli non c'entrano proprio niente).
--
In realta' io ero incappato in quest'altro posto:
http://www.blogger.com/profile/07039048324073382657
Personal informations:
Absurdamente sexy. ¿Right?.
Ma non mi pare rientri nei tuoi interessi.
--
Devo dire qualcosa a jag?
.
3.
autore_ercoppa
- 28 agosto 2010 @ 5:21
Data originale: 28 luglio 2010 @ 0:39> Sembra che la gente non trovi poi cosi' schifoso il tuo blog
Grazie :)
Il fatto è che non sono mai stato un grande *bloggista* ed inoltre, di questi tempi, ogni volta che apro queste pagine mi ricordo che accrocchio mastodontico lo manda avanti. E' da tempo che vorrei riscriverlo, ma tra il dire ed il fare c'è di mezzo il mare (mettici che vorrei sfruttare caratteristiche di PHP 5.3 e TopHost o analogo è lungi, forse giustamente, dal fornirlo). E' chiaro che avere un accrocchio meno schifoso non rende il mio sito più interessante, ma come ho sempre detto questo sito è letteralmente PERSONALE (fatto da me, per me e pochi altri). Forse mi sono fissato troppo su questo diamine di codice per il sito, forse dovrei fare come tanti altri ed usare qualche cosa già pronta (ma poi il divertimento dove sta?).
> Forse l'unica cosa che non funziona sono i miei messaggi (anzi, quelli non c'entrano proprio niente).
Tranquillo che funzionano, mi fa sempre piacere leggerli. Anzi ti chiedo scusa se non sono stato ultimamente molto partecipativo nel risponderti. Ho terminato gli esami della triennale e questi mesi li sto spendendo per la tesi (che non è una tesi ma solo un *progetto*). Quando sarà il momento (non prima di settembre penso) pubblicherò i risultati e magari potrai darmi un tuo parere (non ti fare aspettative, non è nulla di eccezionale) se ne avrai voglia/interesse.
> Ma non mi pare rientri nei tuoi interessi.
Troppo piccola per entrambi!!!
P.s. Domani parto per la Grecia, ci resterà per un paio di settimane, pertanto non potrò eventualemente replicarti prima di metà agosto. Se ne hai progettata qualcuna, ti auguro buona vacanza :D
Saluti.
Hola, soy Jorge (jag2kn) el autor del post de Mongo en Dreamhost (basic), voy a copiar el post en italiano a mi blog, espero que no le moleste, gracias
Ciao, sono Jorge (jag2kn), l'autore del post Mongo en DreamHost (basic), voglio copiare il post in italiano sul mio blog ,
Spero non ti dispiaccia
Grazie
pdta:
Ci dispiace per il mio italiano
Ciao, sono Jorge (jag2kn), l'autore del post Mongo en DreamHost (basic), voglio copiare il post in italiano sul mio blog ,
Spero non ti dispiaccia
Grazie
pdta:
Ci dispiace per il mio italiano
data originale: 31 luglio 2010 @ 3:37
link indossato, mi spiace
http://www.blogger.com/profile/11368095591967768869
link indossato, mi spiace
http://www.blogger.com/profile/11368095591967768869
6.
autore_ercoppa
- 28 agosto 2010 @ 5:28
Data originale: 12 agosto 2010 @ 13:45Jorge you're welcome, totally cool with what you do.
Greets, ercoppa.

[1] http://wiki.dreamhost.com/index.php/Installing_PHP5#PHP_5.3_.2B_Xdebug_.2B_APC_install_script