index.php is not run on startup

Forum for questions and support relating to the 1.24.x releases only.
Locked
buddybamboo
Posts: 5
Joined: Mon Mar 22, 2010 10:28 pm

index.php is not run on startup

Post by buddybamboo »

I am new to Zoneminder, and also the use of Apache2, and the associated files. I am trying to get 1.24.2 up on a netbook atom processor. The problem appears that php5 mods-enabled files [php5.load php5.conf] are not there. Zoneminder starts successfully, and apache5 starts clean. I have tried several times to load php5 as described in the forums. Everything seems to go smoothly, but after restarting apache2, those 2 files are still not there. When I try to start the webpage, the message asks what to open index.php with.
I have zoneminder working on my desktop.

Would appreciate any suggestions.

Ubuntu 9.10 remix
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

From http://www.zoneminder.com/wiki/index.ph ... dow_etc.3F
If you are using Apache, which is the most common one, then in your httpd.conf file there should be a line like
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
buddybamboo
Posts: 5
Joined: Mon Mar 22, 2010 10:28 pm

Post by buddybamboo »

Thanks for the information. I found even the desktop that works has nothing in the httpd.conf file.
What I did before was to look at the one that worked files in mods-available, and mods-enabled and put what I found in the netbook. This didn't work. Then I discovered that the reboot whipped out the mods-enabled files were gone. I then discovered they were supposed to be linked to mods-available. Linking them fixed the problem! php5.conf contained:
<IfModule>
AddType application/x-httpd-php .php .phtml .php3
AddType application/x-httpd-php-source .phps
</IfModule>

php5.load contained:
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so
Why these were not loaded in the process of installing Zoneminder I don't know.\
Thanks
The problems forced me to learn alot.
Mahalo
George
Locked