Apache Server configuration support - Migration issues

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > April 2007 > Migration issues





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Migration issues
jimcoyle1

2007-04-21, 1:22 am

I just bought a new Mac and migrated all my files to it. Since my Mac
is an Intel box, my former Server Logistics Complete Apache2 binary no
longer works.

I've successfully installed Apache2.2.4 and have moved all my htdocs
and config files over to the new build. Of course, this is where
errors started.

After having module issues and ultimately disabling all the modules, I
seemed to successfully get Apache to start, but when I try to access
my site, I consistently get an error stating I don't have permission
to access to (/) (I assume this means root). Have I disabled some
essential module or is there something else in the httpd.conf file
that needs to be enabled or disable. Or does this problem lie
elsewhere? Oh, and the configtest comes up clean.

My Apache build is in a new location. Formerly it was in /Library/
Apache2. Now it is in /apache2.

I'd appreciate any thoughts.

Jim

Davide Bianchi

2007-04-21, 1:22 am

On 2007-04-21, jimcoyle1 <jamescoyle1@mac.com> wrote:
> my site, I consistently get an error stating I don't have permission
> to access to (/) (I assume this means root).


The DocumentRoot I suppose.

> essential module or is there something else in the httpd.conf file


Check the permissions on the directories/files you are trying to
access, apache (or the user that it runs as) need read permissions
on the files and read/execute permissions on the directories.

Davide

--
"Did you know God had a plan for you?"
"Does it involve a high-powered rifle and a belltower?"
jimcoyle1

2007-04-21, 7:19 pm

On Apr 21, 2:01 am, Davide Bianchi <davideyeahs...@onlyforfun.net>
wrote:
> On 2007-04-21, jimcoyle1 <jamescoy...@mac.com> wrote:
>
>
> The DocumentRoot I suppose.
>
>
> Check the permissions on the directories/files you are trying to
> access, apache (or the user that it runs as) need read permissions
> on the files and read/execute permissions on the directories.
>
> Davide
>
> --
> "Did you know God had a plan for you?"
> "Does it involve a high-powered rifle and a belltower?"



Thanks for your suggestions. After making some adjustments, I at least
got the Apache page (surprised to see this page), so I knew something
was working. Now things weirder. I discovered that I had a startup
item in the Library for the binary version of Apache2 which I had had.
I've deleted that and now Apache starts up okay, but my web page
doesn't come up. According to the activity log in Safari, here's the
problem:

http://www2.heartfullofdirt.com:8111/ -= can't connect to host
http://www.heartfullofdirt.com/ 0.5kb

Because of firewall issues, in the past I've had to do redirects to
the www2 URL using port 8111. My DNS update software is working fine,
but for some reason, the redirect is not working. I checked my old
httpd.conf file to see if there was something I've forgotten, but it
doesn't appear that I have.

Also, when I start up apache via sudo apachectl -k start, this is what
the terminal says:

James-Coyles-iMac:/apache2/bin jamescoy$ sudo apachectl -k start
Password:
usage: /usr/sbin/apachectl (start|stop|restart|fullstatus|status|
graceful|configtest|help)

start - start httpd
stop - stop httpd
restart - restart httpd if running by sending a SIGHUP or start if
not running
fullstatus - dump a full status screen; requires lynx and mod_status
enabled
status - dump a short status screen; requires lynx and mod_status
enabled
graceful - do a graceful restart by sending a SIGUSR1 or start if
not running
configtest - do a configuration syntax test
help - this screen

Processing config directory: /private/etc/httpd/users/*.conf
/usr/sbin/apachectl start: httpd started


Is Apache starting from this config in /private rather than using the
one in apache2/conf? I'm wondering if remnants of my old binary
installation are causing the problems here.

Thanks again for any suggestions.

Jim


jimcoyle1

2007-04-21, 7:19 pm

On Apr 21, 2:01 am, Davide Bianchi <davideyeahs...@onlyforfun.net>
wrote:
> On 2007-04-21, jimcoyle1 <jamescoy...@mac.com> wrote:
>
>
> The DocumentRoot I suppose.
>
>
> Check the permissions on the directories/files you are trying to
> access, apache (or the user that it runs as) need read permissions
> on the files and read/execute permissions on the directories.
>
> Davide
>
> --
> "Did you know God had a plan for you?"
> "Does it involve a high-powered rifle and a belltower?"



Thanks for your suggestions. After making some adjustments, I at least
got the Apache page (surprised to see this page), so I knew something
was working. Now things weirder. I discovered that I had a startup
item in the Library for the binary version of Apache2 which I had had.
I've deleted that and now Apache starts up okay, but my web page
doesn't come up. According to the activity log in Safari, here's the
problem:

http://www2.heartfullofdirt.com:8111/ -= can't connect to host
http://www.heartfullofdirt.com/ 0.5kb

Because of firewall issues, in the past I've had to do redirects to
the www2 URL using port 8111. My DNS update software is working fine,
but for some reason, the redirect is not working. I checked my old
httpd.conf file to see if there was something I've forgotten, but it
doesn't appear that I have.

Also, when I start up apache via sudo apachectl -k start, this is what
the terminal says:

James-Coyles-iMac:/apache2/bin jamescoy$ sudo apachectl -k start
Password:
usage: /usr/sbin/apachectl (start|stop|restart|fullstatus|status|
graceful|configtest|help)

start - start httpd
stop - stop httpd
restart - restart httpd if running by sending a SIGHUP or start if
not running
fullstatus - dump a full status screen; requires lynx and mod_status
enabled
status - dump a short status screen; requires lynx and mod_status
enabled
graceful - do a graceful restart by sending a SIGUSR1 or start if
not running
configtest - do a configuration syntax test
help - this screen

Processing config directory: /private/etc/httpd/users/*.conf
/usr/sbin/apachectl start: httpd started


Is Apache starting from this config in /private rather than using the
one in apache2/conf? I'm wondering if remnants of my old binary
installation are causing the problems here.

Thanks again for any suggestions.

Jim


Davide Bianchi

2007-04-22, 7:18 am

On 2007-04-21, jimcoyle1 <jamescoyle1@mac.com> wrote:
> http://www2.heartfullofdirt.com:8111/ -= can't connect to host
> http://www.heartfullofdirt.com/ 0.5kb


So your Apache is not listening to port 8111.

> Also, when I start up apache via sudo apachectl -k start, this is what


apachectl doesn't use the '-k start', just 'start'. the -k bit is
used when you call the httpd executable directly.

> James-Coyles-iMac:/apache2/bin jamescoy$ sudo apachectl -k start
> Password:
> usage: /usr/sbin/apachectl (start|stop|restart|fullstatus|status|
> graceful|configtest|help)


Yes, exactly. Meaning: "I don't know what you want, this is what I do"...

> /usr/sbin/apachectl start: httpd started


Ok, so now is started.

> Is Apache starting from this config in /private rather than using the
> one in apache2/conf?


Could be. httpd -V (or how is called your exectuable) should tell you
which one is used.

Davide

--
You've got the brain of a four-year-old boy, and I'll bet he was
glad to get rid of it.
-- Julius Henry "Groucho" Marx (http://en.wikiquote.org/wiki/Groucho_Marx)
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com