2013-11-03 01:31:14 |
sagitt |
description |
I upgraded (fresh installation) my ubuntu server from 13.04 to 13.10.
I don't know why zoneminder was not updated to 1.26 in the ubuntu sources, but i think it will have the same problem.
The main web page of zoneminder won't work. there are some problems with the new packages provieded in ubuntu 13.10.
I think Apache and PHP
The easy way to see it is:
1. sudo apt-get install zoneminder
2. sudo ln -s /etc/zm/apache.conf /etc/apache2/conf-available/zoneminder.conf
3. sudo ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf
4. edit /etc/apache2/apache2.conf:
# Include all the user configurations:
Include /etc/apache2/httpd.conf
5. edit\make /etc/apache2/httpd.conf:
ServerName localhost
is possible add "ServerName localhost" directly in apache2.conf.
______ SOURCE: ZoneMinder Forum ______
For fix the main page i found this:
The issue is in the php.ini file and is a value called
short_open_tag = Off
This value needs to be set to On
sudo nano /etc/php5/php.ini
find the short_open_tag = Off and change it to On
Ctrl +o to save the file
Ctrl +x to exit
/etc/init.d/apache2 force-reload
The error log indicates a php error the function mysql_pconnect was depriciated in php 5.x.x and my Ubuntu installed php 5.5.3
changing the short_open_tag does present the zm page but I still get the mysql_pconnect message in the error log. I traced the mysql_pconnect line to /usr/shared/zoneminder/includes/database.php where it is the statement that makes a persistent connection to the database. If the command mysql_pconnect was depriciated in PHP 5.5 then I assume we are not getting a connection to the database. I also changed the mysql_pconnect command with the new mysqli_connect in 13.10 and the recieved a database select error on the page. I am sure it taks more than just replacing the command in database.php but that is beyond my skill set right now. |
I done a fresh installation of ubuntu server 13.10.
I don't know why zoneminder was not updated, in the ubuntu sources, to newer version 1.26, but i think it will have the same problems.
The main web page of zoneminder won't work. there are some problems with the new packages provided in ubuntu 13.10. I think Apache and PHP
The easy way to see it is:
1. sudo apt-get install zoneminder
2. sudo ln -s /etc/zm/apache.conf /etc/apache2/conf-available/zoneminder.conf
3. sudo ln -s /etc/zm/apache.conf /etc/apache2/conf-enabled/zoneminder.conf
4. edit /etc/apache2/apache2.conf:
# Include all the user configurations:
Include /etc/apache2/httpd.conf
5. edit\make /etc/apache2/httpd.conf:
ServerName localhost
Is also possible add "ServerName localhost" directly in apache2.conf.
_________________________________________
For fix the main page i found this:
(but there are other things that won't work)
_______ SOURCE: ZoneMinder Forum _______
The issue is in the php.ini file and is a value called
short_open_tag = Off
This value needs to be set to On
sudo nano /etc/php5/php.ini
find the short_open_tag = Off and change it to On
Ctrl +o to save the file
Ctrl +x to exit
/etc/init.d/apache2 force-reload
The error log indicates a php error the function mysql_pconnect was depriciated in php 5.x.x and my Ubuntu installed php 5.5.3
changing the short_open_tag does present the zm page but I still get the mysql_pconnect message in the error log. I traced the mysql_pconnect line to /usr/shared/zoneminder/includes/database.php where it is the statement that makes a persistent connection to the database. If the command mysql_pconnect was depriciated in PHP 5.5 then I assume we are not getting a connection to the database. I also changed the mysql_pconnect command with the new mysqli_connect in 13.10 and the recieved a database select error on the page. I am sure it taks more than just replacing the command in database.php but that is beyond my skill set right now. |
|