Go Back   The Palace Avatar Chat Community Forums. > Palace Builders Palace Users > ./Linux

./Linux The Linux forum.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-28-2009, 06:55 AM
Palace Tech
 
Join Date: May 2009
Posts: 8
Rep Power: 0
Javve is on a distinguished road
Icon3 httpd Error fix (file doesn't exist then invalid syntex)

I came across where httpd would not work saying invalid file. I spent two days trying to fix this. I finally have it fully working so for those that gave up on linux or just had to find another fix, here is the steps I took.

I am running PCLinuxOS on a 3.2 Ghz single core running 2 Gigs of ram.
Palace Server Version 4.5.1

Linux is still being used today for Palace despite the lack of support. I just did a crash course in learning linux and one reason is because you can run so much more on it using the same if not fewer resources than windows.

httpd seems to be broken as stated in usr/local/palace/bin/httpd

I downloaded and installed httpd-2.2.11.tar.gz from the apache site.
h t t p://httpd.apache.org/download.cgi

After installing it gave me a folder usr/local/apache2/bin
In that folder was httpd

I copied that to usr/local/palace/bin After renaming the origional httpd to httpd.or
then I had to go to usr/local/palace/conf/httpd-conf and remove the very first line of server type.
The second line, Port has to be changed to Listen

As of apache 2.0 it only supports privateserver so they removed that syntax from apache. So anything designed to run on an earlier apache install will have that error. They also changed Port to Listen so with those two changes, you will no longer get an invalid syntax 'ServerType' error.
Reply With Quote
  #2 (permalink)  
Old 05-28-2009, 07:03 AM
Palace Tech
 
Join Date: May 2009
Posts: 8
Rep Power: 0
Javve is on a distinguished road
My re-worked start-httpd

#!/bin/sh

instance=${1:-palace}
root=${2:-/usr/local}

$root/$instance/bin/httpd -f $root/$instance/conf/httpd.conf



-------------------------------------------------------------------
Did the above so it looked more like start-palace
Reply With Quote
  #3 (permalink)  
Old 05-28-2009, 11:32 AM
maarten's Avatar
Palace Planet Founder
 
Join Date: Oct 2002
Location: DiGiLaNd
Posts: 1,169
Rep Power: 10
maarten is on a distinguished road
Hi

Pretty sure others will tell you the same: the Apache that comes with the Palace is so old best thing is to forget it completely. Use the Apache server that comes with Linux, with the 'fileserver command you can specify the webfolder for your media. Serving media up from a website is a lot faster, broadband users this will get room pictures almost instantly and you can setup instant Palace with it as well.
__________________
Please don't ask me for help in private, use the USER QUESTIONS forum if you need help.
Reply With Quote
  #4 (permalink)  
Old 05-28-2009, 12:06 PM
Palace Tech
 
Join Date: May 2009
Posts: 8
Rep Power: 0
Javve is on a distinguished road
I did notice that media seems to load slow but that's without the httpd server even started. Unless you are able to give a little insight, I'll have to research what you are talking about and how to do it. It's all been a learning process for me.

Not sure if the httpd server would have an effect on load time beings I'm not using an instant palace, but running the server on my linux machine and have the client on my windows machine. Wouldn't copying the httpd program over to the palace directory replace the ancient palace one?
Reply With Quote
  #5 (permalink)  
Old 05-28-2009, 01:15 PM
maarten's Avatar
Palace Planet Founder
 
Join Date: Oct 2002
Location: DiGiLaNd
Posts: 1,169
Rep Power: 10
maarten is on a distinguished road
Right, not sure what the default setup is for your Linux distro but usually it comes with a fully working Apache webserver.

If it does you can use this for server Palace media, all pretty basic: In the public webfolder you create a media folder, put all your Palace media in there. Check the web address for this folder. If it is something like http://mywebaddress.com/media/ you can use the 'fileserver command in Palace to set this as the your media folder.

Not 100% sure if its

'fileserver http://mywebaddress.com/media/

or

'fileserver http://mywebaddress.com/media

I think you should have the trailing slash.

For media it makes no difference where it is as long as you point to the correct, publicly served, folder on any website. So it is easy to use another webservice as well as your own.

Instant Palace is just a web based client that gives your visitors the option to visit your Palace through your website. The only requirement for this is that this has to be served from the same server as your Palace Server. And getting instant Palace working takes a bit of tweaking. Something to look at much later perhaps when you got the basics sorted.

Anyway, personally I think getting the "real" apache server working on your Linux install will have more benefits for the future, giving you the option for a real website AND serving Palace media in the fastest way.

Ok, I hope this all makes sense, you can do a search for "serving Palace media" in the forum for more info on this topic.

Here is the original topic I posted on the subject in 2002:

Home hosters: Serve your media from a website


good luck and let us know how things went :)
__________________
Please don't ask me for help in private, use the USER QUESTIONS forum if you need help.
Reply With Quote
  #6 (permalink)  
Old 05-30-2009, 09:47 AM
Palace Tech
 
Join Date: May 2009
Posts: 8
Rep Power: 0
Javve is on a distinguished road
Well apache is running and I can see the test index.html so I just got to move the media folder. It would be great to see a place such as sourceforge take over palace as a whole. Would be great to see what could have been.

Will keep you posted on load times. Going to clear my local media folder on my user machine and compare it to what was slow before.
Reply With Quote
  #7 (permalink)  
Old 05-31-2009, 01:03 AM
Palace Tech
 
Join Date: May 2009
Posts: 8
Rep Power: 0
Javve is on a distinguished road
Things went great. Put media in my var/www/html section, tested to make sure media would load, and bam!

My pages load as fast as a simple page on a hosted server. It is the difference of heinz 57 and salsa pouring out of the jar.

Thanks for the info. Hope more people can use this info if they are having problems
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Props File-1 error ladi_n_red User Questions 4 08-08-2007 06:33 PM
winsock error 10061 brendamobley User Questions 1 01-26-2006 09:15 AM
{xx} {xx} Error Failed File Send: resortbeach.j ciolek User Questions 1 03-20-2005 08:36 PM
java error voyager User Questions 1 03-24-2004 09:56 PM
Error 1 Save Script? bonk User Questions 0 12-20-2003 09:51 PM

The Latest Posts
Title, Username, & Date Last Post Forum
download
03-21-2011 11:20 AM
by maarten
User Questions
Palace for Mac OS 10.6?
03-13-2011 09:39 AM
by pawnipt
User Questions
Server
03-07-2011 04:52 PM
by satinrose
User Questions
Return room Script
02-24-2011 12:07 AM
by jaela
Room Scripts
Releasing source code
02-17-2011 09:19 AM
by Sman™
Developers Forum
Website spammers
01-26-2011 08:48 PM
by maarten
The Planet: Palace News
Online Users: 57
1 members and 56 guests
VeraFlorsewal
Most users ever online was 1,010, 06-27-2007 at 11:45 PM.
Stats
Members: 5,112
Threads: 1,141
Posts: 4,004
Top Poster: maarten (1,169)
Welcome to our newest member, cliffymayers


All times are GMT +2. The time now is 04:05 PM.


Powered by vBulletin
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0