Jump to content
  • 0

Cora installation problem


mrlongshen

Question


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

Hello all, I have try to configure the cora but this will happen.

My setting.

<?php

$settings = array(
    
    /* -------------------------------------------------------------------
     * Directory Configuration
     * -------------------------------------------------------------------
     * These configurations are used to identify the location of the both
     * application and system folders, relative to the index.php file.
     * The default configurations are as follows:
     *
     * 'app_path' => '../application',
     * 'sys_path' => '../system',
     *
     * If you moved both folders in the same level as your index.php file
     * change your configurations as shown below:
     *
     * 'app_path' => 'application',
     * 'sys_path' => 'system',
     * -------------------------------------------------------------------
     */
    
    'app_path'              => 'application',
    'sys_path'              => 'system',
    
    /* -------------------------------------------------------------------
     * Basic Configuration
     * -------------------------------------------------------------------
     * These configurations contains information regarding your website.
     * 
     * base_url     : This is the full url of your website pointing to the
     *                index.php file, excluding the index.php itself. The
     *                value should always end with a trailing slash. e.g:
     *                
     *                'base_url' => 'http://ragnarokname.com/',
     *                or
     *                'base_url' => 'http://ragnarokname.com/cora/',
     *
     * encrypt_key  : This is a random 30-character alphanumeric string.
     *                This is used to encrypt your sessions for security.
     *                Example of this would be:
     *                eMZxG9Mpjin05MBYje91NJL0cQaGrb
     *
     *                You may use this tool for your convenience:
     *                http://www.random.org/strings/
     *
     * dev_mode     : Turn off error reports by setting this to false.
     *
     * timezone     : Timezone that your server uses. Please refer to this
     *                guide for valid timezone values:
     *                http://php.net/manual/en/timezones.php
     * -------------------------------------------------------------------
     */
    
    'base_url'              => 'http://localhost:8080/cp/',
    'encrypt_key'           => 'eMZxG9Mpjin05MBYje91NJL0cQaGrb',
    'dev_mode'              => true,
    'timezone'              => 'Asia/Kuala_Lumpur',
    
    /* -------------------------------------------------------------------
     * Database Configuration
     * -------------------------------------------------------------------
     * These configurations contains information regarding your MySQL DB.
     *
     * db_host : This is the IP of your MySQL database. e.g: 127.0.0.1
     *           
     * db_user : Your database username. e.g: root
     *           
     * db_pass : Your database password.
     *           
     * db_name : Your `ragnarok` database or schema. e.g: ragnarok
     *
     * db_log_name : Your `log` database or schema. e.g: log
     * -------------------------------------------------------------------
     */
    
    'db_host'               => 'localhost',
    'db_user'               => 'ragnarok',
    'db_pass'               => 'ragnarok',
    'db_name'               => 'ragnarok',
    'db_log_name'           => 'ragnarok',
    
    /* -------------------------------------------------------------------
     * ROChargen
     * -------------------------------------------------------------------
     * Contains settings used by the ROChargen feature.
     *                        
     * use_iteminfo_lua     : Set to true if you are using iteminfo.lua
     *                        instead of idnum2.txt files. Usually, this
     *                        is for for servers using the newer clients.
     *                        For clients 2012-07-10a and lower, as well
     *                        as RE 2012-04-10a and lower, set to false.
     * -------------------------------------------------------------------
     */
    
    'use_iteminfo_lua'      => true,
    
    /* ----------------------------------------------------------------- *
     * Extra Configurations                                              *
     * ----------------------------------------------------------------- */
    
    'memory_limit'          => '32M'    // Change the PHP memory limit allocation. WARNING: Increasing this value may cause exhaustion in your server. Use at your own risk!
    
);

Here my installation folder

t03IHhH.png

83X6fjh.png

 

I try to click the account, cashshop, donate and other page but getting this result.

 

wYOatD4.png

 

SO the question, which part I miss configuration ?

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Check your wamp's mod_rewrite configuration.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

Check your wamp's mod_rewrite configuration.

 

Ok done. I need to edit the .htccess

How to setup admin account ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Goto http://<your server ip>/admin/admin

If I'm not mistaken, the default ID and password for admin account is coraadmin

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

Goto http://<your server ip>/admin/admin

If I'm not mistaken, the default ID and password for admin account is coraadmin

Ok thanks you. If you have the tutorial might share with me. Btw, i try to enable mod rewrite on httpd.conf in centos. Nothing happen. I have reload the service but still same. Any idea miss ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Okay, post the steps of what you have done, I'll try to recreate it on my local PC.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

  1. Make a folder call 'cp'
  2. Put the cora files in there. http://i.imgur.com/tSpxqAu.png
  3. Edit the setting.php http://pastebin.com/HuvYxkne
  4. Edit the .htaccess to fix the mod_rewrite. http://pastebin.com/h4AdNTmm
  5. Edit the wamp httpd.conf http://pastebin.com/C9u3KZCk
  6. Restart the apache.
  7. Insert the /cora/sql-files/cora.sql
  8. Try on google chrome, and its working. Got interface. All link clickable. ( Home, Account, Cash shop, Donate, Vote For Points, and Search )
  9. Check on the database, dont know the admin login is what, then I try my GM level 99 account. But cant. 
  10. Go to your suggestion post https://rathena.org/board/topic/102495-cora-installation-problem/?p=287340 (Yeah I see the admin login interface)
  11. Found something useful on database, at tcp_set_adm table, login : coraadmin password : c3c51582043246e717b3763dcc28673c (Dont know where its coming from ? so i assume its a default login)
  12. Try to login with that account, still same. Wrong user id and password ( Dissapointed )
  13. Dont have any idea what to do. Waiting support from you @nanakiwurtz, other may not using this cp, that why no one reply :(

*Nana please help me troubleshoot the rewrite issues on centos. I done edit the httpd.conf at my web server, reload but nothing happen.

*If you can please make a tutorial. Because the web link are dead. I need a full tutorial of Cora Installation CP until all is working.

*By the way, lets try on localhost first. I want to play with this CP first.

#Thanks alot nana for help me.  /lv

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Using your steps, I can setup and access the /cp/admin/admin using 'coraadmin' for Username & Password.
All password on the database are hashed, for security purpose. So they can't be used by unauthorized person.
 
First, make sure you have install it on your CentOS:

yum -y install httpd httpd-devel

Start it by using:

/etc/init.d/httpd start

Edit the httpd configuration on /etc/httpd/conf/httpd.conf save and restart by using:

/etc/init.d/httpd restart

or

service httpd restart
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

@nanakiwurtz thanks for that mention ! 'coraadmin', I was use 'cpadmin' that why I cant login to my admin. OMG ! what a simple mistake.

I have follow your guide to install the httpd.

Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                            | 3.1 kB     00:00
 * base: centos.usonyx.net
 * epel: mirror.smartmedia.net.id
 * extras: centos.usonyx.net
 * updates: centos.usonyx.net
base                                                     | 3.7 kB     00:00
epel                                                     | 4.4 kB     00:00
http://mirror.smartmedia.net.id/epel/6/i386/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel
Trying other mirror.
epel                                                     | 4.4 kB     00:00
epel/primary_db                                          | 5.5 MB     02:46
extras                                                   | 3.4 kB     00:00
updates                                                  | 3.4 kB     00:00
Package httpd-2.2.15-39.el6.centos.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package httpd-devel.i686 0:2.2.15-39.el6.centos will be installed
--> Processing Dependency: apr-util-devel for package: httpd-devel-2.2.15-39.el6.centos.i686
--> Processing Dependency: apr-devel for package: httpd-devel-2.2.15-39.el6.centos.i686
--> Running transaction check
---> Package apr-devel.i686 0:1.3.9-5.el6_2 will be installed
---> Package apr-util-devel.i686 0:1.3.9-3.el6_0.1 will be installed
--> Processing Dependency: openldap-devel for package: apr-util-devel-1.3.9-3.el6_0.1.i686
--> Processing Dependency: expat-devel for package: apr-util-devel-1.3.9-3.el6_0.1.i686
--> Processing Dependency: db4-devel for package: apr-util-devel-1.3.9-3.el6_0.1.i686
--> Running transaction check
---> Package db4-devel.i686 0:4.7.25-19.el6_6 will be installed
--> Processing Dependency: db4-cxx = 4.7.25-19.el6_6 for package: db4-devel-4.7.25-19.el6_6.i686
--> Processing Dependency: libdb_cxx-4.7.so for package: db4-devel-4.7.25-19.el6_6.i686
---> Package expat-devel.i686 0:2.0.1-11.el6_2 will be installed
---> Package openldap-devel.i686 0:2.4.39-8.el6 will be installed
--> Processing Dependency: cyrus-sasl-devel >= 2.1 for package: openldap-devel-2.4.39-8.el6.i686
--> Running transaction check
---> Package cyrus-sasl-devel.i686 0:2.1.23-15.el6_6.2 will be installed
---> Package db4-cxx.i686 0:4.7.25-19.el6_6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch      Version                     Repository    Size
================================================================================
Installing:
 httpd-devel           i686      2.2.15-39.el6.centos        base         152 k
Installing for dependencies:
 apr-devel             i686      1.3.9-5.el6_2               base         176 k
 apr-util-devel        i686      1.3.9-3.el6_0.1             base          69 k
 cyrus-sasl-devel      i686      2.1.23-15.el6_6.2           updates      303 k
 db4-cxx               i686      4.7.25-19.el6_6             updates      606 k
 db4-devel             i686      4.7.25-19.el6_6             updates      6.6 M
 expat-devel           i686      2.0.1-11.el6_2              base         121 k
 openldap-devel        i686      2.4.39-8.el6                base         1.1 M

Transaction Summary
================================================================================
Install       8 Package(s)

Total download size: 9.1 M
Installed size: 33 M
Downloading Packages:
(1/8): apr-devel-1.3.9-5.el6_2.i686.rpm                  | 176 kB     00:00
(2/8): apr-util-devel-1.3.9-3.el6_0.1.i686.rpm           |  69 kB     00:00
(3/8): cyrus-sasl-devel-2.1.23-15.el6_6.2.i686.rpm       | 303 kB     00:00
(4/8): db4-cxx-4.7.25-19.el6_6.i686.rpm                  | 606 kB     00:00
(5/8): db4-devel-4.7.25-19.el6_6.i686.rpm                | 6.6 MB     00:00
(6/8): expat-devel-2.0.1-11.el6_2.i686.rpm               | 121 kB     00:00
(7/8): httpd-devel-2.2.15-39.el6.centos.i686.rpm         | 152 kB     00:00
(8/8): openldap-devel-2.4.39-8.el6.i686.rpm              | 1.1 MB     00:00
--------------------------------------------------------------------------------
Total                                           8.1 MB/s | 9.1 MB     00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : apr-devel-1.3.9-5.el6_2.i686                                 1/8
  Installing : expat-devel-2.0.1-11.el6_2.i686                              2/8
  Installing : db4-cxx-4.7.25-19.el6_6.i686                                 3/8
  Installing : db4-devel-4.7.25-19.el6_6.i686                               4/8
  Installing : cyrus-sasl-devel-2.1.23-15.el6_6.2.i686                      5/8
  Installing : openldap-devel-2.4.39-8.el6.i686                             6/8
  Installing : apr-util-devel-1.3.9-3.el6_0.1.i686                          7/8
  Installing : httpd-devel-2.2.15-39.el6.centos.i686                        8/8
  Verifying  : db4-devel-4.7.25-19.el6_6.i686                               1/8
  Verifying  : apr-util-devel-1.3.9-3.el6_0.1.i686                          2/8
  Verifying  : cyrus-sasl-devel-2.1.23-15.el6_6.2.i686                      3/8
  Verifying  : db4-cxx-4.7.25-19.el6_6.i686                                 4/8
  Verifying  : openldap-devel-2.4.39-8.el6.i686                             5/8
  Verifying  : httpd-devel-2.2.15-39.el6.centos.i686                        6/8
  Verifying  : expat-devel-2.0.1-11.el6_2.i686                              7/8
  Verifying  : apr-devel-1.3.9-5.el6_2.i686                                 8/8

Installed:
  httpd-devel.i686 0:2.2.15-39.el6.centos

Dependency Installed:
  apr-devel.i686 0:1.3.9-5.el6_2
  apr-util-devel.i686 0:1.3.9-3.el6_0.1
  cyrus-sasl-devel.i686 0:2.1.23-15.el6_6.2
  db4-cxx.i686 0:4.7.25-19.el6_6
  db4-devel.i686 0:4.7.25-19.el6_6
  expat-devel.i686 0:2.0.1-11.el6_2
  openldap-devel.i686 0:2.4.39-8.el6

Complete!

Some error, but its nothing right ?

 

I have enable the LoadModule rewrite_module modules/mod_rewrite.so

Then save and restart httpd. But nothing happen.

I can just view the home only. All page cannot. Maybe the permission still can rewrite..

Any solution? 

 

 

I found the solution.

Need to edit this.

 

 
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
 
    AllowOverride All

How to fix this problem

A PHP Error was encountered
Severity: Warning

Message: file_get_contents(http://example.net/cp/community/player_ladder?json=true&sort=kills): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error

Filename: widgets/wid_rank.php

Line Number: 16

4KLufVZ.png

Edited by mrlongshen
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

It's okay to ignore that error message, anyway update your epel mirror by using this:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh epel-release-6-8.noarch.rpm
I'm not sure which permission needed for Cora, try to chmod 777, if it works, then you know that the problem comes from incorrect file/folder permission.

Be sure to make backup first, because if you have chmod-ed them, you can't revert them back to their original permission. Or you can restart from scratch again.

I guess the widget got error because of the mod_rewrite issue...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

nana. I thought it also happen becase the mod_rewrite issues. Hmmm..

Nevermind. Its just the Ranking. HAHA. by the way. You know how to use the ro chargen php ?

I dont understand it. 

Link to comment
Share on other sites

×
×
  • Create New...