Hi there,
I'm setting up ZM with RedHat Advanced Server 2.1, so I'll use this thread to document it, so that anyone else may benefit from it.
Right now I've installed ZM successfully, but I got some trouble which I'll describe at the end.
1. Installed necessary packages apache, mysql, php, mod_php.
2. Intalled latest Webmin package.
3. Through Webmin's Perl utility I installed the necessary modules to run zmconfig.pl (DBI and DBD::mysql)
4. Created /var/www/html/zm and /var/log/zm directories and modified permissions to 754
5. Unpacked latest zm beta
6. Ran "./configure --with-mysql=/usr --with-cgidir=/var/www/cgi-bin --with-webdir=/var/www/html/zm
7. Ran "perl zmconfig.pl"and answered all questions.
9. Followed README instructions to create db, db schema, users and privileges and reloaded the database.
10. Ran "perl zmconfig.pl -noi" succesfully.
11. Ran "make" and then "make install".
12. restarted the httpd service.
The server uses an old version of php, I think it is 4.0.6, so I had to comment out the "import_request_variables( "GPC" );" line and turn on global variables, as per Phillip suggestion somewhere else on the forums. aside from that I did not have to do any tricks to get it working.
Now, I've accesed the login page succesfully (I chose to enable user authentication). I tried logging in as admin/admin, but it brings me back to the login page. The only workaround that actually worked was to disable user logins. On PHP and in the client browser cookies are enabled, and it sets the cookie successfully, as per Mozilla's cookie manager. Tried it with IE 5.5, 6.0, Opera, Mozilla 1.4 and Mozilla 1.5.
Also, cambozola downloads, but does not seem to find the charlimouse class... I'll make sure I'm using the right version of cambozola and get back on this.
Aside from that everything works great... except for the known bugs/issues.
Regards,
Jose Rodriguez
ZM and RedHat AS 2.1
- tech_fixer
- Posts: 132
- Joined: Tue Jul 29, 2003 3:07 pm
Re: ZM and RedHat AS 2.1
Phillip,
Any insight on why I'm being redirected back to the login page?
Also, the problem with cambozola was a coonflict with the proxy server. Aside from that, all runs fine.
Regards,
Jose
Any insight on why I'm being redirected back to the login page?
Also, the problem with cambozola was a coonflict with the proxy server. Aside from that, all runs fine.
Regards,
Jose
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: ZM and RedHat AS 2.1
Hi Jose,
I've not had a chance (or the money) to try out the AS distribution. The only things I can think of that might prevent logging in are possibly issues with cookies or perhaps having register globals turned off in php.ini?
Have you try putting a phpinfo( INFO_VARIABLES ) in zm_html_view_login.php to see what is passed?
Phil,
I've not had a chance (or the money) to try out the AS distribution. The only things I can think of that might prevent logging in are possibly issues with cookies or perhaps having register globals turned off in php.ini?
Have you try putting a phpinfo( INFO_VARIABLES ) in zm_html_view_login.php to see what is passed?
Phil,
- tech_fixer
- Posts: 132
- Joined: Tue Jul 29, 2003 3:07 pm
Re: ZM and RedHat AS 2.1
Phil,
As per php.ini:
"register_globals = on"
The phpinfo output is more interesting:
HTTP_COOKIE_VARS["ZMSESSID"] = e1f5edaaa95053cbf36c763d03d1a565
HTTP_COOKIE_VARS["bandwidth"] = high
Among other unrtelated variables.
Now, doing phpinfo in zm_html_view_postlogin.php
HTTP_POST_VARS["action"] = login
HTTP_POST_VARS["view"] = postlogin
HTTP_POST_VARS["username"] = admin
HTTP_POST_VARS["password"] = admin
HTTP_COOKIE_VARS["bandwith"] = high
HTTP_COOKIE_VARS["ZMSESSID"] = e1f5edaaa95053cbf36c763d03d1a565
HTTP_SERVER_VARS["CONTENT_TYPE"] = application/x-www-form-urlencoded
My software packages versions are:
php-4.0.6-16
apache-1.3.23-10
mysql-3.23.41-1
Still, no login.
About RH AS 2.1, its pretty much a souped up version RH 7.2. Even the kernel is old, version 2.4.9. I guess the went the tried-and-true way.
Regards,
Jose Rodriguez
As per php.ini:
"register_globals = on"
The phpinfo output is more interesting:
HTTP_COOKIE_VARS["ZMSESSID"] = e1f5edaaa95053cbf36c763d03d1a565
HTTP_COOKIE_VARS["bandwidth"] = high
Among other unrtelated variables.
Now, doing phpinfo in zm_html_view_postlogin.php
HTTP_POST_VARS["action"] = login
HTTP_POST_VARS["view"] = postlogin
HTTP_POST_VARS["username"] = admin
HTTP_POST_VARS["password"] = admin
HTTP_COOKIE_VARS["bandwith"] = high
HTTP_COOKIE_VARS["ZMSESSID"] = e1f5edaaa95053cbf36c763d03d1a565
HTTP_SERVER_VARS["CONTENT_TYPE"] = application/x-www-form-urlencoded
My software packages versions are:
php-4.0.6-16
apache-1.3.23-10
mysql-3.23.41-1
Still, no login.
About RH AS 2.1, its pretty much a souped up version RH 7.2. Even the kernel is old, version 2.4.9. I guess the went the tried-and-true way.
Regards,
Jose Rodriguez
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: ZM and RedHat AS 2.1
Hi Jose,
Did you try using phpinfo to see what is being passed?
Phil,
Did you try using phpinfo to see what is being passed?
Phil,