public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  apache2 without DNS?
@ 2006-03-30  2:21 James
  2006-03-30  6:10 ` Martins Steinbergs
  2006-03-30 22:09 ` Michael Stewart (vericgar)
  0 siblings, 2 replies; 6+ messages in thread
From: James @ 2006-03-30  2:21 UTC (permalink / raw
  To: gentoo-user

Hello,

I run a minimalistic, closed, (not connected to the internet), network for
machines. This network does not run any DNS, and it works beautifully, very low
in bandwidth, all static IPs. I do not wish to argue about the merits of not
running DNS on a network, it's a given, out of my control!

I installed Jffnms on a server, along with the other required software:
apache2, php4, postgresql etc etc as describe in this document:

http://www.gentoo.org/doc/en/jffnms.xml

I can find the main setup pages in the
/var/www/localhost/htdocs/htdocs/admin/ dir from the command line:
menu.php                 sat_session.inc.php
calendar.php      menu_frame.php           satellite.php
color_select.php  menu_interface_list.php  setup.php

http://192.168.2.9/  pops up the usually apache2 default page....

But I cannot get to the 
/var/www/localhost/htdocs/htdocs/admin/setup.php page, from a web browser
running on neither the server, nor anywhere on the network. The default
apache2 page does pop up on a web browser from any machine on
the network, including the apache2 server.

This is probably really simple. Bear in mind that I'm far, far
from a whiz with apache et.al. being more of a 'hardware type'.

are the repeated htdocs/htdocs dirs the problem?

What's wrong or what do I need to tryto get this to work.?


James



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user]  apache2 without DNS?
  2006-03-30  2:21 [gentoo-user] apache2 without DNS? James
@ 2006-03-30  6:10 ` Martins Steinbergs
  2006-03-30 22:09 ` Michael Stewart (vericgar)
  1 sibling, 0 replies; 6+ messages in thread
From: Martins Steinbergs @ 2006-03-30  6:10 UTC (permalink / raw
  To: gentoo-user

On Thursday 30 March 2006 05:21, James wrote:
> Hello,
>
> I run a minimalistic, closed, (not connected to the internet), network for
> machines. This network does not run any DNS, and it works beautifully, very
> low in bandwidth, all static IPs. I do not wish to argue about the merits
> of not running DNS on a network, it's a given, out of my control!
>
> I installed Jffnms on a server, along with the other required software:
> apache2, php4, postgresql etc etc as describe in this document:
>
> http://www.gentoo.org/doc/en/jffnms.xml
>
> I can find the main setup pages in the
> /var/www/localhost/htdocs/htdocs/admin/ dir from the command line:
> menu.php                 sat_session.inc.php
> calendar.php      menu_frame.php           satellite.php
> color_select.php  menu_interface_list.php  setup.php
>
> http://192.168.2.9/  pops up the usually apache2 default page....
>
> But I cannot get to the
> /var/www/localhost/htdocs/htdocs/admin/setup.php page, from a web browser
> running on neither the server, nor anywhere on the network. The default
> apache2 page does pop up on a web browser from any machine on
> the network, including the apache2 server.
>
> This is probably really simple. Bear in mind that I'm far, far
> from a whiz with apache et.al. being more of a 'hardware type'.
>
> are the repeated htdocs/htdocs dirs the problem?
>
> What's wrong or what do I need to tryto get this to work.?
>
>
> James

check permissions on those directories and files, if that the case, then 
change 'apache' can read, and for setup time give write access too to config 
files.


martins
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user]  apache2 without DNS?
  2006-03-30  2:21 [gentoo-user] apache2 without DNS? James
  2006-03-30  6:10 ` Martins Steinbergs
@ 2006-03-30 22:09 ` Michael Stewart (vericgar)
  2006-03-31 15:01   ` [gentoo-user] " James
                     ` (2 more replies)
  1 sibling, 3 replies; 6+ messages in thread
From: Michael Stewart (vericgar) @ 2006-03-30 22:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 885 bytes --]

James wrote:
> 
> http://192.168.2.9/  pops up the usually apache2 default page....
> 
> But I cannot get to the 
> /var/www/localhost/htdocs/htdocs/admin/setup.php page, from a web browser
> running on neither the server, nor anywhere on the network. The default
> apache2 page does pop up on a web browser from any machine on
> the network, including the apache2 server.

I may be misunderstanding your question, so please clarify if I have.

Are you looking for the URL you need to type in your browser to get to
the setup script? Assuming that you haven't changed the DocumentRoot
setting, try using http://192.168.2.9/htdocs/admin/setup.php




-- 
Michael Stewart                                     vericgar@gentoo.org
Gentoo Developer                        http://dev.gentoo.org/~vericgar

GnuPG Key ID 0x08614788 available on http://pgp.mit.edu
--


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user]  Re: apache2 without DNS?
  2006-03-30 22:09 ` Michael Stewart (vericgar)
@ 2006-03-31 15:01   ` James
  2006-03-31 15:25   ` James
  2006-03-31 20:08   ` [gentoo-user] MOSTLY FIXED: " James
  2 siblings, 0 replies; 6+ messages in thread
From: James @ 2006-03-31 15:01 UTC (permalink / raw
  To: gentoo-user

Michael Stewart (vericgar <vericgar <at> gentoo.org> writes:


> > http://192.168.2.9/  pops up the usually apache2 default page....
> > 
> > But I cannot get to the 
> > /var/www/localhost/htdocs/htdocs/admin/setup.php page, from a web browser
> > running on neither the server, nor anywhere on the network. The default
> > apache2 page does pop up on a web browser from any machine on
> > the network, including the apache2 server.

> I may be misunderstanding your question, so please clarify if I have.

> Are you looking for the URL you need to type in your browser to get to
> the setup script? Assuming that you haven't changed the DocumentRoot
> setting, try using http://192.168.2.9/htdocs/admin/setup.php


Nothing but the default apache2 web page popped up in the beginning.
The I went and changed all of the files and directory permissions to 777.
Now I can get this dir page:

http://192.168.2.9/htdocs/admin/
and this one:
http://192.168.2.9/htdocs/admin/adm/test.php
the only other page in dir 'http://192.168.2.9/htdocs/admin/adm/'
that shows up, contains this error message:

Fatal error: Call to undefined function: html() in
/opt/jffnms/htdocs/admin/adm/structures.php on line 701

I did not change the 'DocumentRoot' but, which file to I check to
see if installing JFFNMS altered something erroneously?

I followed this guide:
http://www.gentoo.org/doc/en/jffnms.xml

So far the only error I have 'flushed out' is
# psql template1 postgres <
/usr/portage/net-analyzer/jffnms/files/postgresql_db_tables
should be:
# psql template1 postgres <
/usr/portage/net-analyzer/jffnms/files/postgresql_db_table

Which file(s) do I need to check to ensure the DocumentRoot is correct?
I cannot locate that setting in either httpd.conf nor apache2.conf.


James





-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user]  Re: apache2 without DNS?
  2006-03-30 22:09 ` Michael Stewart (vericgar)
  2006-03-31 15:01   ` [gentoo-user] " James
@ 2006-03-31 15:25   ` James
  2006-03-31 20:08   ` [gentoo-user] MOSTLY FIXED: " James
  2 siblings, 0 replies; 6+ messages in thread
From: James @ 2006-03-31 15:25 UTC (permalink / raw
  To: gentoo-user

Michael Stewart (vericgar <vericgar <at> gentoo.org> writes:


> Are you looking for the URL you need to type in your browser to get to
> the setup script? Assuming that you haven't changed the DocumentRoot
> setting, try using http://192.168.2.9/htdocs/admin/setup.php

I found the error_log file  so I'm running:
tail -f /var/log/apache2/error_log

When I attempt to access this URL, I get this message:

[Fri Mar 31 06:20:44 2006] [error] [client 192.168.2.23] File does not exist:
/var/www/localhost/htdocs/jffnms, referer:
http://192.168.2.9/htdocs/admin/tools.php/admin/setup.php

maybe a botched installation of jffnms, as the guide is new and I'm 
far from confident with apache2?
ideas?

James

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-user]  MOSTLY FIXED: Re: apache2 without DNS?
  2006-03-30 22:09 ` Michael Stewart (vericgar)
  2006-03-31 15:01   ` [gentoo-user] " James
  2006-03-31 15:25   ` James
@ 2006-03-31 20:08   ` James
  2 siblings, 0 replies; 6+ messages in thread
From: James @ 2006-03-31 20:08 UTC (permalink / raw
  To: gentoo-user

Michael Stewart (vericgar <vericgar <at> gentoo.org> writes:


> Are you looking for the URL you need to type in your browser to get to
> the setup script? Assuming that you haven't changed the DocumentRoot
> setting, try using http://192.168.2.9/htdocs/admin/setup.php


Well, I tried the installation from fresh and now I can get to the 
setup.php page, but I still have a few questions.

During the installation I made these changes, which I'll post to bugzilla
about the document's installation instructions:

As user postgres, following the install guide, I issued this command:
 initdb -D /var/lib/postgresql/data

which failed:
initdb: could not create directory "/var/lib/postgresql": Permission denied

I had to 'chmod 777 /var/lib' to allow the  installation to progress.

Is this OK? a security/problem ?

Then it said:

The files belonging to this database system will be owned by user
"postgres".
This user must also own the server process.

Which 'server process' is it referring to and what does this mean,
exactly? What else, if anything do I need to do?


The message then ended with:
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the -A option the
next time you run initdb.

Success. You can now start the database server using:

    postmaster -D /var/lib/postgresql/data
or
    pg_ctl -D /var/lib/postgresql/data -l logfile start


I never did either of these, unlike last time, and the installation 
completed with only one more modification. However, I'm not sure
if I need to add these to some config  file somewhere? Or is the
postgres startup file ok at this point? I guess I also need to
figure out the authentication using the 'pg_hba.conf' file?


Then I just exited from user postgres and completed the installation.

Further on in the installation:

This failed:
'psql template1 postgres <
/usr/portage/net-analyzer/jffnms/files/postgresql_db_tables'

so I had to use:

'psql template1 postgres <
/usr/portage/net-analyzer/jffnms/files/postgresql_db_table'



that's it, but those above questions are still in need of an answer.

thanks,
James



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-03-31 20:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-30  2:21 [gentoo-user] apache2 without DNS? James
2006-03-30  6:10 ` Martins Steinbergs
2006-03-30 22:09 ` Michael Stewart (vericgar)
2006-03-31 15:01   ` [gentoo-user] " James
2006-03-31 15:25   ` James
2006-03-31 20:08   ` [gentoo-user] MOSTLY FIXED: " James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox