Mudanças entre as edições de "OpenPhoto"

De MochilaWiki
Ir para navegaçãoIr para pesquisar
 
Linha 36: Linha 36:
 
/etc/init.d/apache2 restart
 
/etc/init.d/apache2 restart
 
</source>
 
</source>
 +
 +
[[Categoria:Servidor]]

Edição atual tal como às 06h06min de 10 de novembro de 2012

Página do projeto

instalando no ubuntu

curl https://raw.github.com/openphoto/frontend/master/documentation/guides/InstallationUbuntuApache.sh | /bin/bash


instalando na mão

apt-get install --assume-yes --quiet apache2 php5 libapache2-mod-php5 php5-curl curl php5-gd \
php5-mcrypt php-apc php5-imagick exiftran mysql-server php5-mysql php-pear curl php5-dev \
libpcre3-dev 

pecl install oauth
echo extension=oauth.so >> /etc/php5/cgi/php.ini

wget https://github.com/openphoto/frontend/tarball/master -O openphoto.tar.gz
tar -zxvf openphoto.tar.gz > /dev/null 2>&1
mv openphoto-frontend-* /var/www/openphoto
rm openphoto.tar.gz
mkdir /var/www/openphoto/src/userdata
chown www-data:www-data /var/www/openphoto/

cp /var/www/openphoto/src/configs/openphoto-vhost.conf /etc/apache2/sites-available/openphoto
sed 's/\/path\/to\/openphoto\/html\/directory/\/var\/www\/openphoto\/src\/html/g' /var/www/openphoto/src/configs/openphoto-vhost.conf > /etc/apache2/sites-available/openphoto
sed -e 's/file_uploads.*/file_uploads = On/g' -e 's/upload_max_filesize.*/upload_max_filesize = 16M/g' -e 's/post_max_size.*/post_max_size = 16M/g' /etc/php5/apache2/php.ini > /etc/php5/apache2/php.ini.tmp
mv /etc/php5/apache2/php.ini.tmp /etc/php5/apache2/php.ini

a2enmod rewrite
a2enmod expires
a2enmod headers
a2dissite default
a2ensite openphoto
/etc/init.d/apache2 restart