[solved] Apache server won't start

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Apache server won't start - no other web servers present

Post by BSOD2600 »

hammondo wrote:MIBDIRS variable is NOT present - am looking into how to set that up as I am not recalling how it was set up previously for cacti/apache.
you can manually create it in the System Control panel.
hammondo wrote: Still doesn't explain why no PHP\Extras folder is created during the PHP install?
buggy php installer. exactly why the install guide has steps to check/create it ;)
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

My apologies BSOD2006 - I had a buggy browser that would not let me see the contents of the Install PHP page in the 8.8 manual that dealt with modifying the php.ini and creating the MIBDIRs variable, i.e. anything on that page below step 7. I see what I need to do, to get PHP running again.

Thanks!
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

Still no PHP joy :( I followed the instructions below step 7, in each of the steps that involved user permissions I gave the IIS_IUSRS group the required permissions. The PHP.ini file was modified as instructed and I created the extra, extra/mibs, extra/mibs/index, and php/session and php/uploadtemp folders. I rebooted the server and still see the same missing extensions in the php -m output. Do I need to populate those folders I created and if so with what files and where would I obtain those files? Sorry if I'm not looking at all the proper install docs - I am certainly making every effort to make sure I do that however.
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

I ask again what to do regarding my PHP troubles?????? I went ahead with MySQL and Net-SNMP installs. When I perform the snmpwalk I see the similar "Cannot find modules" errors I see in the php-m output:

cannot find module (IP-MIB): At line 0 in (none)
cannot fine module (IF-MIB): At line 0 in (none)
cannot find module (TCP-MIB): At line 0 in (none)
cannot find module (UDP-MIB): At line 0 in (none)
cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
cannot find module (SNMPv2-MIB): At line 0 in (none)
cannot find module (SNMPv2-SMI): At line 0 in (none)
cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
cannot find module (UCD-SNMP-MIB): At line 0 in (none)
cannot find module (UCD-DEMO-MIB): At line 0 in (none)
cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
cannot find module (NET-SNMP-AGENT): At line 0 in (none)
cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)
cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
cannot find module (SNMP-MPD-MIB): At line 0 in (none)
cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
cannot find module (SNMPv2-TM): At line 0 in (none)
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

While waiting on a response - yes I know you're a busy one! - I went ahead and double-checked my Cacti install - just needed to modify the config.php file. Now when I go to server/cacti I do in fact get the Cacti Installation Guide page which reads in part "Make sure you have read and followed the required steps needed to install cacti before continuing." And I do have the "Next" button on that page. So I'm going to wait here until I get a response but does the fact that I am getting this page mean the IIS permissions set to the IIS_IUSRS Group (with no members) and the IUSR_ and IIS_WPG users not being present are not an issue?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Apache server won't start - no other web servers present

Post by BSOD2600 »

hammondo wrote: When I perform the snmpwalk I see the similar "Cannot find modules" errors I see in the php-m output:
Per http://docs.cacti.net/manual:088:1_inst ... nstall_php
validate the MIBDIRS variable is present and correct. restart the server if you change this setting. They're not required for Cacti to function.

IIS_* group/users is created and maintained by Windows/IIS. do not manually create these.
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

Thanks BSOD2006 - found I had the path wrong in the MIBDIRS variable - C:\Extra\mibs rather than C:\PHP\Extra\mibs (big forehead slap). Changed it to the latter and rebooted the server. I still see the "cannot find module" errors in the php -m output. So those modules are not needed for Cacti to function, how's about the Net-SNMP "cannot find module" errors - which I still get after fixing MIBDIRS and the reboot. Can I disregard those also and proceed with configuring Cacti?

Thanks again,

Steve
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

I am so close now but no cigar just yet. I went ahead with configuring Cacti. I have created Devices and have created Graphs for those devices. Yet I have only broken images in my graphs. In poller cache I see activity and I have activity in my SNMP Cache. However there are no log entries (cacti.log is empty even after turning on debug level logging for one cycle) and no RRD files being created. I checked the RRDTool output in Graph Debugging (per your Read Me Before Posting) the output is below. My thoughts on this are it being a file/folder permissions issue but I do have the IIS_IUSRS group set with Modify permissions on the rra folder. However I also see that that on the General tab of the folder Properties window, that folder is set to Read-Only and if I uncheck the Read-Only attribute and click Apply or Ok and close the window, the Read-Only attribute is again set when I re-open the Properties window. Also I saw the at the Cacti folder level the IIS_IUSRS group did not have Modify permissions which is odd - so I did give that troup Modify permissions for the cacti folder and all subfolders. So close but no graphs yet!

Thank you

Steve

RRDTool output from Graph Logging:

RRDTool Command:

c:/rrdtool/data/rrd2/rrdtool-1.2.30/Release/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="6450_Stack - Traffic - ethernet1/1/1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit="0" \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="C\:/inetpub/wwwroot/cacti/rra/6450_stack_traffic_in_222.rrd":"traffic_in":AVERAGE \
DEF:b="C\:/inetpub/wwwroot/cacti/rra/6450_stack_traffic_in_222.rrd":"traffic_out":AVERAGE \
CDEF:cdefa="a,8,*" \
CDEF:cdefe="b,8,*" \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

ERROR: opening 'C:/inetpub/wwwroot/cacti/rra/6450_stack_traffic_in_222.rrd': No such file or directory
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

Still working on the file permissions possibility but nothing we have tried (had our AD guy work on this for some time today also) have changed things i.e. graphs still have broken images, cacti.log still has no entries with/without logging level set to debug, rra folder still empty except for the .htaccess file from the install.

I am trying to use Process Monitor per the Debug Windows NTFS Permissions post from 2008 but cannot obtain events with result = Access Denied despite having Filter>Highlight (Process Monitor Highlighting) set to "Column=Result, Relation=contains, Value=denied, and Action=include" as per the instructions in the post. Also I manually added the processes as I could find no way to import the registry file (Filter>Load Filter doesn't open another submenu as it appears it should, Organize Filters>Import looks for .PMF files only, File>Import Configuration looks for a .PMC file): I added php.exe, inetinfo.exe, svchost.exe, explorer.exe, cmd.exe, mysqld-nt.exe, and rrdtool.exe with Action=Include.

Per the post instructions I cleared the events (Edit>Clear Display) and waited about 7 minutes for the next poll as I haven't yet determined how to know when a poll has been performed, since cacti.log and rra folder are both empty still. After 7 minutes I unchecked File>Capture Events. I see 30,854 of 253,234 events (12%) yet most events appear to have Result=Success and a search (Edit>Find) on either "denied" or "access denied" shows no results.

So as far as I can tell I have Process Monitor configured correctly per the post instructions, and I see no "Access Denied" events, and I still have no inputs to my cacti.log file, or any files in my cacti/rra folder.
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

Effective file permissions on cacti, cacti/log and cacti/rra folders are now Full Control for the IIS_IUSRs group and still no joy - see attached jpgs.
Attachments
rra.JPG
rra.JPG (37.49 KiB) Viewed 2796 times
log.JPG
log.JPG (40.19 KiB) Viewed 2796 times
cacti.JPG
cacti.JPG (37.32 KiB) Viewed 2796 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Apache server won't start - no other web servers present

Post by BSOD2600 »

With your admin credentials, if you manually run: php poller.php in the cacti directory, does the cacti.log become populated and rrds created? Do this with cacti logging level set to high. If so, then there is still a NTFS permission issue somewhere... UAC disabled?

This web server locked down with additional policies per chance? The installation guide works on a standard out-of-the-box image.
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

The manual effort does populate the cacti.log file! I'm not sure about how to check to see how locked down the web server is but I did check the Default Web Site under Sites (the only site) in IIS Manager and the IIS_IUSRS group has Full Control rights to the Site (see pic).
Attachments
IIS.JPG
IIS.JPG (62.18 KiB) Viewed 2790 times
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

UAC was NOT disabled. I disabled it and am rebooting the server.
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

After the reboot I now have graphs but no graph content just the "-1.#J". Am leaving for lunch now will let things run and check when I get back. THANK YOU!
hammondo
Cacti User
Posts: 55
Joined: Wed Jul 25, 2012 10:17 am

Re: Apache server won't start - no other web servers present

Post by hammondo »

UAC disabled ~90 minutes ago. No new entries in cacti.log or new rrd files since manual (php poller.php) effort. Any specifics for me to check re: web site permissions?
Attachments
graph.JPG
graph.JPG (36.53 KiB) Viewed 2788 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests