Installation Error
-
Samar Elatta
Installation Error
Tue July 15 2008 14:48:22 UTCon the source install of 1.8.8 on RHEL 4, the compile and install seams to work, but pear install fails and I get a 404 on the /midgard et. al pages.
Below is detailed EVERY step I took to get this installed to where it is, and some of the error details at the end.
I also have a zip file that contains full logs of all build and installation steps. If anyone would be interested in taking a look at that.
Any assistance would be much appreciated.
uname -a
Linux rhel4-server 2.6.9-67.0.7.EL #1 Wed Feb 27 04:37:11 EST 2008 i686 athlon i386 GNU/Linux
cat /etc/hosts
127.0.0.1 rhel4-server localhost.localdomain localhost 192.168.154.10 cms.dev.saionline.com cms.saionline.com cms
Prep the system -------------------------------------------
chkconfig mysqld on service mysqld start
chkconfig httpd on service httpd start
Prep the source -------------------------------------------
mkdir -p ~/midgard cd ~/midgard wget http://rhnoma01prd.sai.saionline.com/pub/midgard_allinone-1.8.8.tar.bz2 tar -xvjpf midgard_allinone-1.8.8.tar.bz2
Midgard core ----------------------------------------------
cd ~/midgard/Midgard_AllinOne-1.8.8/midgard-core-1.8.8/
rm -f build.log
cmd="./configure" printf '%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="make" printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="make install" printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="cp -av /usr/local/lib/libmidgard.* /usr/lib/" printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="cd /usr/lib ; ln -svf ../local/lib/libmidgard.* ." printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
less build.log
Midgard apache --------------------------------------------
cd ~/midgard/Midgard_AllinOne-1.8.8/midgard-apache2-1.8.8/
rm -f build.log
cmd="./configure --with-apxs=/usr/sbin/apxs" printf '%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="make" printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="make install" printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
less build.log
Midgard php -----------------------------------------------
cd ~/midgard/Midgard_AllinOne-1.8.8/midgard-php4-1.8.8/
rm -f build.log
cmd="phpize" printf '%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="./configure" printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="make" printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="make install" printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
less build.log
vim /etc/php.ini [PHP] + extension=midgard.so = file_uploads = On = magic_quotes_gpc = Off = short_open_tag = On = memory_limit = 8M = post_max_size = 8M = upload_max_filesize = 2M % register_globals = On
Midgard data ----------------------------------------------
cd ~/midgard/Midgard_AllinOne-1.8.8/midgard-data-1.8.8/
rm -f build.log
cmd="./configure" printf '%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="make" printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
cmd="make install" printf '\n%s\n\n' "--- $cmd" >> build.log ${cmd} 2>&1 | tee -a build.log
less build.log
Datagard --------------------------------------------------
cd ~/midgard/Midgard_AllinOne-1.8.8
datagard 2>&1 | tee datagard-data.log
Install Database Midgard Database Host = MySQL admin name = root MySQL admin password = Database name = midgard Username for Midgard database = midgard Password for Midgard database = midgarddatagard 2>&1 | tee datagard-vhost.log
Virtual Host name = cms.dev.saionline.com:80cd /etc/httpd/conf.d ln -vsf /usr/local/etc/midgard/apache/httpd.conf midgard.conf vim ../conf/httpd.conf - Include /usr/local/etc/midgard/apache/httpd.conf service httpd restart
datagard 2>&1 | tee datagard-pear.log
Sitegroup admin username = midgard-----------------------------------------------------------
chmod -Rc 771 /var/local/cache/midgard/ mode of
/var/local/cache/midgard/' changed to 0771 (rwxrwx--x) mode of/var/local/cache/midgard/midgard' changed to 0771 (rwxrwx--x)chown -Rc apache:apache /var/local/cache/midgard/ < none >
-----------------------------------------------------------
http://cms.dev.saionline.com/midgard
tail -F /var/log/messages /var/log/httpd/access_log /var/log/httpd/error_log
==> /var/log/httpd/access_log <== 192.168.154.1 - - [14/Jul/2008:11:11:42 -0500] "GET /midgard HTTP/1.1" 404 293 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0" 192.168.154.1 - - [14/Jul/2008:11:11:42 -0500] "GET /favicon.ico HTTP/1.1" 404 297 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0"
==> /var/log/httpd/error_log <== [Mon Jul 14 11:11:42 2008] [error] [client 192.168.154.1] File does not exist: /var/local/lib/midgard/vhosts/cms.dev.saionline.com/80/midgard [Mon Jul 14 11:11:42 2008] [error] [client 192.168.154.1] File does not exist: /var/local/lib/midgard/vhosts/cms.dev.saionline.com/80/favicon.ico
==> /var/log/httpd/access_log <== 192.168.154.1 - - [14/Jul/2008:11:11:44 -0500] "GET /favicon.ico HTTP/1.1" 404 297 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0"
==> /var/log/httpd/error_log <== [Mon Jul 14 11:11:44 2008] [error] [client 192.168.154.1] File does not exist: /var/local/lib/midgard/vhosts/cms.dev.saionline.com/80/favicon.ico
ls -l /var/local/lib/midgard/vhosts/cms.dev.saionline.com/80/
total 0 lrwxrwxrwx 1 root root 8 Jul 11 15:13 midcom-static -> web_dir=
find / -name '='
/root/midgard/Midgard_AllinOne-1.8.8/php_dir=
-
Re: Installation Error
Fri July 18 2008 14:29:05 UTCHi!
Looks like MidCOM pear packages are not installed. You mentioned that pear install fails. Details?
Piotras
