RedHat下安装Lifebox照片视频管理系统(2)

======ERROR=======================================================

如果出现下面这个错误信息,就到系统安装盘里找lcms的rpm包给装上就行了!或者到官网下载个装上也行!我是用的盘里面的rpm包,下载的tar包,安装完成后,还得设置PATH,比较麻烦。

checking for LCMS... configure: error: Package requirements (lcms) were not met:

# rpm -ivh lcms-1.15-1.2.2.i386.rpm

# rpm -ivh lcms-devel-1.15-1.2.2.i386.rpm

===================================================================

Enable video support

# wget ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20080907-2245.tar.bz2

# tar xvf x264-snapshot-20080907-2245.tar.bz2

# cd x264-snapshot-20080907-2245

# ./configure --disable-asm

# make

# make install

# wget

# tar zxvf faad2-2.7.tar.gz

# cd faad2-2.7

# ./configure

# make

# make check

# make install

# wget

# ./configure

# make

# make check

# make install

# wget

# tar zxvf xvidcore-1.2.2.tar.gz

# cd xvidcore/build/generic/

# ./configure

# make

# make install

Install lame-libs

# wget

# cd lame-398-2

# ./configure

# make

# make install

Install ffmpeg with h264 support

# wget

# tar xvf ffmpeg-checkout-snapshot.tar.bz2

# cd ffmpeg-checkout-2009-08-10/

# ./configure

# make

# make install

# make tools/qt-faststart                //Install qt-faststart

# cp tools/qt-faststart /usr/local/bin/qt-faststart

Configure the database创建数据库

# /usr/local/mysql/bin/mysql -u root –p

mysql> create database lifebox;

grant all on lifebox.* to root;

grant all on lifebox.* to root@localhost;

grant all on lifebox.* to lifeboxuser;

grant all on lifebox.* to lifeboxuser@localhost;

set password for lifeboxuser@localhost=password('lifeboxpw');

Install lifebox安装Lifebox

# wget

# tar zxvf lifebox-1.0.5.tar.gz

# mv lifebox-1.0.5 lifebox

# chmod -R 755 lifebox

# chown -R root:root lifebox

# mv lifebox /var/www/

# chmod -R 777 /var/www/lifebox/dump/*

# chmod -R 777 /var/www/lifebox/html/*

这里修改dump和html这两个目录的权限是因为一会setup安装配置的时候,需要往这几个目录创建配置文件和cache文件。Setup配置过程中,如果权限不够,页面会有提示,并给出需要修改的目录及命令!还满贴心的~~~哈哈~~~

Apache配置在httpd.conf中添加虚拟主机:

NameVirtualHost *:80

<VirtualHost *:80>

DocumentRoot /var/www/lifebox/html

ServerName hostname                                 //添写主机名或者域名

<Directory /var/www/lifebox/html>

Options FollowSymLinks

AllowOverride All

Allow from all                    //注意这句,官方网站的UbuntuFedora安装方法里并没加这句,我开始也没加,但访问时apache提示目录没有权限~~~~所以我给加上了~~

</Directory>

</VirtualHost>

使用域名访问的话,要在C:\WINDOWS\system32\drivers\etc\hosts中添加一行:

例: 10.10.10.10                test.lifebox.com              test

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/28177.html