Question

PHP Not working after "service apache2 reload" (Ubuntu)

Asked by: moosecaboose

I've built a fully working Nagios network montoring machine but I broke it this morning.

Everything was working running the latest release (apt-get installed almost everything, synaptic the rest).
PHP5, Apache2, MySQL all working fine.

Anyway. I was trying to install Lilac which is an admin GUI for Nagios but this is where it broke. I'm pretty new to linux but I'm also a quick learner and could probably find any info you might need to help me fix this.


So everything was running OK, I installed the dependencies (http://www.lilacplatform.com/wiki/LilacInstallation) and run "service apache2 reload". I then refreshed the page and nada...
----
Failed to Connect

The connection was refused when attempting to contact localhost.
Though the site seems valid, the browser was unable to establish a connection.)
-----
Apache works fine. But I can't  access any .php links.


Any help getting it back up and running would be appreciated. & Yes I know.. Should've backup up/imaged before I fiddled or at least run in a test environment. Also sorry about the lack of info but I don't know what else you'd need unless you ask.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-05-14 at 02:35:37ID24407776
Tags

ubuntu php5 apache2 nagios

Topics

PHP Scripting Language

,

PHP Frameworks

,

Ubuntu

Participating Experts
2
Points
500
Comments
23

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. php5
    Respected SIr, I had a php 4 in my rhel4. I uninstalled it. Now i want to install php 5 . i tried up2date. But it says The following packages you requested were not found: php5 Please any one can help me how to install tar of php5. and the step t...
  2. Installing Apache, Php, mysql on ubuntu server hosted b…
    Hey guys, I am new to the linux distribution so if anyone could kinnda guide me through the process would be great.. Correct me if I am wrong do I need to install apache server on ubuntu server or does ubuntu server comes with pre install apache? I normally work on my own ...
  3. how to install php on ubuntu
    how to install php on ubuntu

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: fmarzoccaPosted on 2009-05-14 at 02:43:06ID: 24383068

Which version of ubuntu are you working on?

If you have a "Failed to Connect" message on localhost it likely seems to be an Apache problem.

Try running again:

sudo apt-get install lamp-server^

 

by: moosecaboosePosted on 2009-05-14 at 02:50:09ID: 24383095

Ubuntu 9.04 (Jaunty)

Ran the command. Got this;
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
Everything was already the newest version

0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.

 

by: moosecaboosePosted on 2009-05-14 at 02:51:23ID: 24383105

root@ITEYE:/etc/php5/apache2# chkconfig --list apache2
apache2                   0:off  1:off  2:on   3:on   4:on   5:on   6:off

 

by: fmarzoccaPosted on 2009-05-14 at 03:23:56ID: 24383269

Apache running doesn't mean that it hasn't a configuration problem. What are those 10 packages "not upgraded"? You could have a version-conflict problem when you have installed lilac.

 

by: moosecaboosePosted on 2009-05-14 at 03:32:30ID: 24383312

Afraid I don't know what the 10 not upgraded are as in this list there are way more than 10.

If a VNC connection over hamachi is any good to you, you would be welcome a look

root@ITEYE:/var/www# apt-get install lamp-server^
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apache2-utils is already the newest version.
libwrap0 is already the newest version.
libnet-daemon-perl is already the newest version.
libhtml-template-perl is already the newest version.
libdbi-perl is already the newest version.
libdbd-mysql-perl is already the newest version.
mysql-server-5.0 is already the newest version.
libapr1 is already the newest version.
mysql-client-5.0 is already the newest version.
mysql-common is already the newest version.
apache2-mpm-prefork is already the newest version.
libplrpc-perl is already the newest version.
tcpd is already the newest version.
libmysqlclient15off is already the newest version.
apache2 is already the newest version.
mysql-server-core-5.0 is already the newest version.
apache2.2-common is already the newest version.
mysql-server is already the newest version.
ssl-cert is already the newest version.
libpq5 is already the newest version.
php5-mysql is already the newest version.
libapache2-mod-php5 is already the newest version.
libaprutil1 is already the newest version.
php5-common is already the newest version.
apache2-utils is already the newest version.
libwrap0 is already the newest version.
libnet-daemon-perl is already the newest version.
libhtml-template-perl is already the newest version.
libdbi-perl is already the newest version.
libdbd-mysql-perl is already the newest version.
mysql-server-5.0 is already the newest version.
libapr1 is already the newest version.
mysql-client-5.0 is already the newest version.
mysql-common is already the newest version.
apache2-mpm-prefork is already the newest version.
libplrpc-perl is already the newest version.
tcpd is already the newest version.
libmysqlclient15off is already the newest version.
apache2 is already the newest version.
mysql-server-core-5.0 is already the newest version.
apache2.2-common is already the newest version.
mysql-server is already the newest version.
ssl-cert is already the newest version.
libpq5 is already the newest version.
php5-mysql is already the newest version.
libapache2-mod-php5 is already the newest version.
libaprutil1 is already the newest version.
php5-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:

Select allOpen in new window

 

by: fmarzoccaPosted on 2009-05-14 at 03:34:46ID: 24383326

maybe we can find some interesting error messages by typing this in a terminal:

sudo apt-get update
sudo apt-get dist-upgrade

 

by: moosecaboosePosted on 2009-05-14 at 03:46:37ID: 24383400

root@ITEYE:/var/www# apt-get update
Hit http://gb.archive.ubuntu.com jaunty Release.gpg
Get: 1 http://gb.archive.ubuntu.com jaunty/main Translation-en_GB [52.6kB]
Get: 2 http://gb.archive.ubuntu.com jaunty/restricted Translation-en_GB [4640B]
Get: 3 http://security.ubuntu.com jaunty-security Release.gpg [189B]                    
Get: 4 http://gb.archive.ubuntu.com jaunty/universe Translation-en_GB [35.2kB]
Ign http://security.ubuntu.com jaunty-security/main Translation-en_GB        
Get: 5 http://gb.archive.ubuntu.com jaunty/multiverse Translation-en_GB [47.5kB]
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_GB  
Hit http://gb.archive.ubuntu.com jaunty-updates Release.gpg
Ign http://gb.archive.ubuntu.com jaunty-updates/main Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_GB
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_GB
Hit http://security.ubuntu.com jaunty-security Release
Ign http://gb.archive.ubuntu.com jaunty-updates/restricted Translation-en_GB
Ign http://gb.archive.ubuntu.com jaunty-updates/universe Translation-en_GB
Hit http://security.ubuntu.com jaunty-security/main Packages
Ign http://gb.archive.ubuntu.com jaunty-updates/multiverse Translation-en_GB
Hit http://security.ubuntu.com jaunty-security/restricted Packages
Hit http://security.ubuntu.com jaunty-security/main Sources
Hit http://gb.archive.ubuntu.com jaunty Release
Hit http://security.ubuntu.com jaunty-security/restricted Sources   
Hit http://gb.archive.ubuntu.com jaunty-updates Release
Hit http://security.ubuntu.com jaunty-security/universe Packages    
Hit http://gb.archive.ubuntu.com jaunty/main Packages               
Hit http://gb.archive.ubuntu.com jaunty/restricted Packages
Hit http://gb.archive.ubuntu.com jaunty/main Sources
Hit http://security.ubuntu.com jaunty-security/universe Sources
Hit http://security.ubuntu.com jaunty-security/multiverse Packages
Hit http://gb.archive.ubuntu.com jaunty/restricted Sources
Hit http://gb.archive.ubuntu.com jaunty/universe Packages
Hit http://gb.archive.ubuntu.com jaunty/universe Sources
Hit http://gb.archive.ubuntu.com jaunty/multiverse Packages
Hit http://gb.archive.ubuntu.com jaunty/multiverse Sources
Hit http://gb.archive.ubuntu.com jaunty-updates/main Packages
Hit http://security.ubuntu.com jaunty-security/multiverse Sources
Hit http://gb.archive.ubuntu.com jaunty-updates/restricted Packages
Hit http://gb.archive.ubuntu.com jaunty-updates/main Sources
Hit http://gb.archive.ubuntu.com jaunty-updates/restricted Sources
Hit http://gb.archive.ubuntu.com jaunty-updates/universe Packages
Hit http://gb.archive.ubuntu.com jaunty-updates/universe Sources
Hit http://gb.archive.ubuntu.com jaunty-updates/multiverse Packages
Hit http://gb.archive.ubuntu.com jaunty-updates/multiverse Sources
Fetched 140kB in 3s (44.8kB/s)
Reading package lists... Done
root@ITEYE:/var/www# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apturl ekiga gnome-about gnome-desktop-data libgl1-mesa-dri libgl1-mesa-glx libglu1-mesa
  libgnome-desktop-2-11 libical0 mesa-utils
10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 9841kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Get: 1 http://gb.archive.ubuntu.com jaunty-updates/main libgl1-mesa-dri 7.4-0ubuntu3.1 [2730kB]
Get: 2 http://gb.archive.ubuntu.com jaunty-updates/main libgl1-mesa-glx 7.4-0ubuntu3.1 [114kB]
Get: 3 http://gb.archive.ubuntu.com jaunty-updates/main libglu1-mesa 7.4-0ubuntu3.1 [179kB]
Get: 4 http://gb.archive.ubuntu.com jaunty-updates/main mesa-utils 7.4-0ubuntu3.1 [44.2kB]
Get: 5 http://gb.archive.ubuntu.com jaunty-updates/main apturl 0.3.3ubuntu1.1 [18.2kB]
Get: 6 http://gb.archive.ubuntu.com jaunty-updates/main ekiga 3.2.0-0ubuntu2 [5598kB]
Get: 7 http://gb.archive.ubuntu.com jaunty-updates/main gnome-about 1:2.26.1-0ubuntu2 [156kB] 
Get: 8 http://gb.archive.ubuntu.com jaunty-updates/main gnome-desktop-data 1:2.26.1-0ubuntu2 [680kB]
Get: 9 http://gb.archive.ubuntu.com jaunty-updates/main libgnome-desktop-2-11 1:2.26.1-0ubuntu2 [101kB]
Get: 10 http://gb.archive.ubuntu.com jaunty-updates/main libical0 0.43-2ubuntu1 [220kB]       
Fetched 9841kB in 7s (1311kB/s)                                                               
(Reading database ... 113825 files and directories currently installed.)
Preparing to replace libgl1-mesa-dri 7.4-0ubuntu3 (using .../libgl1-mesa-dri_7.4-0ubuntu3.1_i386.deb) ...
Unpacking replacement libgl1-mesa-dri ...
Preparing to replace libgl1-mesa-glx 7.4-0ubuntu3 (using .../libgl1-mesa-glx_7.4-0ubuntu3.1_i386.deb) ...
Unpacking replacement libgl1-mesa-glx ...
Preparing to replace libglu1-mesa 7.4-0ubuntu3 (using .../libglu1-mesa_7.4-0ubuntu3.1_i386.deb) ...
Unpacking replacement libglu1-mesa ...
Preparing to replace mesa-utils 7.4-0ubuntu3 (using .../mesa-utils_7.4-0ubuntu3.1_i386.deb) ...
Unpacking replacement mesa-utils ...
Preparing to replace apturl 0.3.3ubuntu1 (using .../apturl_0.3.3ubuntu1.1_all.deb) ...
Unpacking replacement apturl ...
Preparing to replace ekiga 3.2.0-0ubuntu1 (using .../ekiga_3.2.0-0ubuntu2_i386.deb) ...
Unpacking replacement ekiga ...
Preparing to replace gnome-about 1:2.26.1-0ubuntu1 (using .../gnome-about_1%3a2.26.1-0ubuntu2_all.deb) ...
Unpacking replacement gnome-about ...
Preparing to replace gnome-desktop-data 1:2.26.1-0ubuntu1 (using .../gnome-desktop-data_1%3a2.26.1-0ubuntu2_all.deb) ...
Unpacking replacement gnome-desktop-data ...
Preparing to replace libgnome-desktop-2-11 1:2.26.1-0ubuntu1 (using .../libgnome-desktop-2-11_1%3a2.26.1-0ubuntu2_i386.deb) ...
Unpacking replacement libgnome-desktop-2-11 ...
Preparing to replace libical0 0.43-2 (using .../libical0_0.43-2ubuntu1_i386.deb) ...
Unpacking replacement libical0 ...
Processing triggers for man-db ...
Setting up libgl1-mesa-glx (7.4-0ubuntu3.1) ...
 
Setting up libgl1-mesa-dri (7.4-0ubuntu3.1) ...
Setting up libglu1-mesa (7.4-0ubuntu3.1) ...
 
Setting up mesa-utils (7.4-0ubuntu3.1) ...
Setting up apturl (0.3.3ubuntu1.1) ...
 
Setting up ekiga (3.2.0-0ubuntu2) ...
 
Setting up gnome-desktop-data (1:2.26.1-0ubuntu2) ...
 
Setting up gnome-about (1:2.26.1-0ubuntu2) ...
Setting up libgnome-desktop-2-11 (1:2.26.1-0ubuntu2) ...
 
Setting up libical0 (0.43-2ubuntu1) ...
 
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@ITEYE:/var/www# 
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:

Select allOpen in new window

 

by: fmarzoccaPosted on 2009-05-14 at 03:54:56ID: 24383457

Ok. They were graphical packages and now they are upgraded.

Coming back to your problem, as it started aftwer lilac installation, maybe it could be a good idea to remove lilac for awhile. Concerning dependencies I had a look at the link you have posted, and it looks like you should have all those dependecies already in ubuntu. What do you have installed?
Do you have enabled sites in /etc/apache2/sites-enabled ?

 

by: moosecaboosePosted on 2009-05-14 at 04:03:38ID: 24383518

Do you have enabled sites in /etc/apache2/sites-enabled ?
 - Yes it's enabled.

Only software I've installed is
Nagios
NagiosPlugins
Nagvis
NagiosQL
NDOUtilities
Phpmyadmin
Mysql
Apache2
+ dependencies

All of that was fine. The last thing I changed was php.ini. The line 'MagicQuotes = Off' (from on) but that's since been changed back.

 

by: moosecaboosePosted on 2009-05-14 at 04:04:43ID: 24383521

Would the fact that HTML websites are appearing and PHP isn't mean there's simply a line in http.conf or somewhere linking the base php files?

 

by: moosecaboosePosted on 2009-05-14 at 04:10:53ID: 24383562

I didn't get as far as installing lilac. I extracted the files to the /var/www folder (http root) and pulled them up in the browser and then done the reload when I broke everything php.

 

by: fmarzoccaPosted on 2009-05-14 at 04:58:19ID: 24383844

Do you have a php5.conf file in /etc/apache2/mods-enabled ?

 

by: moosecaboosePosted on 2009-05-14 at 05:14:59ID: 24383986

yes I do

<IfModule mod_php5.c>
  AddType application/x-httpd-php .php .phtml .php3
  AddType application/x-httpd-php-source .phps
</IfModule>

                                              
1:
2:
3:
4:

Select allOpen in new window

 

by: fmarzoccaPosted on 2009-05-14 at 05:19:43ID: 24384035

Sorry, wrong file. I was intended to write this one:

/etc/apache2/mods-enabled/php5.load

 

by: moosecaboosePosted on 2009-05-14 at 05:32:20ID: 24384141

Yes


itdept@ITEYE:/etc/apache2/mods-enabled$ ls -l
total 0
lrwxrwxrwx 1 root root 28 2009-05-12 17:46 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 2009-05-12 17:46 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 2009-05-12 17:46 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 2009-05-12 17:46 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 2009-05-12 17:46 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 2009-05-12 17:46 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 2009-05-12 17:46 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 2009-05-12 17:46 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 2009-05-12 17:46 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 2009-05-12 17:46 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 26 2009-05-12 17:50 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 30 2009-05-12 17:46 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 2009-05-12 17:46 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 2009-05-12 17:46 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 2009-05-12 17:46 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 2009-05-12 17:46 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 27 2009-05-12 17:46 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 2009-05-12 17:46 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 2009-05-12 17:46 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 2009-05-12 17:46 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 27 2009-05-12 17:50 php5.conf -> ../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 2009-05-12 17:50 php5.load -> ../mods-available/php5.load
lrwxrwxrwx 1 root root 31 2009-05-12 17:46 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 2009-05-12 17:46 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 29 2009-05-12 17:46 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 2009-05-12 17:46 status.load -> ../mods-available/status.load
itdept@ITEYE:/etc/apache2/mods-enabled$

#php5.load
 
 
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so

                                              
1:
2:
3:
4:

Select allOpen in new window

 

by: moosecaboosePosted on 2009-05-14 at 05:36:09ID: 24384184

libphp5.so exists also

 

by: fmarzoccaPosted on 2009-05-14 at 05:41:49ID: 24384234

So, just try typing:

sudo apache2ctl restart

Create an index.php file in your webserver root directory with this contents:

<?php phpinfo(); ?>

then point your browser to the file and report any error message here. If there is an error, you can check /var/log/apache2/error.log for better understanding.

 

by: moosecaboosePosted on 2009-05-14 at 05:47:12ID: 24384283

Hmmm.. Well now I'm not even able to pull up .html files let alone .php

 

by: moosecaboosePosted on 2009-05-14 at 05:48:37ID: 24384294

Ah I see.. This may be helpful in diagnosis.

[Tue May 12 17:46:56 2009] [notice] Apache/2.2.11 (Ubuntu) configured -- resuming normal operations
[Tue May 12 17:50:31 2009] [notice] caught SIGTERM, shutting down
[Tue May 12 17:50:37 2009] [notice] Apache/2.2.11 (Ubuntu) configured -- resuming normal operations
[Tue May 12 17:50:41 2009] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue May 12 17:50:41 2009] [notice] Apache/2.2.11 (Ubuntu) configured -- resuming normal operations
[Tue May 12 17:52:23 2009] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue May 12 17:52:23 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Tue May 12 17:52:34 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Tue May 12 17:52:37 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Tue May 12 17:56:00 2009] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue May 12 17:56:01 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Tue May 12 17:58:25 2009] [error] [client 127.0.0.1] File does not exist: /var/www/nagios
[Tue May 12 18:12:01 2009] [notice] Graceful restart requested, doing restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue May 12 18:12:01 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Tue May 12 18:15:51 2009] [notice] Graceful restart requested, doing restart
[Tue May 12 18:15:51 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Wed May 13 10:31:59 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /usr/local/nagios/share/images/logos/rack_linux.png, referer: http://localhost/nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail
[Wed May 13 10:32:01 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /usr/local/nagios/share/images/logos/rack_linux.png, referer: http://localhost/nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail
[Wed May 13 10:33:02 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /usr/local/nagios/share/images/logos/rack_linux.png, referer: http://localhost/nagios/cgi-bin/statusmap.cgi?host=all
[Wed May 13 11:02:32 2009] [error] [client 172.16.0.35] File does not exist: /var/www/itassistant
[Wed May 13 13:08:37 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico
[Wed May 13 13:22:00 2009] [error] [client 127.0.0.1] script '/usr/local/nagios/share/nagvis/nagvis/config.php' not found or unable to stat
[Wed May 13 13:22:23 2009] [error] [client 127.0.0.1] script '/usr/local/nagios/share/nagvis/nagvis/config.php' not found or unable to stat
[Wed May 13 13:46:48 2009] [error] [client 127.0.0.1] script '/usr/local/nagios/share/nagvis/nagvis/config.php' not found or unable to stat
[Wed May 13 14:34:55 2009] [error] [client 127.0.0.1] File does not exist: /var/www/nagvis
[Wed May 13 14:39:31 2009] [error] [client 127.0.0.1] File does not exist: /usr/local/nagios/share/nagsql
[Wed May 13 14:39:37 2009] [error] [client 127.0.0.1] File does not exist: /usr/local/nagios/share/nagiosql
[Wed May 13 14:39:40 2009] [error] [client 127.0.0.1] File does not exist: /var/www/nagiosql
[Wed May 13 14:42:53 2009] [error] [client 172.16.0.38] File does not exist: /var/www/Nagios
[Wed May 13 14:42:54 2009] [error] [client 172.16.0.38] File does not exist: /var/www/favicon.ico
[Wed May 13 14:42:57 2009] [error] [client 172.16.0.38] File does not exist: /var/www/favicon.ico
[Wed May 13 14:43:16 2009] [error] [client 172.16.0.38] File does not exist: /usr/local/nagios/share/Nagvis
[Wed May 13 15:10:48 2009] [error] [client 172.16.25.52] File does not exist: /var/www/favicon.ico
[Wed May 13 16:07:55 2009] [error] [client 172.16.0.35] File does not exist: /var/www/itassistant
[Wed May 13 16:58:03 2009] [notice] Graceful restart requested, doing restart
[Wed May 13 16:58:04 2009] [notice] Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch configured -- resuming normal operations
[Thu May 14 10:09:29 2009] [error] [client 127.0.0.1] File does not exist: /var/www/lilcal
php: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
php: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
php: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
php: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
[Thu May 14 10:18:42 2009] [notice] Graceful restart requested, doing restart
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_unregister_driver
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce
/usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/pdo_mysql.so: undefined symbol: php_pdo_get_dbh_ce

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:

Select allOpen in new window

 

by: fmarzoccaPosted on 2009-05-14 at 05:52:35ID: 24384333

Nagios installation is completely messed-up. I cannot be of any more help from here.

 

by: moosecaboosePosted on 2009-05-14 at 05:55:25ID: 24384364

lol. No worries mate. Will build a new machine for it. I appreciate the help. Just googled that and found lots of bug reports not worth going into.

Thanks!

 

by: moosecaboosePosted on 2009-05-14 at 08:21:08ID: 31581361

Thanks for the help. Reinstalled already and almost back where I was just without the history and what-not, so thanks!!

 

by: TejnetPosted on 2010-04-26 at 02:02:01ID: 32130871

kindly help
i have install nagvis but in webinterface system is showing this below eorro:

The request URL /usr/local/nagios/share/nagvis-1.4.4/index.php file not found on thi server

pl'z help me out

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...