PDA

View Full Version : [Tutorial] Read this for people who are having trouble with website!


Raman
01-21-2008, 09:31 PM
There are many people who are having trouble with port forwarding and apache and their websites! I believe i have found a solution!

You will need a website host (not freewebs) that has php enabled. I recommend Freehostia (http://freehostia.com/). Then open your mysql manager program (heidi sql, navicat, sqlog) and make a new user. Give the new user all privileges and make his host %. The user and pass can be whatever. Then in the config file for the website put the hostname as your external ip (http://whatismyip.com/). User is the username you made and pass is the pass you made. Database name is logon.

Now just upload the files to freehostia or your php host and voila! I have tested this and it works like a charm! You dont even need apache running no more! This should fix some of your website-related problems! Hope this helps you somehow!

VIDEO (http://abcdefghijklmnop.freehostia.com/TUT/TUT.html)

deadprezz
01-22-2008, 12:56 AM
i dont get this part

Then in the config file for the website put the hostname as your external ip. User is the username you made and pass is the pass you made. Database name is logon.


explain more im using freehostia and navicat

Raman
01-22-2008, 01:05 AM
k paste the config file for your website here.

deadprezz
01-22-2008, 01:32 AM
Database: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
is what i get now

config file


<?php

#################
# #
# #
# Enjoy! #
# #
# #
#################

$config['mysql_host'] = 'localhost';//http://24.254.28.237
$config['mysql_user'] = 'root';//deadprezz
$config['mysql_pass'] = 'ascent';//********
$config['mysql_dbname'] = 'logon';//logon

?>

Dark Realms
01-22-2008, 02:52 AM
Thank you very much for this guide! I have been searching for days and posting numorous forums/topics but know one could answer/help fix my problem.

You sir.. are a genius :D

+rep!!

P.S - know how to make the server info pages work?

Raman
01-22-2008, 07:48 PM
thanks, what do you mean by server pages?

Dark Realms
01-23-2008, 12:26 AM
Well..

My account creation page now works, BUT my server stats page doesnt..

Account Creation Page (http://www.slayrot.exofire.net/howto.htm)

Server Stats Page (http://www.slayrot.exofire.net/server.htm)

The stats you see on there are not live.. Any idea how to make it so it displays live server stats? (It came with the 7.4 AC-Web Repack)

Thanks mate :)

Raman
01-23-2008, 12:41 AM
i think it does work....

I can see people online.

Dark Realms
01-24-2008, 05:35 PM
Naa it doesnt work.. its showing people online but thats just because i uploaded "stats.xml" to my website whilst people were on the server lol..

I take it config.php controls both the account creation page & server stats page?

If so then thats weird that the stats doesnt work..

I changed the "ascent.conf" file to dumb the stats from 'C:\AC Web Ultimate Repack\Server\htdocs\stats\stats.xml' to 'my web address /stats.xml' instead.. That the wrong thing to do? lol

Golepa
01-24-2008, 06:04 PM
I changed the "ascent.conf" file to dumb the stats from 'C:\AC Web Ultimate Repack\Server\htdocs\stats\stats.xml' to 'my web address /stats.xml' instead.. That the wrong thing to do? lolChange it back.

Raman
01-24-2008, 07:39 PM
did you edit the config.php in your /stats/ directory?

Dark Realms
01-25-2008, 12:46 AM
Changed it back..

Still not working..

I'll post my configs...

<?php

#################
# #
# #
# Enjoy! #
# #
# #
#################

$config['mysql_host'] = 'slayrot.kicks-ass.net'; //MySQL Host
$config['mysql_user'] = '*****'; //MySQL Username
$config['mysql_pass'] = '*****'; //MySQL Password
$config['mysql_dbname'] = 'logon'; //Database Name

?>

All i uploaded to my website was the files inside:

"C:\AC Web Ultimate Repack\Server\htdocs\stats"

The account Creation page is fine but stats still dont work..

Here's the ascent.conf bit:

#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
# Status Dumper Config
#
# These directives set up the status dumper plugin. Filename is an
# absolute or relative path to the server binary. Interval is the
# time that the stats will be dumped to xml.
# Default: stats.xml / 120000 (2 minutes)
#
#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

<StatDumper FileName = "C:\AC Web Ultimate Repack\Server\htdocs\stats\stats.xml" Interval = "120000">

What's wrong?

I have apache etc running 24/7 so it cant be that :rolleyes:

This is just really frustrating as its something i want soooo bad lol

Thanks for your help again guys!

jakx
01-26-2008, 02:35 PM
everything works except my register.php page wont load

link is http://ultimatedoom.freehostia.com/

Blackboy0
01-26-2008, 09:54 PM
There are many people who are having trouble with port forwarding and apache and their websites! I believe i have found a solution!

You will need a website host (not freewebs) that has php enabled. I recommend Freehostia (http://freehostia.com/). Then open your mysql manager program (heidi sql, navicat, sqlog) and make a new user. Give the new user all privileges and make his host %. The user and pass can be whatever. Then in the config file for the website put the hostname as your external ip (http://whatismyip.com/). User is the username you made and pass is the pass you made. Database name is logon.

Now just upload the files to freehostia or your php host and voila! I have tested this and it works like a charm! You dont even need apache running no more! This should fix some of your website-related problems! Hope this helps you somehow!

How would you do this with Freeforums?

Site: WoWCraft Site (www.wowcraftonline.freeforums.org)

I REALLY need an Account Creation Page. Doing it manually is SICK :( +Rep if you help me :P

-Blackboy0

poyan2000
01-26-2008, 10:20 PM
is there a way to make your website and server work without hamachi?and without a routher?

Dark Realms
01-27-2008, 02:14 AM
Tried soo many things and still not working.. Anyone?

kilijan
01-29-2008, 12:08 PM
is there a way to make your website and server work without hamachi?and without a routher?

yes there is,go to search button up there :) and u ll find the answer to q HOW ;p

Tried soo many things and still not working.. Anyone?

i have got same problem ,i changed the statt in ascent.conf but wont work :/

and + i dunno how to set up forum on my site : ludisrbi.servegame.org :(

Raman
01-29-2008, 03:21 PM
everything works except my register.php page wont load

link is http://ultimatedoom.freehostia.com/

Is your MySQL running? Try going on register.php with MySQL, Ascent and logonserver running. I tried to go on my register page without MySQL running, it didn't work. Then I tried it with MySQL running and it worked perfectly. :D I'm updating the video with screen shots and maybe a video.

Tried soo many things and still not working.. Anyone?

Try changing this in your "ascent.conf":

<StatDumper FileName = "C:/AC Web Ultimate Repack/Server/htdocs/stats/stats.xml" Interval = "120000">

To this:

<StatDumper FileName = "YOUR WEBSITE PATH TO STATS.XML" Interval = "120000">

Start your server, log into WoW, make sure you are logged into WoW, then Alt-Tab, wait 3 minutes then go to the stats.xml page.

Dark Realms
02-02-2008, 03:12 AM
Tried. Failed..

dsssnake
02-02-2008, 07:39 AM
what files do you need to upload to you freehostia????? everyone in htdocs???

and when i create my domain name it says that it has no dns. why???

Raman
02-02-2008, 01:39 PM
it doent have to, config spora, then upload it.

dsssnake
02-03-2008, 12:48 AM
how to i make my DNS wrk???

do you need to pay for it?

Raman
02-03-2008, 01:38 AM
you don't need a dns

omppu43
02-03-2008, 04:57 AM
plz make vid how to do this im not understanding this..

post video to me plz

Raman
03-09-2008, 05:58 PM
k ill try to make a video

xXxburxXx
03-09-2008, 06:20 PM
Nice and simple guide , thnx :D

Raman
03-09-2008, 08:44 PM
yw :)

aaamrapoc
03-10-2008, 12:04 AM
Raman,
Exactly what files should be uploaded to the ftp for it to work correctly?

All in the htdocs?

Raman
03-10-2008, 03:05 AM
yup, and just edit all the config files!

The values are as followed:

Host: YOUR IP OR DNS
User: THE USER YOU MADE
Pass: THE PASS YOU MADE
Database: logon

imfamous08
03-10-2008, 03:39 AM
Now just upload the files to freehostia or your php host and voila! I have tested this and it works like a charm! You dont even need apache running no more! This should fix some of your website-related problems! Hope this helps you somehow!>>>> What??

How do i do that? how about a really good description on how to do it or a video! PLEASE

aaamrapoc
03-10-2008, 05:54 AM
yup, and just edit all the config files!

The values are as followed:

Host: YOUR IP OR DNS
User: THE USER YOU MADE
Pass: THE PASS YOU MADE
Database: logon

Raman,
I copied all to the ftp and it came up but said cant connect to mysql on blah blah.... So exactly which configs should I change? I added the host name and all to navicat and change the config in stats on the one I loaded up. Is that all?

also when you said **make his host %**, I'm not sure what ya mean by %. I tried using the web sight ip and that doesn't do it. Changed it to *%* and well anyway so much for that :).

I know its got to be something simple. Just need a little more info from ya on this and I think I can finish it.

Raman
03-10-2008, 05:12 PM
added video

imfamous08
03-10-2008, 10:27 PM
Dude the video dont work

Add it to youtube or something

killer911pt
03-10-2008, 11:26 PM
i have tried this but i have a ingenious soloution for myslef i run the forums and site from a free host but the account creation and stats are on my pc so if its down the forums are not less bandwith is required!

madatlis
03-12-2008, 03:43 PM
im just woundering what you mean by this

". Give the new user all privileges and make his host %."

hhhhj
03-14-2008, 11:33 AM
what to do to make my site public aswell?

Legendkilla
03-15-2008, 01:18 AM
you really need to include more information about how to get your website hosted my the website its not easy.

wartick
03-15-2008, 06:04 PM
Just up all the files in htdocs
Took me a day to under stand that "Put the host %"
It means like when The SQL browser (navi,heidi's etc) Asks Username, PW and host for the new user. Put "%" to the Host and it works!

- Stats page still isnt working. $config['mysql_host'] = '**.**.**.**'; //MySQL Host
$config['mysql_user'] = 'The one i got account working too'; //MySQL Username
$config['mysql_pass'] = '******'; //MySQL Password
$config['mysql_dbname'] = 'logon'; //Database Name

cyberlif
03-16-2008, 09:27 AM
well this idea is very good, but still i would only use it if you can't make the stuff work which was included in the repack

wartick
03-16-2008, 10:25 AM
I dont think that is a good solution for this, better without stats :P

AddIcT
03-16-2008, 12:29 PM
Can some1 post a video on youtube plz...I can't open the one that is posted...I am very very new to Navicat, got stuck on "make a new user" plz help meeee

dagsvik1
03-17-2008, 11:13 AM
not bad