LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-20-2010, 09:46 PM   #1
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Rep: Reputation: Disabled
Post Apache problems... Pages don't load


Hi! I have apache running on my server, and also Zoneminder, a surveillance system running on the same machine. Both services runs without glitches, and I think apache's config as well as ZM's config are fine. The problem, is first of all, I am not sure I understand how apache (not to mention the whole thing zoneminder, apache, web browser...) works...

Pretty hard to manage when you dont know what you are doing. Also, when I try the supposed to work zoneminder webpage in my web browser, I get nothing (a blank page), or sometimes a "Not found" error message. The latest seems to be from apache because it is the same font as the "It works!" message when I try http://localhost:80

The only bit of information I have so far is in the apache error log (/var/log/httpd/error_log) and it says:

Code:
[Sun Mar 21 00:35:14 2010] [error] [client 192.168.0.100] script '/srv/httpd/htdocs/zm.php' not found or unable to stat
[Sun Mar 21 00:46:04 2010] [error] [client 127.0.0.1] File does not exist: /srv/httpd/htdocs/zm
It seems that the "zm.php" is missing.... That would be why Apache cant find the page?
 
Old 03-20-2010, 10:01 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
What does your website configuration look like? Do you have the PHP stuff installed and enabled for apache? Just checking a couple of obvious things to cover bases.

Regards,

Alunduil
 
Old 03-21-2010, 10:26 AM   #3
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
alunduil thanks for your reply!

Well being an idiot in this field, I didn't know what to do so here's the content of my /etc/httpd/mod_php.conf

Code:
#
# mod_php - PHP Hypertext Preprocessor module
#

# Load the PHP module:
LoadModule php5_module lib/httpd/modules/libphp5.so

# Tell Apache to feed all *.php files through PHP.  If you'd like to
# parse PHP embedded in files with different extensions, comment out
# this line and see the example below.
AddType application/x-httpd-php .php

# Tell Apache to feed all *.php, *.html, and *.htm files through
# the PHP module.  Add or subtract extensions here as desired.  Please
# note that running pages through PHP for no reason can be both slow
# and insecure, so be sure to know what you're doing.  It's a convenient
# shortcut, but probably isn't suitible for high-traffic sites if you
# write any of your pages in straight HTML.
#AddType application/x-httpd-php .php .html .htm

# This will display PHP files in colored syntax form.  Use with caution.
#AddType application/x-httpd-php-source .phps
I also have a php.ini file in the same folder, but the forum wont let me post the content of the file (too long).

Please specify any options you would like to see.

Thanks to all!!
 
Old 03-21-2010, 12:21 PM   #4
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Everything looks fine for loading php. Can you find out what your docroot is in your apache configuration?

Regards,

Alunduil
 
Old 03-21-2010, 01:24 PM   #5
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
From /etc/httpd.httpd.conf

DocumentRoot "/srv/httpd/htdocs"

Hope this helps!

Thanks!
 
Old 03-21-2010, 01:54 PM   #6
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
And where did you install your application?

Regards,

Alunduil
 
Old 03-21-2010, 02:34 PM   #7
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
alunduil,

well not being confidant enough to customize the apps, I followed the setup instructions from the appz websites... for example Zoneminder was compiled from sources with the commands:

Code:
./configure --with-webdir=/var/www/htdocs --with-cgidir=/srv/httpd/cgi-bin --prefix=/usr --sysconfdir=/etc > configured_this 2>&1
Now I recognize that the argument I entered for the webdir was "/var/www/htdocs" but "/var/www/htdocs" is a link to the DocumentRoot variable "/srv/httpd/htdocs"... At least I think because I created a test text file in "/var/www/htdocs" and saw the file in "/srv/www/htdocs"

strange thing is that in "/var/www/htdocs" I cant see any zoneminder related files ( I am thinking here about my first post in this thread when the apache error log was complaining about missing files => script '/srv/httpd/htdocs/zm.php' not found or unable to stat)

I searched the whole machine for that zm.php file but no results....
My feeling is that zoneminder is installed but maybe not correctly, and did not created the proper files to connect to apache...

I really hope this helps......

Last edited by lpallard; 03-21-2010 at 02:36 PM.
 
Old 03-21-2010, 02:55 PM   #8
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Zoneminder often creates an addition apache.conf file that gets linked in to the main http.d conf (depending on the distro that is).

Do a quick search for apache.conf and see if you have one that appears to be in a strange 'zm' directory like '/etc/zm/apache.conf' My guess is you will only need to alter it's contents to get yourself up and running. Failing that create a virtual host for Zoneminder, give it a suitable alias and point it to the right directory and you're cooking on gas :-)

Of course if you've already set up a virtual host for it, just change the path. The default vh declaration on Ubuntu for zm looks like this if it's any use to you:

Quote:
Alias /zm /usr/share/zoneminder

<Directory /usr/share/zoneminder>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>

Last edited by spampig; 03-21-2010 at 02:57 PM.
 
Old 03-21-2010, 03:38 PM   #9
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
Well I guess I made progress and getting close but still not there... I created a virtualhost in apache and now when I type the address localhost:8080/zm, I get what I asked for.. the problem is that I dont get what I should.. I explain:

There is no such folder as "/usr/share/zoneminder" in the system.... So in the alias, I entered /usr/bin (taken from the zm.conf file) and when I type the address above, I get a listing of the folder /usr/bin... Ok apache seems to work fine but not having that zoneminder folder, its like having gas, but no BBQ...

the content of zm.conf is:

Code:
# Current version of ZoneMinder
ZM_VERSION=1.24.2
# Path to build directory, used mostly for finding DB upgrade scripts
ZM_PATH_BUILD=/usr/local/zoneminder-setup-files
# Build time, used to record when to trigger various checks
ZM_TIME_BUILD=1269144727
# Path to ZoneMinder binaries
ZM_PATH_BIN=/usr/bin
# Path to ZoneMinder libraries (none at present, for future use)
ZM_PATH_LIB=/usr/lib
# Path to ZoneMinder configuration (this file only at present)
ZM_PATH_CONF=/etc
# Path to ZoneMinder web files
ZM_PATH_WEB=/var/www/htdocs
# Path to ZoneMinder cgi files
ZM_PATH_CGI=/srv/httpd/cgi-bin
# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=apache
ZM_WEB_GROUP=apache
# ZoneMinder database hostname or ip address
ZM_DB_HOST=localhost
# ZoneMinder database name
ZM_DB_NAME=zm
# ZoneMinder database user
ZM_DB_USER=zmuser
# ZoneMinder database password
ZM_DB_PASS=zmappz
As you can see, the address for the zm binaries is really /usr/bin...

In /usr/bin, there is a bunch of zm related files... From there what should I do?
 
Old 03-22-2010, 02:36 AM   #10
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
Forget about the 'binary' files for zone minder that are in /usr/bin. These are the backend of the application and not run directly by Apache. You probably have something like this there (just for reference)
Code:
-rwxr-xr-x  1 root   root    298K 2008-09-24 09:40 zma
-rwxr-xr-x  1 root   root     13K 2008-09-24 09:40 zmaudit.pl
-rwxr-xr-x  1 root   root    298K 2008-09-24 09:40 zmc
-rwxr-xr-x  1 root   root    6.9K 2008-09-24 09:40 zmcontrol.pl
-rwxr-xr-x  1 root   root     17K 2008-09-24 09:40 zmdc.pl
-rwxr-xr-x  1 root   root    306K 2008-09-24 09:40 zmf
-rwxr-xr-x  1 root   root     36K 2008-09-24 09:40 zmfilter.pl
-rwxr-xr-x  1 root   root     42K 2008-09-24 09:40 zmfix
-rwxr-xr-x  1 root   root    9.0K 2008-09-24 09:40 zmpkg.pl
-rwxr-xr-x  1 root   root    5.2K 2008-09-24 09:40 zmtrack.pl
-rwxr-xr-x  1 root   root     13K 2008-09-24 09:40 zmtrigger.pl
-rwxr-xr-x  1 root   root    310K 2008-09-24 09:40 zmu
-rwxr-xr-x  1 root   root     30K 2008-09-24 09:40 zmupdate.pl
-rwxr-xr-x  1 root   root    9.5K 2008-09-24 09:40 zmvideo.pl
-rwxr-xr-x  1 root   root    4.0K 2008-09-24 09:40 zmwatch.pl
-rwxr-xr-x  1 root   root     17K 2008-09-24 09:40 zmx10.pl
Your Apache 'gui' requires that it can find the zone minder web scripts that make calls to these binaries. Where the PHP and other web files will be is system and build dependent but you are looking for a directory crammed with files like this:

Code:
drwxr-xr-x   5 root root 4.0K 2009-05-14 18:05 .
drwxr-xr-x 123 root root 4.0K 2010-02-20 18:51 ..
lrwxrwxrwx   1 root root   17 2009-05-14 18:05 cgi-bin -> ../../lib/cgi-bin
drwxr-xr-x   2 root root 4.0K 2009-05-14 18:05 db
lrwxrwxrwx   1 root root   28 2009-05-14 18:05 events -> /var/cache/zoneminder/events
-rw-r--r--   1 root root  318 2008-09-24 09:40 favicon.ico
drwxr-xr-x   2 root root 4.0K 2009-05-14 18:05 graphics
lrwxrwxrwx   1 root root   28 2009-05-14 18:05 images -> /var/cache/zoneminder/images
lrwxrwxrwx   1 root root    6 2009-05-14 18:05 index.php -> zm.php
-rw-r--r--   1 root root 2.4K 2008-09-24 09:40 mootools.ext.js
drwxr-xr-x   2 root root 4.0K 2008-09-24 09:40 sounds
lrwxrwxrwx   1 root root   26 2009-05-14 18:05 temp -> /var/cache/zoneminder/temp
-rw-r--r--   1 root root  44K 2008-09-24 09:40 zm_actions.php
-rw-r--r--   1 root root 9.9K 2008-09-24 09:40 zm_config.php
-rw-r--r--   1 root root  16K 2008-09-24 09:40 zm_control_funcs.php
-rw-r--r--   1 root root  12K 2008-09-24 09:40 zm_control_funcsX.php
-rw-r--r--   1 root root 4.7K 2008-09-24 09:40 zm_db.php
-rw-r--r--   1 root root 9.2K 2008-09-24 09:40 zm_export_funcs.php
-rw-r--r--   1 root root  49K 2008-09-24 09:40 zm_funcs.php
-rw-r--r--   1 root root 3.8K 2008-09-24 09:40 zm_html_base.css
-rw-r--r--   1 root root 8.4K 2008-09-24 09:40 zm_html_config.php
-rw-r--r--   1 root root 1.3K 2008-09-24 09:40 zm_html.js
-rw-r--r--   1 root root 2.6K 2008-09-24 09:40 zm_html_js.php
-rw-r--r--   1 root root 3.7K 2008-09-24 09:40 zm_html.php
-rw-r--r--   1 root root 2.0K 2008-09-24 09:40 zm_html_reset.css
-rw-r--r--   1 root root 4.8K 2008-09-24 09:40 zm_html_styles.css
-rw-r--r--   1 root root 2.2K 2008-09-24 09:40 zm_html_view_bandwidth.php
-rw-r--r--   1 root root 1.2K 2008-09-24 09:40 zm_html_view_blank.php
-rw-r--r--   1 root root  19K 2008-09-24 09:40 zm_html_view_console.php
-rw-r--r--   1 root root  37K 2008-09-24 09:40 zm_html_view_controlcap.php
-rw-r--r--   1 root root 5.4K 2008-09-24 09:40 zm_html_view_controlcaps.php
-rw-r--r--   1 root root 2.4K 2008-09-24 09:40 zm_html_view_controlmenu.php
-rw-r--r--   1 root root 3.3K 2008-09-24 09:40 zm_html_view_controlpanel.php
-rw-r--r--   1 root root 2.2K 2008-09-24 09:40 zm_html_view_control.php
-rw-r--r--   1 root root 3.4K 2008-09-24 09:40 zm_html_view_controlpreset.php
-rw-r--r--   1 root root 5.2K 2008-09-24 09:40 zm_html_view_cycle.php
-rw-r--r--   1 root root 2.8K 2008-09-24 09:40 zm_html_view_device.php
-rw-r--r--   1 root root 4.7K 2008-09-24 09:40 zm_html_view_devices.php
-rw-r--r--   1 root root 3.0K 2008-09-24 09:40 zm_html_view_donate.php
-rw-r--r--   1 root root 1.9K 2008-09-24 09:40 zm_html_view_error.php
-rw-r--r--   1 root root 3.6K 2008-09-24 09:40 zm_html_view_eventdetail.php
-rw-r--r--   1 root root  22K 2008-09-24 09:40 zm_html_view_event.php
-rw-r--r--   1 root root  22K 2008-09-24 09:40 zm_html_view_events.php
-rw-r--r--   1 root root 2.1K 2008-09-24 09:40 zm_html_view_eventX.css
-rw-r--r--   1 root root  22K 2008-09-24 09:40 zm_html_view_eventX.php
-rw-r--r--   1 root root 5.6K 2008-09-24 09:40 zm_html_view_export.php
-rw-r--r--   1 root root  16K 2008-09-24 09:40 zm_html_view_filter.php
-rw-r--r--   1 root root 3.9K 2008-09-24 09:40 zm_html_view_filtersave.php
-rw-r--r--   1 root root 5.9K 2008-09-24 09:40 zm_html_view_frame.php
-rw-r--r--   1 root root 3.8K 2008-09-24 09:40 zm_html_view_frames.php
-rw-r--r--   1 root root 2.6K 2008-09-24 09:40 zm_html_view_function.php
-rw-r--r--   1 root root 3.2K 2008-09-24 09:40 zm_html_view_group.php
-rw-r--r--   1 root root 4.5K 2008-09-24 09:40 zm_html_view_groups.php
-rw-r--r--   1 root root 2.2K 2008-09-24 09:40 zm_html_view_login.php
-rw-r--r--   1 root root 2.4K 2008-09-24 09:40 zm_html_view_logout.php
-rw-r--r--   1 root root  35K 2008-09-24 09:40 zm_html_view_monitor.php
-rw-r--r--   1 root root 2.6K 2008-09-24 09:40 zm_html_view_monitorpreset.php
-rw-r--r--   1 root root 3.4K 2008-09-24 09:40 zm_html_view_monitorselect.php
-rw-r--r--   1 root root 4.6K 2008-09-24 09:40 zm_html_view_montagefeed.php
-rw-r--r--   1 root root 2.0K 2008-09-24 09:40 zm_html_view_montageframe.php
-rw-r--r--   1 root root 3.7K 2008-09-24 09:40 zm_html_view_montagemenu.php
-rw-r--r--   1 root root 3.3K 2008-09-24 09:40 zm_html_view_montage.php
-rw-r--r--   1 root root 3.1K 2008-09-24 09:40 zm_html_view_montagestatus.php
-rw-r--r--   1 root root 1.2K 2008-09-24 09:40 zm_html_view_none.php
-rw-r--r--   1 root root 1.7K 2008-09-24 09:40 zm_html_view_optionhelp.php
-rw-r--r--   1 root root 9.8K 2008-09-24 09:40 zm_html_view_options.php
-rw-r--r--   1 root root 1.8K 2008-09-24 09:40 zm_html_view_postlogin.php
-rw-r--r--   1 root root 3.7K 2008-09-24 09:40 zm_html_view_settings.php
-rw-r--r--   1 root root 1.8K 2008-09-24 09:40 zm_html_view_siren.php
-rw-r--r--   1 root root 4.5K 2008-09-24 09:40 zm_html_view_state.php
-rw-r--r--   1 root root 4.0K 2008-09-24 09:40 zm_html_view_stats.php
-rw-r--r--   1 root root 1.9K 2008-09-24 09:40 zm_html_view_status.php
-rw-r--r--   1 root root  50K 2008-09-24 09:40 zm_html_view_timeline.php
-rw-r--r--   1 root root 5.9K 2008-09-24 09:40 zm_html_view_user.php
-rw-r--r--   1 root root 3.9K 2008-09-24 09:40 zm_html_view_version.php
-rw-r--r--   1 root root 9.3K 2008-09-24 09:40 zm_html_view_video.php
-rw-r--r--   1 root root 8.9K 2008-09-24 09:40 zm_html_view_watchevents.php
-rw-r--r--   1 root root 4.1K 2008-09-24 09:40 zm_html_view_watchfeed.php
-rw-r--r--   1 root root 3.9K 2008-09-24 09:40 zm_html_view_watchmenu.php
-rw-r--r--   1 root root 3.1K 2008-09-24 09:40 zm_html_view_watch.php
-rw-r--r--   1 root root 4.7K 2008-09-24 09:40 zm_html_view_watchstatus.php
-rw-r--r--   1 root root 6.1K 2008-09-24 09:40 zm_html_view_watchX.css
-rw-r--r--   1 root root  30K 2008-09-24 09:40 zm_html_view_watchX.php
-rw-r--r--   1 root root  32K 2008-09-24 09:40 zm_html_view_zone.php
-rw-r--r--   1 root root 5.4K 2008-09-24 09:40 zm_html_view_zones.php
-rw-r--r--   1 root root  41K 2008-09-24 09:40 zm_lang_big5_big5.php
-rw-r--r--   1 root root  41K 2008-09-24 09:40 zm_lang_cs_cz.php
-rw-r--r--   1 root root  44K 2008-09-24 09:40 zm_lang_de_de.php
-rw-r--r--   1 root root  40K 2008-09-24 09:40 zm_lang_dk_dk.php
-rw-r--r--   1 root root  40K 2008-09-24 09:40 zm_lang_en_gb.php
-rw-r--r--   1 root root 4.6K 2008-09-24 09:40 zm_lang_en_us.php
-rw-r--r--   1 root root  33K 2008-09-24 09:40 zm_lang_es_ar.php
-rw-r--r--   1 root root  40K 2008-09-24 09:40 zm_lang_fr_fr.php
-rw-r--r--   1 root root  40K 2008-09-24 09:40 zm_lang_he_il.php
-rw-r--r--   1 root root  42K 2008-09-24 09:40 zm_lang_hu_hu.php
-rw-r--r--   1 root root  45K 2008-09-24 09:40 zm_lang_it_it.php
-rw-r--r--   1 root root  40K 2008-09-24 09:40 zm_lang_ja_jp.php
-rw-r--r--   1 root root  41K 2008-09-24 09:40 zm_lang_nl_nl.php
-rw-r--r--   1 root root 1.4K 2008-09-24 09:40 zm_lang.php
-rw-r--r--   1 root root  40K 2008-09-24 09:40 zm_lang_pl_pl.php
-rw-r--r--   1 root root  37K 2008-09-24 09:40 zm_lang_pt_br.php
-rw-r--r--   1 root root 102K 2008-09-24 09:40 zm_lang_ro_ro.php
-rw-r--r--   1 root root  41K 2008-09-24 09:40 zm_lang_ru_ru.php
-rw-r--r--   1 root root 4.1K 2008-09-24 09:40 zm.php
-rw-r--r--   1 root root 1.2K 2008-09-24 09:40 zm_request_alarm.php
-rw-r--r--   1 root root  40K 2008-09-24 09:40 zm_request_control.php
-rw-r--r--   1 root root 2.0K 2008-09-24 09:40 zm_request_event.php
-rw-r--r--   1 root root 8.8K 2008-09-24 09:40 zm_request_status.php
-rw-r--r--   1 root root 3.9K 2008-09-24 09:40 zm_request_stream.php
-rw-r--r--   1 root root 2.6K 2008-09-24 09:40 zm_xhtml_config.php
-rw-r--r--   1 root root 2.3K 2008-09-24 09:40 zm_xhtml.php
-rw-r--r--   1 root root 1.4K 2008-09-24 09:40 zm_xhtml_styles.css
-rw-r--r--   1 root root 6.3K 2008-09-24 09:40 zm_xhtml_view_console.php
-rw-r--r--   1 root root 2.4K 2008-09-24 09:40 zm_xhtml_view_devices.php
-rw-r--r--   1 root root 1.7K 2008-09-24 09:40 zm_xhtml_view_error.php
-rw-r--r--   1 root root 4.7K 2008-09-24 09:40 zm_xhtml_view_eventdetails.php
-rw-r--r--   1 root root 8.7K 2008-09-24 09:40 zm_xhtml_view_event.php
-rw-r--r--   1 root root 8.9K 2008-09-24 09:40 zm_xhtml_view_events.php
-rw-r--r--   1 root root 2.1K 2008-09-24 09:40 zm_xhtml_view_filter.php
-rw-r--r--   1 root root 3.6K 2008-09-24 09:40 zm_xhtml_view_frame.php
-rw-r--r--   1 root root 2.5K 2008-09-24 09:40 zm_xhtml_view_function.php
-rw-r--r--   1 root root 2.1K 2008-09-24 09:40 zm_xhtml_view_login.php
-rw-r--r--   1 root root 3.1K 2008-09-24 09:40 zm_xhtml_view_montage.php
-rw-r--r--   1 root root 2.3K 2008-09-24 09:40 zm_xhtml_view_state.php
-rw-r--r--   1 root root 7.5K 2008-09-24 09:40 zm_xhtml_view_video.php
-rw-r--r--   1 root root 4.3K 2008-09-24 09:40 zm_xhtml_view_watch.php
On the ZM installs I've done and have these are found in "/usr/share/zoneminder". On your system that is not the case. The easiest way to find the containing directory is to do a simple search for any one of those specific files - such as:
Code:
find / -iname zm.php
Once you have the containing directory of this file just modify the virtual host section in Apache. For example, if the search comes back as "/usr/chocolateteapot/zoneminder/zm.php" set your vh declaration to something like:

Code:
Alias /zm /usr/chocolateteapot/zoneminder

<Directory /usr/chocolateteapot/zoneminder>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
 
Old 03-22-2010, 03:52 PM   #11
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
spampig,

Yeah I had the feling that the binaries in /usr/bin were only back end binaries...

Also I did a search of the files you listed (php and webfiles) and like I was expecting, found nothing....

there is not even a /usr/share/zoneminder folder.. in fact there is NO zoneminder folders system wide... I searched the installation logs, configuration logs and etc and found no errors or messages telling that installation was botched....

the only folder that seems to contain web files is in the original folder where i extracted the .tar.gz file... it is names "web" and contains:

Code:
-rw-r--r-- 1 root root 16972 2010-03-21 00:12 Makefile
-rw-r--r-- 1 root root  1282 2009-03-20 08:07 Makefile.am
-rw-r--r-- 1 root root 16829 2009-06-24 06:22 Makefile.in
drwxr-xr-x 2 root root   320 2010-03-21 00:12 ajax
drwxr-xr-x 2 root root   168 2010-03-21 00:12 css
drwxr-xr-x 2 root root   200 2010-03-21 00:12 graphics
drwxr-xr-x 2 root root   320 2010-03-21 00:12 includes
-rw-r--r-- 1 root root  3717 2009-03-20 08:07 index.php
drwxr-xr-x 2 root root   168 2010-03-21 00:12 js
drwxr-xr-x 2 root root   744 2010-03-21 00:12 lang
drwxr-xr-x 4 root root   184 2010-03-21 00:12 skins
drwxr-xr-x 3 root root   160 2010-03-21 00:12 tools
drwxr-xr-x 2 root root   136 2010-03-21 00:12 views
???? Is there a bug installing this app in slackware???????
 
Old 03-22-2010, 03:59 PM   #12
spampig
Member
 
Registered: Feb 2010
Location: /Earth/UK/England/Hampshire
Distribution: Debian, Ubuntu, CentOS, Slackware
Posts: 262
Blog Entries: 2

Rep: Reputation: 56
I can't speak for Slackware, but the Debian & Ubuntu installs I've done with ZM were trouble free. If none of the web application appears to be there I'd probably take the view the install is not complete or failed - or the version you have (which is a minor on from mine) does things very differently.
 
Old 04-09-2010, 05:21 AM   #13
majordidge
LQ Newbie
 
Registered: Apr 2010
Location: Montrose, Australia
Distribution: Topologilinux
Posts: 11

Rep: Reputation: 0
Question Apache Problems - Pages dont load

Hi lpallard,

This is one of those threads that you follow with increasing interest just to discover that the answer isn't there. This may be because, like me, you still have the same problem.

I'm running Topologilinux - a slackware distribution modified for colinux and have (eventually) got a clean installation of ZoneMinder 1.24.2 and dependancies which starts OK and apache will happily return "It Works" from index.http. However, there is no sign of zm.php or anything similar in /srv/httpd/htdocs/ or anywhere else on the system for that matter.

Based upon your and my experience there appears to be a slackware specific issue which results in no zm specific web objects being generated.

Love to know if you sorted this and if so how?

Cheers,

MD.
 
Old 04-09-2010, 07:55 AM   #14
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Original Poster
Rep: Reputation: Disabled
majordidge,

thats funny! I've just seen your post on Zoneminder forums.... look there I explained what happened and where I am at this point...

The fact that apache returns "It Works" from index.http shows that your server is working properly (I assume so).

I couldnt find any zm.php but try to locate the index.php in the web root of ZM and open it with wither nano, kwrite, Kate or anything else... and see the first few lines (commented out). It says that this file is the zm main web script... I thing we got fooled by the generic instructions on the web and that for some reasons, zm. php is in fact index.php... now after you look at my post on the ZM forums, you'll see that I still cant run the php file as normal....

cheers!
 
Old 04-10-2010, 01:07 AM   #15
majordidge
LQ Newbie
 
Registered: Apr 2010
Location: Montrose, Australia
Distribution: Topologilinux
Posts: 11

Rep: Reputation: 0
Lpallard,

I thought i'd try installing 1.24.1 to see if it made a difference (I believe Spampig uses this) but it didn't.

I noticed on the ZoneMinder forum that Kingofkya has made a suggestion so I tried adding the two additional lines into http.conf but again to no avail.

After some more investigation I believe Spampig may be correct when he says that the install is not complete or failed in some way. I also cannot find the php and web files he has listed, other than the ZoneMinder index.php and the zm directories (ajax, css etc) in /srv/http/htdocs, and looking at the output from make install there is no evidence of any zm_http.. files being copied anywhere. There does not appear to be any failures during the compilation but again it is noticeable that there are no references to any zm_http.. files.

Stepping further back the configure completed successfully but there are some problems reported in the log for line 2641 with /* condefs.h /* where 'exit' appears to be used out of scope. The configure continued with some subsequent problems with condefs.h later. Do you see these in your config.log?

Cheers,

MD.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't load pages gtduff Linux - Networking 1 01-13-2009 08:21 AM
installed php and apache yet my php pages dont load ?? jessica_lilly Linux - Software 1 11-13-2007 01:57 AM
Internet pages won't load marita Linux - Wireless Networking 5 09-07-2006 01:21 AM
Some pages load, some not virgos Linux - Networking 2 09-05-2006 07:44 PM
Server load problems with Suse 9.3 and Apache 2.0.53 wessie Linux - Newbie 1 08-04-2006 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration