zoneminder apache\php problems in 13.10

Bug #1247506 reported by sagitt
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
zoneminder (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

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.

sagitt (sagitt)
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1247506/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
sagitt (sagitt)
affects: ubuntu → zoneminder (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zoneminder (Ubuntu):
status: New → Confirmed
Revision history for this message
Kevin Dalley (nereocystis) wrote :

I agree. short_open_tag needs to be changed:

 short_open_tag = On

Revision history for this message
sagitt (sagitt) wrote :

changing "short_open_tag = On" fix the problem?

Revision history for this message
Kevin Dalley (nereocystis) wrote :

This change fixed the last part of my zoneminder problem. It nkevin@ling:/etc/apache2$ pwd
/etc/apache2
kevin@ling:/etc/apache2$ ls -l */zoneminder.conf
lrwxrwxrwx 1 root root 20 Dec 14 01:16 conf-available/zoneminder.conf -> ../../zm/apache.conf
lrwxrwxrwx 1 root root 20 Dec 14 00:43 conf.d/zoneminder.conf -> ../../zm/apache.conf
lrwxrwxrwx 1 root root 33 Dec 14 01:16 conf-enabled/zoneminder.conf -> ../conf-available/zoneminder.conf
ow seems to work. I haven't completely configured it yet, but that is my problem.

The other part my zoneminder problem is adding a couple more symbolic links.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.