Hi I have Problem with midgard-apache2.so during starting apache Starting httpd: Syntax error on line 1 of /usr/local/etc/midgard/apache/httpd.conf: Cannot load /usr/lib/httpd/modules/midgard-apache2.so into server: libmidgard.so.7: failed to map segment from shared object: Permission denied
I found the similar problem: mail form Patrick.LOGE@, 16.11.04 (I attached it below). Maybe anyone solve it? Fedora 3 x86_64, I build mgd 1.6.1 from sources, no others errors. Thanks for any suggestion. Wojtek --- In [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: > I restart the installation from scartch > I used a Fedora Core 3 installed as a Server on VMWare. > > Here is the procedure I followed to install Midgard. > You will notice some small errors on config.log of "php4" and "core". > > I don't know what I did wrong. I you have any suggestion... > > > > # -------------------------------------------------------------- > mkdir /downloads ; cd /downloads > wget > http://www.midgard-project.org/midcom-serveattachmentguid-668146bfa6f1244c66 > 8c13c71be1b10f/Midgard_AllinOne.tar.bz2 > bzip2 -d Midgard_AllinOne.tar.bz2 > tar -xvf Midgard_AllinOne.tar > > # --------------------------------- > # I still needed some dev libraries > # --------------------------------- > mkdir /downloads/http ; cd /downloads/http > wget > http://ftp.belnet.be/linux/fedora/linux/core/3/i386/os/Fedora/RPMS/httpd-dev > el-2.0.52-3.i386.rpm > wget > http://ftp.belnet.be/linux/fedora/linux/core/3/i386/os/Fedora/RPMS/apr-devel > -0.9.4-23.i386.rpm > wget > http://ftp.belnet.be/linux/fedora/linux/core/3/i386/os/Fedora/RPMS/apr-util- > devel-0.9.4-17.i386.rpm > wget > http://ftp.belnet.be/linux/fedora/linux/core/3/i386/os/Fedora/RPMS/pcre-deve > l-4.5-3.i386.rpm > rpm -Uvh * > > # also Glib > # --------- > mkdir /downloads/glib ; cd /downloads/glib > wget > http://ftp.belnet.be/linux/fedora/linux/core/3/i386/os/Fedora/RPMS/glib-deve > l-1.2.10-15.i386.rpm > rpm -Uvh * > > # PHP-devel > # --------- > mkdir php ; cd php > wget > http://ftp.belnet.be/linux/fedora/linux/core/3/i386/os/Fedora/RPMS/php-devel > -4.3.9-3.i386.rpm > rpm -Uvh * > > Finally, here's my rpm's list http://www.plog.org/rpmslist.txt > > # --------------------------------- > # Compilation > # --------------------------------- > > # >>> CORE <<< (http://www.plog.org/core.config.log.html : contains errors) > cd /downloads/Midgard_AllinOne/midgard-core-1.6.1 > ./configure > make > make install > > # >>> APACHE2 <<< (http://www.plog.org/apache2.config.log.html) > cd /downloads/Midgard_AllinOne/midgard-apache2-1.6.1 > #./configure doesn't find all the apr headers located in > "/usr/include/apr-0", > #I copied all of them in /usr/include/httpd... Hmmm > ./configure > make > make install > > # >>> PHP4 <<< (http://www.plog.org/php4.config.log.html : contains errors) > cd /downloads/Midgard_AllinOne/midgard-php4-1.6.1 > ./mkall --with-apxs=/usr/sbin/apxs --with-apr-config=/usr/bin/apr-config > > # >>> DATA <<< (http://www.plog.org/data.config.log.html) > cd /downloads/Midgard_AllinOne/midgard-data-1.6.1 > ./configure --with-midgard-config=/usr/local/bin/midgard-config > --with-apache-user=apache > make install > > # ------------------------------------------ > # First test > # ------------------------------------------ > [EMAIL PROTECTED] php > PHP Warning: Unknown(): Unable to load dynamic library > '/usr/lib/php4/midgard.so' - /usr/lib/php4/midgard.so: > undefined symbol: ap_log_rerror in Unknown on line 0 > > /etc/init.d/mysqld start (autostart later :) > > > # --------- > # DATAGARD > # --------- > datagard > - database: "midgard" > - user : "root" > - pwd : [none] > (I left the default Mysql root, it's just for testing) > > datagard outputs > Trying to create mysql database and blobs dir. > wait.... > > Updating database: fixing cache > Updating database: version control > Updating database: quota support > > Trying to create mysql database and blobs dir. > wait.... > > Trying to make xml update.... > [Etc....] no errors > > Create a virtual host midgard.sanco.cec.eu.int:8001 using "midgard" DB > > > # ----------------------------- > # ... midgard/apache/httpd.conf > # ----------------------------- > My httpd.conf contains now "Include > /usr/local/etc/midgard/apache/httpd.conf" : > > LoadModule midgard_module /usr/lib/httpd/modules/midgard-apache2.so > Listen 8001 > Include /usr/local/etc/midgard/apache/vhosts/* > > And "/usr/local/etc/midgard/apache/vhosts/midgard.sanco.cec.eu.int_8001" > contains > > <VirtualHost midgard.sanco.cec.eu.int:8001> > ServerName midgard.sanco.cec.eu.int > DocumentRoot /var/local/lib/midgard/vhosts/midgard.sanco.cec.eu.int/8001 > MidgardBlobDir /var/local/lib/midgard/blobs/midgard > MidgardEngine on > #MidgardRootfile /usr/lib/httpd/modules/midgard-root-nommp.php > MidgardPageCacheDir /var/local/cache/midgard > MidgardRootFile /usr/lib/httpd/modules/midgard-root.php > MidgardParser UTF-8 > MidgardDefaultRealm "Midgard" > MidgardDatabase midgard root > RLimitCPU 20 60 > RLimitMem 67108864 134217728 > </VirtualHost> > > # -------------- > # Restart apache > # -------------- > I restarted apache with "/etc/init.d/httpd stop" then "/etc/init.d/httpd > start" > I get : > Starting httpd: Syntax error on line 1 of > /usr/local/etc/midgard/apache/httpd.conf: > Cannot load /usr/lib/httpd/modules/midgard-apache2.so into server: > libmidgard.so.7: > failed to map segment from shared object: Permission denied > > [EMAIL PROTECTED] modules]# ldd midgard-apache2.so > libmysqlclient.so.10 => /usr/lib/mysql/libmysqlclient.so.10 > (0xf6fb5000) > libexpat.so.0 => /usr/lib/libexpat.so.0 (0xf6f95000) > libpam.so.0 => /lib/libpam.so.0 (0xf6f8d000) > libm.so.6 => /lib/tls/libm.so.6 (0xf6f6a000) > libz.so.1 => /usr/lib/libz.so.1 (0xf6f5a000) > libcrypt.so.1 => /lib/libcrypt.so.1 (0xf6f2c000) > libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0xf6f08000) > libmidgard.so.7 => /usr/local/lib/libmidgard.so.7 (0xf6eec000) > libc.so.6 => /lib/tls/libc.so.6 (0xf6dc5000) > libnsl.so.1 => /lib/libnsl.so.1 (0xf6daf000) > libdl.so.2 => /lib/libdl.so.2 (0xf6dab000) > /lib/ld-linux.so.2 (0x00243000) > > If I browse http://midgard.sanco.cec.eu.int:8001/midgard I of course get a > "connection refused" > > > Thanks again > > __________________ > > Patrick LOGÄï > DG Health and Consumer Protection > [EMAIL PROTECTED] > __________________ > > -----Original Message----- > From: Daniel S. Reichenbach [mailto:[EMAIL PROTECTED] > Sent: Friday, November 12, 2004 12:46 PM > To: [EMAIL PROTECTED] > Subject: Re: [midgard-user] What's the ideal platform for Midgard ? > > > Hi Patrick, > > > Before bothering you with the problems I encounter, I would > > first like to ask wich is the "ideal platform". > in common you can count any distribution that offers support for > glib >= 1.2.x, Apache >= 2.0.x, PHP >= 4.3.x and MySQL >=3.23.58 > or MySQL >= 4. Additionally you will need expat >=1.95.5. > > Speaking in terms of Red Hat based distributions, you will need the > packages glib-devel, expat-devel, mysql-devel, httpd-devel and > php-devel. > > > > http://www.midgard-project.org/documentation/installation/dependencies.html > > But could it be possible to have the version of each ?? > These are out-dated. They seem to be for Red Hat prior to Red Hat 8. > > > Could someone publish a "rpm -qa" output or so, for a succesful RPM > install > See above, the list should be complete. Add gcc, autoconf, automake, > and libtool. That should do the trick. > > > Wich distro the developpment team use ? > Red Hat, Mandrake, Debian, MacOSX, etc. > > > Meanwhile, I give Midgard another tryÃïÅ on Core 3 > If you need help, feel free to ask. > > Daniel > -- > blog - http://people.best-off.org/~dsr/ > gpg - http://people.best-off.org/~dsr/gpg.asc > work - http://www.best-off.org/ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
