Page 1 of 1

do get a Blank Page / Problem

Posted: Sun Jun 28, 2009 9:13 pm
by spychodelics
Hi there, im running Archlinux and build the last SVN Version.

http://aur.archlinux.org/packages.php?ID=24035

and the 1.24.1 from PKG

http://aur.archlinux.org/packages.php?ID=15847

Its all doing fine, compiling, installing, and so on,
but when i try to access the http://localhost/zm i do
only get a Blank Page.

Apache2 Errorlog says HTTP 1.1 500

adding /var/lib/zm/www to open_basedir didnt solved my
Blank Page problem.

Im a running a test wordpress blog, so im sure, that php and mysql
do work fine.

Database is created, and the zmuser with zmpass gets over phpmyadmin
all rights on the database.

I dont see what i missed, maybe a little dependecies.

Im happy for help and will give you every information u need, to help me.

Thanks and greetz

spY

Posted: Mon Jun 29, 2009 1:53 am
by kingofkya
check the zm logs some deps i don't remember which don't resolve they will show them selves there

Posted: Mon Jun 29, 2009 8:02 pm
by spychodelics
i dont get any important logs, tryed it now on 3 archlinux systems, cant solve the blank page problem, there must be a dependecy missing, but i dont which one.

Posted: Mon Jun 29, 2009 8:26 pm
by rdmelin
Check php.ini and make sure that all of these are set
extension=gd.so
extension=gettext.so
extension=mcrypt.so
extension=mysql.so
extension=mysqli.so
extension=session.so
extension=sockets.so

And welcome the the zoneminder forum :)

Posted: Mon Jun 29, 2009 9:30 pm
by spychodelics
thx for the welcome :D and your help

First of all clean Archlinux Install, clean httpd.conf and php.ini

ive done all of the suggested changes
cat <<EOF> To initialize the ZoneMinder database run (as root)
==> /usr/lib/zm/bin/zminit

cat <<EOF> Check /etc/php/php.ini and make sure these are uncommented
==> extension=gd.so
==> extension=gettext.so
==> extension=mcrypt.so
==> extension=mysql.so
==> extension=mysqli.so
==> extension=session.so
==> extension=sockets.so

cat /etc/php/php.ini |grep "^open_basedir.*/etc/" | \
grep "/var/lib/zm/www">/dev/null || cat <<EOF> You must edit /etc/php/php.ini and add to open_basedir "/etc/" and
==> "/var/lib/zm/" like so
==> open_basedir = /home/:/tmp/:/usr/share/pear/:/etc/:/var/lib/zm/
==> Otherwise ZoneMinder will be unable to read /etc/zm.conf
==> or display its own web directory

cat <<EOF> You must edit /etc/httpd/conf/httpd.conf and uncomment/add the line
==> LoadModule php5_module modules/libphp5.so
==> You must also add these lines:
==> Include conf/extra/php5_module.conf
==> Include /etc/httpd/conf/extra/httpd-zm.conf
EOF

EOF
cat /etc/php/php.ini |grep "^short_open_tag = On" >/dev/null || cat <<EOF> You must edit /etc/php/php.ini and set short_open_tag = On
==> or ZoneMinder will not work

Done that now on 3 arch systems, cant get zoneminder running on
every one of them.


apache errorlog

[Mon Jun 29 00:02:01 2009] [notice] Digest: generating secret for digest authentication ...
[Mon Jun 29 00:02:01 2009] [notice] Digest: done
[Mon Jun 29 00:02:02 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2 configured -- resuming normal operations


apache accesslog

127.0.0.1 - - [29/Jun/2009:23:25:37 +0200] "GET /zm/ HTTP/1.1" 500 -
127.0.0.1 - - [29/Jun/2009:23:25:37 +0200] "GET /favicon.ico HTTP/1.1" 404 1174
/etc/rc.d/zm restart
:: Stopping ZoneMinder [DONE]
:: Starting ZoneMinder [DONE]
So thats all i know, maybe i need to provide you with more information, but zm dont give me anything important.

And one more time, thanks

Posted: Mon Jun 29, 2009 11:32 pm
by rdmelin
The zm init script in /etc/rc.d didn't return a [FAIL] so it looks like the backend is working alright. The problem is in the web frontend. Try using http://localhost/zm/index.php and see what the gives you.

Posted: Mon Jun 29, 2009 11:37 pm
by rdmelin
Also be sure to restart apache so it rereads the configs, and reload [F5] in your browser to be sure it's not loading an old page from cache.

Posted: Tue Jun 30, 2009 1:38 pm
by spychodelics
Thx for the help ive solved my Blank Page Problem, seemed to be a problem within my php.ini file.

But i dont know why the problem exist on all 3 Arch systems.

Had to copy & paste into a new file, and setting the short_open_tag =On @ EOF

Posted: Tue Jun 30, 2009 3:00 pm
by rdmelin
short_open_tag = Off is set on line 131 of the default arch php.ini.
So if you set it on earlier is is set off again when the file is parsed.

Posted: Tue Jun 30, 2009 5:46 pm
by spychodelics
Hi there,

i have changed that value on line 131, but nothing happend before.

as i said i dont know why, had to copy & paste, and move it to the end
of the php.ini.

Its running now, thanks anyway for your help.

Im not so much of an php programmer, but would it be nice
to get a "Checklist" for the first time running zoneminder.
Which check the system and could be displayed instead of the usually index.php informing the user whats missing?

Greatz

Posted: Wed Jul 01, 2009 12:06 am
by kingofkya
on offence but thats kinda not how the arch devs are that would add bloat and go agenst K.I.S.S However you can add a note about it to the ZM wiki

Posted: Wed Jul 01, 2009 5:09 pm
by spychodelics
Im sorry but i didnt understand quiet a word.

I interpreted it, like a miss understanding, i meant, it would
be nice for ZM himself to have a Installpage like for a simple
CMS for example, you dont need to use the terminal for
running zminit, its web based. Installing the Mysql Database etc.

So i thougt it would be possible to check the system for the "needed" php and apache2 settings.

Posted: Thu Jul 02, 2009 12:45 am
by kingofkya
Yeah that was kinda of a dumb responsive on my part.

What I meant was arch linux is designed to be simple in the sense that there is little gui and you configure everything yourself. It for more for advanced user that knowes that kinda stuff already.

Thats why it runs fast on old and new stuff it dosent waste cpu cycle with extra User Friendly interfaces.

Saying that I used as a beginer and it taught me lots of stuff as did gentoo.

Posted: Tue Jul 07, 2009 1:13 am
by cordel
spychodelics wrote:Im sorry but i didnt understand quiet a word.

I interpreted it, like a miss understanding, i meant, it would
be nice for ZM himself to have a Installpage like for a simple
CMS for example, you dont need to use the terminal for
running zminit, its web based. Installing the Mysql Database etc.

So i thougt it would be possible to check the system for the "needed" php and apache2 settings.
That a nice idea but would still be full of issues as ZoneMinder is more than just a web page so you would have to then match all the settings from the binaries and scripts to the setup of the web pages. Farther this still wold have not solved your issue with a incorrect setting in php.
Setting up your own Distro, it is expected that you properly configure all the services correctly as the defaults are usually not ideal.
Ross puts out a great LiveCD for ZM based on arch with everything optomized that you might want to look at next time.