Author Topic: Server for Maverick - localhost://8080  (Read 940 times)

0 Members and 1 Guest are viewing this topic.

Offline olde north church

  • Hero Member
  • ****
  • Posts: 5,136
Server for Maverick - localhost://8080
« on: January 31, 2014, 09:40:08 AM »
I've tried downloading apache tomcat 7.0 to run on my new macbook and I keep getting an error message related to permissions. 
Why?  Well, because I'm a bastard, that's why.

Offline Oceander

  • Technical
  • Hero Member
  • ****
  • Posts: 42,719
  • #NeverTrumpForever
Re: Server for Maverick - localhost://8080
« Reply #1 on: January 31, 2014, 11:50:40 AM »
Are you running as superuser (i.e., "sudo")? 

Offline olde north church

  • Hero Member
  • ****
  • Posts: 5,136
Re: Server for Maverick - localhost://8080
« Reply #2 on: January 31, 2014, 12:58:33 PM »
Are you running as superuser (i.e., "sudo")?

I should be.  I'm the only user on the system.  I never had to previously.  Didn't have to do anything except set up a password in one of the documents and use tomcat/foldername/foldername/bin/startup.sh.  My previous version of tomcat was 5, I believe.
They changed something with Maverick.  They don't even have a default localhost.
Why?  Well, because I'm a bastard, that's why.

Offline Oceander

  • Technical
  • Hero Member
  • ****
  • Posts: 42,719
  • #NeverTrumpForever
Re: Server for Maverick - localhost://8080
« Reply #3 on: January 31, 2014, 09:01:12 PM »
I should be.  I'm the only user on the system.  I never had to previously.  Didn't have to do anything except set up a password in one of the documents and use tomcat/foldername/foldername/bin/startup.sh.  My previous version of tomcat was 5, I believe.
They changed something with Maverick.  They don't even have a default localhost.


I don't know a lot about the mac OS, but I do know that it's a UNIX variant.  On a UNIX-based OS the user usually runs as something less than the superuser (sudo) - this is a security matter, and one of the big edges UNIX-based systems have over windows-based systems.

In other words, you probably wouldn't be the superuser by default but would have to affirmatively log in as the superuser, or use the "sudo" commands.

You might also need to reset your HOSTS file.  I googled around a bit, and some folks who upgraded to Maverick had problems losing contact with localhost and the ones I found resolved this by renaming their old HOSTS file something else, then creating a new one with just the default values in it.

You may also have to activate the superuser.  Again, I don't know mac, but I did come across this article:  https://discussions.apple.com/message/24182626#24182626  which mentions that in Maverick the superuser is initially disabled.

Offline Chieftain

  • AMF, YOYO
  • Hero Member
  • ****
  • Posts: 9,633
  • Your what hurts??
Re: Server for Maverick - localhost://8080
« Reply #4 on: January 31, 2014, 09:12:39 PM »
Ya know, I remember when a 5" floppy disk was a very big deal because it replaced the 12" floppies and held more data.  I remember when the first 80 megabyte hard drive was revolutionary.

I hate you all.

 :smokin:

Offline Oceander

  • Technical
  • Hero Member
  • ****
  • Posts: 42,719
  • #NeverTrumpForever
Re: Server for Maverick - localhost://8080
« Reply #5 on: January 31, 2014, 09:17:43 PM »
Ya know, I remember when a 5" floppy disk was a very big deal because it replaced the 12" floppies and held more data.  I remember when the first 80 megabyte hard drive was revolutionary.

I hate you all.

 :smokin:


I remember when my Atari 800 came with only 48k of memory.  I also remember picking up some 12" floppies at a computer geek convention in high school for my comp sci prof, who needed them for some of his old machines.

Offline Rapunzel

  • Hero Member
  • ****
  • Posts: 71,719
Re: Server for Maverick - localhost://8080
« Reply #6 on: January 31, 2014, 10:07:42 PM »
Ya know, I remember when a 5" floppy disk was a very big deal because it replaced the 12" floppies and held more data.  I remember when the first 80 megabyte hard drive was revolutionary.

I hate you all.

 :smokin:

I remember all that. plus having to know DOS, and going to fix dinner while I waiting for a photograph to download.  Also remember 45's and 8-tracks.....
“The time is now near at hand which must probably determine, whether Americans are to be, Freemen, or Slaves.” G Washington July 2, 1776

Offline olde north church

  • Hero Member
  • ****
  • Posts: 5,136
Re: Server for Maverick - localhost://8080
« Reply #7 on: January 31, 2014, 10:14:53 PM »
yeah, yeah, yeah, and i remember chasing a hoop down the street with a stick  :tongue2:
Why?  Well, because I'm a bastard, that's why.

Offline Rapunzel

  • Hero Member
  • ****
  • Posts: 71,719
Re: Server for Maverick - localhost://8080
« Reply #8 on: January 31, 2014, 10:20:23 PM »
yeah, yeah, yeah, and i remember chasing a hoop down the street with a stick  :tongue2:


Was this before or after hoop skirts.
“The time is now near at hand which must probably determine, whether Americans are to be, Freemen, or Slaves.” G Washington July 2, 1776

Offline olde north church

  • Hero Member
  • ****
  • Posts: 5,136
Re: Server for Maverick - localhost://8080
« Reply #9 on: February 01, 2014, 12:33:10 AM »

Was this before or after hoop skirts.

and the velocipede craze
Why?  Well, because I'm a bastard, that's why.

Offline Oceander

  • Technical
  • Hero Member
  • ****
  • Posts: 42,719
  • #NeverTrumpForever
Re: Server for Maverick - localhost://8080
« Reply #10 on: February 01, 2014, 12:36:27 AM »
and the velocipede craze

Any progress on the original question?

Offline olde north church

  • Hero Member
  • ****
  • Posts: 5,136
Re: Server for Maverick - localhost://8080
« Reply #11 on: February 01, 2014, 12:48:15 AM »
Any progress on the original question?

nada

the app store has a maverick server for $20 but the reviews aren't too great
i could check through a unix write up on setting up a server but my head's not too much into it.  i just enjoy designing web sites for my own pleasure, like art i guess and having a server makes it easier.
Why?  Well, because I'm a bastard, that's why.

Offline Oceander

  • Technical
  • Hero Member
  • ****
  • Posts: 42,719
  • #NeverTrumpForever
Re: Server for Maverick - localhost://8080
« Reply #12 on: February 01, 2014, 09:56:48 AM »
nada

the app store has a maverick server for $20 but the reviews aren't too great
i could check through a unix write up on setting up a server but my head's not too much into it.  i just enjoy designing web sites for my own pleasure, like art i guess and having a server makes it easier.


I think there are a number of how-tos and DIYs out there about setting up apache and tomcat on Maverick.  For example, here's a very, very simple one:  http://rptwsthi.blogspot.com/2013/07/how-to-install-tomcat-on-your-mac-osx.html (although I suspect you've already tried the obvious steps).  There's another one, which is a little more detailed, here: http://tutorialforlinux.com/2014/01/10/how-to-install-apache-tomcat-7-on-mac-10-9-mavericks-os-x-easy-visual-guide/

Do you know how to use a command console shell instead of a graphic interface?  The control is finer grained when using a console shell, so you might try that.  For example, to make sure commands are run as the superuser they should be prefixed with "sudo" (without the quotation marks) in a shell.

Also, did you upgrade to Maverick from the previous OS, or is this a clean install?  If you upgraded, it's possible that you need to uninstall/remove all of the components you were using prior to the upgrade and then do a clean install of everything.

Lastly, while I can't really see the connection between permissions and Java, you may need to install Java because from what I've read it seems that Maverick no longer comes with Java installed by default.
« Last Edit: February 01, 2014, 09:57:42 AM by Oceander »

Offline Oceander

  • Technical
  • Hero Member
  • ****
  • Posts: 42,719
  • #NeverTrumpForever
Re: Server for Maverick - localhost://8080
« Reply #13 on: February 01, 2014, 09:59:27 AM »
nada

the app store has a maverick server for $20 but the reviews aren't too great
i could check through a unix write up on setting up a server but my head's not too much into it.  i just enjoy designing web sites for my own pleasure, like art i guess and having a server makes it easier.

Then again, you could take the easy route that I took and just set up an old computer to act as your own private server; since I run PC, I set up an old desktop I bought for $50 to be my home server - it doesn't get exposed to the internet ever - and stuffed it full of hard drives so I could use it as a picture server as well.

Offline olde north church

  • Hero Member
  • ****
  • Posts: 5,136
Re: Server for Maverick - localhost://8080
« Reply #14 on: February 01, 2014, 10:50:37 AM »
yes, they retained "terminal" so I can still use a unix command line.
i had a unix reference book but tossed it a few months after my brain issues.  my reading isn't what it used to be, well, comprehension is fine, retention beyond a page ain't worth jack. 
anyway, i remember(ed) there is a document in the tomcat folder where you set up the password, maybe a line about admin in the bin folder(?), set one, save it, then run terminal (unix) through the various folders and run your localhost.  problem is, that was tomcat 4 or 5, we're up to build 7 now with 8 in an alpha stage.
i never did the java apps(applets), PHP or other major development apps, didn't even use the WYSIWYG stuff, all hard coded through text edit.
just wanted to do some stuff with html5 and play around.  it's good therapeutatically.
« Last Edit: February 01, 2014, 10:51:36 AM by olde north church »
Why?  Well, because I'm a bastard, that's why.

Offline Oceander

  • Technical
  • Hero Member
  • ****
  • Posts: 42,719
  • #NeverTrumpForever
Re: Server for Maverick - localhost://8080
« Reply #15 on: February 01, 2014, 06:04:14 PM »
yes, they retained "terminal" so I can still use a unix command line.
i had a unix reference book but tossed it a few months after my brain issues.  my reading isn't what it used to be, well, comprehension is fine, retention beyond a page ain't worth jack. 
anyway, i remember(ed) there is a document in the tomcat folder where you set up the password, maybe a line about admin in the bin folder(?), set one, save it, then run terminal (unix) through the various folders and run your localhost.  problem is, that was tomcat 4 or 5, we're up to build 7 now with 8 in an alpha stage.
i never did the java apps(applets), PHP or other major development apps, didn't even use the WYSIWYG stuff, all hard coded through text edit.
just wanted to do some stuff with html5 and play around.  it's good therapeutatically.


It is fun; that was partly why I set up my own server on that cheapo desktop I bought.  I've never really played around with html5 but I should probably start learning some of the new basics.

On to Tomcat 7.  I just googled up this tutorial:  http://code.google.com/p/gbif-providertoolkit/wiki/TomcatInstallationMacOSX and it does mention setting up an admin username and password.  The tutorial was written for Tomcat 6 but it says that it's been partially tested on Tomcat 7 and the item regarding the admin username and password does say it's specifically for Tomcat 7.

For Tomcat 7 it says that you have to edit the tomcat-users.xml file by adding the line

                     <user username="admin" password="password" roles="manager-gui"/>

above the line that says </tomcat-users> and outside of any comments.  You should replace "admin" with the username you've chosen for your admin role and "password" with the password you've chosen for your admin.

The file should be located in the Tomcat configuration directory Home/conf


Offline olde north church

  • Hero Member
  • ****
  • Posts: 5,136
Re: Server for Maverick - localhost://8080
« Reply #16 on: February 01, 2014, 06:11:07 PM »
It is fun; that was partly why I set up my own server on that cheapo desktop I bought.  I've never really played around with html5 but I should probably start learning some of the new basics.

On to Tomcat 7.  I just googled up this tutorial:  http://code.google.com/p/gbif-providertoolkit/wiki/TomcatInstallationMacOSX and it does mention setting up an admin username and password.  The tutorial was written for Tomcat 6 but it says that it's been partially tested on Tomcat 7 and the item regarding the admin username and password does say it's specifically for Tomcat 7.

For Tomcat 7 it says that you have to edit the tomcat-users.xml file by adding the line

                     <user username="admin" password="password" roles="manager-gui"/>

above the line that says </tomcat-users> and outside of any comments.  You should replace "admin" with the username you've chosen for your admin role and "password" with the password you've chosen for your admin.

The file should be located in the Tomcat configuration directory Home/conf


thanks!  that's could be part of my problem, forgetting it was an xml file, and that text edit was the program to code the xml.
I'll try it out and see how it works! 
thanks so much again
Why?  Well, because I'm a bastard, that's why.

Offline Oceander

  • Technical
  • Hero Member
  • ****
  • Posts: 42,719
  • #NeverTrumpForever
Re: Server for Maverick - localhost://8080
« Reply #17 on: February 01, 2014, 06:20:21 PM »
thanks!  that's could be part of my problem, forgetting it was an xml file, and that text edit was the program to code the xml.
I'll try it out and see how it works! 
thanks so much again

I'll be keeping my fingers crossed.

Offline olde north church

  • Hero Member
  • ****
  • Posts: 5,136
Re: Server for Maverick - localhost://8080
« Reply #18 on: February 09, 2014, 08:49:11 AM »
Finally, finally found it!  Perhaps it's because it's not listed as localhost://8080 on Maverick/without tomcat.  Using bash, sudo apachectl start

enter password then

then http://127.0.0.1 in url
Why?  Well, because I'm a bastard, that's why.


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf