- Joined
- Aug 24, 2009
- Messages
- 1,221
- Reaction score
- 170
Re: [Tutorial]How to set up a CMS
well if you have one set up let it redirect you to your website
well if you have one set up let it redirect you to your website
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!Edit your database.php to your settings.Warning: include(../config/database.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\install\install.php on line 111
Warning: include() [function.include]: Failed opening '../config/database.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\install\install.php on line 111
Warning: mysql_query() [function.mysql-query]: Access denied for us
help i get above error...:
Hey Thank you so much for this tutorial! I have everything set up correctly, port's 80 and 8080 are forwarded correctly, and I can access my site with the rankings working and all. The only thing is others cannot get on my site. I have wamp server and its online but the thing is, it is 3/4 yellow and 1/4 white? I hit start all services.
Please help me?
*Short tags are ON
WampServer needs to be all white. Left click it, and Hit "Restart all Services"
Thank me if I helped
Also, I got a question. If you are using Hamachi, is the only why people can connect to the site is if they are in the network?
WampServer needs to be all white. Left click it, and Hit "Restart all Services"
Thank me if I helped
Also, I got a question. If you are using Hamachi, is the only why people can connect to the site is if they are in the network?
Hey Thank you so much for this tutorial! I have everything set up correctly, port's 80 and 8080 are forwarded correctly, and I can access my site with the rankings working and all. The only thing is others cannot get on my site. I have wamp server and its online but the thing is, it is 3/4 yellow and 1/4 white? I hit start all services.
Please help me?
*Short tags are ON
CypeCMS Installation
Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: H�te inconnu. in C:\wamp\www\config\database.php on line 41
Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: H�te inconnu. (trying to connect via tcp://localhost:3306) in C:\wamp\www\config\database.php on line 41
Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: H�te inconnu. in C:\wamp\www\config\database.php on line 41
Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\wamp\www\config\database.php on line 42
php_network_getaddresses: getaddrinfo failed: H�te inconnu.
Code:CypeCMS Installation Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: H�te inconnu. in C:\wamp\www\config\database.php on line 41 Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: H�te inconnu. (trying to connect via tcp://localhost:3306) in C:\wamp\www\config\database.php on line 41 Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: H�te inconnu. in C:\wamp\www\config\database.php on line 41 Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in C:\wamp\www\config\database.php on line 42 php_network_getaddresses: getaddrinfo failed: H�te inconnu.
What's wrong ?? :
<?php
/*
Copyright (C) 2009 Murad <Murawd>
Josh L. <Josho192837>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if(basename($_SERVER["PHP_SELF"]) == "database.php"){
die("403 - Access Forbidden");
}
/* MySQL Connection Information */
// Where is MySQL Hosted? If you aren`t sure, just leave it as "localhost"
$host = "localhost";
// Database Username - Usually "root"
$user = "root";
// Database Password - Usually "root". If you don`t have a password, or are not sure, leave it blank.
$pass = "";
// Database Name - Usually "odinms"
$database = "odinms";
// What is the server`s Wan IP
$serverip = "89.156.103.211";
// What is your server`s log in port - Don`t change if you aren`t sure.
$loginport = "7575";
// What is your server`s world port - Don`t change if you aren`t sure.
$worldport = "8484";
/* Don`t touch. */
$conn = mysql_connect($host,$user,$pass);
$db = mysql_select_db($database, $conn) or die(mysql_error());
?>
I did it but always the same error.
My database.php
PHP:<?php /* Copyright (C) 2009 Murad <Murawd> Josh L. <Josho192837> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ if(basename($_SERVER["PHP_SELF"]) == "database.php"){ die("403 - Access Forbidden"); } /* MySQL Connection Information */ // Where is MySQL Hosted? If you aren`t sure, just leave it as "localhost" $host = "localhost"; // Database Username - Usually "root" $user = "root"; // Database Password - Usually "root". If you don`t have a password, or are not sure, leave it blank. $pass = ""; // Database Name - Usually "odinms" $database = "odinms"; // What is the server`s Wan IP $serverip = "89.156.103.211"; // What is your server`s log in port - Don`t change if you aren`t sure. $loginport = "7575"; // What is your server`s world port - Don`t change if you aren`t sure. $worldport = "8484"; /* Don`t touch. */ $conn = mysql_connect($host,$user,$pass); $db = mysql_select_db($database, $conn) or die(mysql_error()); ?>
---------- Post added at 03:33 PM ---------- Previous post was at 01:51 PM ----------
It's OK I've replaced localhost by 127.0.0.1.
But now how to be admin and GM ??
Thanks'
Thanks now I'm admin but not GM :*:
I replaced 0 by 1 in gm but it doesn't work :
Go to characters go to the colomn where it says GM and put a 5
Thank you ! But how to know if we are GM or not because I don't see the difference.
PS : When I put 5 it changes itself to 1
Warning: include(../config/database.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\install\install.php on line 111
Warning: include() [function.include]: Failed opening '../config/database.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\install\install.php on line 111
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\config\properties.php on line 25
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\config\properties.php on line 25
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\config\properties.php on line 26
Why doesn't it work?
PHP:Warning: include(../config/database.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\install\install.php on line 111 Warning: include() [function.include]: Failed opening '../config/database.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\install\install.php on line 111 Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\config\properties.php on line 25 Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\wamp\www\config\properties.php on line 25 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\config\properties.php on line 26