• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

DevAAC (TFS 1.X)

Can someone do a video tutorial for us, pls :3?

I am sorry i can't understand this "easy" installation at all.
My understanding of all webpage creating content is nonexistant.
I also would like to see video tutorial or if someone teaches me how to set server up i will make that video tutorial myself.

What i have done so far:
First i opened README file and noticed few lines:

Requirements
=====
* PHP >= 5.4
* PHP JSON extension
* PHP MySQL NATIVE DRIVER (mysqlnd) extension (or [this](http://forumsarchive.laravel.io/viewtopic.php?pid=58151) will happen)
* PHP APC or APCu extension (if you want ```plugins/ratelimiter.php``` to work)

I downloaded and extracted php-5.6.4.tar.bz2 to a new folder what i named "php 5.6" (no idea what is that php for but there is no php.exe file)
I downloaded and extracted php JSON extension to a new folder what i named "php json"
skipped 3rd line because i have no clue what is MySQL Native driver.
downloaded and extracted php apc 3.1.9 to a new folder and renamed it "php apc"

... why there is 2 installation methods what are they both for??!

Installation (zip-bundle release)
=====
* Download zip-bundle release from (GitHub)[https://github.com/DevelopersPL/DevAAC/releases] (green button)
* Unpack to a directory higher then your web root, so that public_html is the web root (you can rename it if you need)
* If you use nginx, you can find sample vhost config [in our wiki](https://github.com/DevelopersPL/DevAAC/wiki)
* Rename ```config.sample.php``` to ```config.php``` and follow instructions in it

1. Downloaded Zip bundle
2. unpacked it the C:\UniServerZ\www (now i have 4 folders and this readMe file and Licence file in this folder)
3. not using nginx. skipped this
4. renamed the sample file and followed the instruction:

Instructions:

AT MINIMUM UNCOMMENT AND CONFIGURE PATH TO TFS - this is where config.lua is located
examples:
- /home/otsmanager/forgottenserver
- C:\Users\OTS\forgottenserver
// define('TFS_ROOT', '/path/to/tfs');

Outcome:
define('TFS_ROOT', 'C:\Users\whitevo\Desktop\Whi World\theforgottenserver-v1.0-win64');

What happened:

Address: http://localhost/index.php
Not Found
The requested URL /index.php was not found on this server.

... hmkey, lets try the second installation method..

Installation (dev release)
=====
* [Get composer](https://getcomposer.org/download) ```curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin```
* Clone this repo: ```git clone https://github.com/DevelopersPL/DevAAC.git```
* Install dependencies: ```composer.phar install```
* Set up your web server to serve DevAAC/public_html as document root and [required rewrites](https://github.com/DevelopersPL/DevAAC/wiki)
* Rename ```config.sample.php``` to ```config.php``` and follow instructions

1. downloaded composer, but i cant find php.exe file in my computer.. aaaand started looking for guides how to set this webpage up. and here i am after few hours.
 
dont find edit button
Anyway
if i place the "public_html" folder to the "www" folder
i get this message
Forbidden
You don't have permission to access / on this server.

same permission problem like with Znote AAC..
 
@whiteevo
There are two ways to install the AAC because they differ - however, the end result is the same. You can choose which one you prefer, the "zip-bundle" one is easier.

You must configure rewrites appropriately, here are sample configs: https://github.com/DevelopersPL/DevAAC/wiki
 
i dont understand what i am seeing when i look both of these sample codes in the link you gave.
i am using UniServerZ
 
ok realized that i have same file in the folder named: .htaccess
i copy pasted entire code and now i get this when i open localhost:
Forbidden
You don't have permission to access /index.php on this server.
 
ok realized that i have same file in the folder named: .htaccess
i copy pasted entire code and now i get this when i open localhost:
Forbidden
You don't have permission to access /index.php on this server.
I can't help you with only that information. It's not a problem with DevAAC but with general configuration of your web server and you didn't give us any details.
 
what kind of details are needed? because there are lot of things i have done and i have no clue what is related to what.

The text in config.php
define('TFS_ROOT', 'C:\Users\whitevo\Desktop\Whi World\theforgottenserver-v1.0-win64');

the text in config.lua (only have changed text below MySQL)
-- Combat settings
-- NOTE: valid values for worldType are: "pvp", "no-pvp" and "pvp-enforced"
worldType = "pvp"
hotkeyAimbotEnabled = "yes"
protectionLevel = 1
killsToRedSkull = 3
killsToBlackSkull = 6
pzLocked = 60000
removeAmmoWhenUsingDistanceWeapon = "yes"
removeChargesFromRunes = "yes"
timeToDecreaseFrags = 24 * 60 * 60 * 1000
whiteSkullTime = 15 * 60 * 1000
stairJumpExhaustion = 2000
experienceByKillingPlayers = "no"
expFromPlayersLevelRange = 75
noDamageToSameLookfeet = "no"

-- Connection Config
-- NOTE: maxPlayers set to 0 means no limit
ip = "127.0.0.1"
bindOnlyGlobalAddress = "no"
loginProtocolPort = 7171
gameProtocolPort = 7172
statusProtocolPort = 7171
maxPlayers = 0
motd = "Welcome to The Forgotten Server!"
onePlayerOnlinePerAccount = "yes"
allowClones = "no"
serverName = "Forgotten"
statusTimeout = 5000
replaceKickOnLogin = "yes"
maxPacketsPerSecond = 25

-- Deaths
-- NOTE: Leave deathLosePercent as -1 if you want to use the default
-- death penalty formula. For the old formula, set it to 10. For
-- no skill/experience loss, set it to 0.
deathLosePercent = -1

-- Houses
-- NOTE: set housePriceEachSQM to -1 to disable the ingame buy house functionality
housePriceEachSQM = 1000
houseRentPeriod = "never"

-- Item Usage
timeBetweenActions = 200
timeBetweenExActions = 1000

-- Map
-- NOTE: set mapName WITHOUT .otbm at the end
mapName = "forgotten"
mapAuthor = "Komic"

-- Market
marketOfferDuration = 30 * 24 * 60 * 60
premiumToCreateMarketOffer = "yes"
checkExpiredMarketOffersEachMinutes = 60
maxMarketOffersAtATimePerPlayer = 100

-- MySQL
mysqlHost = "localhost"
mysqlUser = "Whiserv"
mysqlPass = "Vwfs3bJC9JcMFCxa"
mysqlDatabase = "whiserv"
mysqlPort = 3300
mysqlSock = ""

-- Misc.
allowChangeOutfit = "yes"
freePremium = "no"
kickIdlePlayerAfterMinutes = 15
maxMessageBuffer = 4
emoteSpells = "no"
classicEquipmentSlots = "no"

-- Rates
-- NOTE: rateExp is not used if you have enabled stages in data/XML/stages.xml
rateExp = 5
rateSkill = 3
rateLoot = 2
rateMagic = 3
rateSpawn = 1

-- Monsters
deSpawnRange = 2
deSpawnRadius = 50

-- Stamina
staminaSystem = "yes"

-- Scripts
warnUnsafeScripts = "no"
convertUnsafeScripts = "no"

-- Startup
-- NOTE: defaultPriority only works on Windows and sets process priority.
defaultPriority = "high"
startupDatabaseOptimization = "no"

-- Status server information
ownerName = ""
ownerEmail = ""
url = "http://otland.net/"
location = "Sweden"
 
what kind of details are needed? because there are lot of things i have done and i have no clue what is related to what.

The text in config.php
define('TFS_ROOT', 'C:\Users\whitevo\Desktop\Whi World\theforgottenserver-v1.0-win64');

the text in config.lua (only have changed text below MySQL)
Those are all fine. It seems like your file permissions or document root are not configured properly.
 
i did some google search, still couldnt fix the problem, but found this file.
Maybe you understand this and see if this file blocks my permissions.
Code:
Uniform Server - Apache Configuration

# This is the main Apache HTTP server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned. 
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/access_log"
# with ServerRoot set to "/usr/local/apache2" will be interpreted by the
# server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log"
# will be interpreted as '/logs/access_log'.

# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default.  It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.

# Do not add a slash at the end of the directory path.  If you point
# ServerRoot at a non-local disk, be sure to specify a local disk on the
# Mutex directive, if file-based mutexes are used.  If you wish to share the
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.

AcceptFilter http none
EnableSendfile Off
EnableMMAP off

ServerRoot "${US_ROOTF}/core/apache2"
PidFile ${US_ROOTF}/core/apache2/logs/httpd.pid

# Mutex: Allows you to set the mutex mechanism and mutex file directory
# for individual mutexes, or change the global defaults

# Uncomment and change the directory if mutexes are file-based and the default
# mutex file directory is not on a local disk or is not appropriate for some
# other reason.

# Mutex default:logs

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.

# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.

#Listen 12.34.56.78:80
Listen ${AP_PORT}

deleted all LoadModule & LoadFile lines

<IfModule unixd_module>

# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch. 

# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.

User daemon
Group daemon

</IfModule>

# 'Main' server configuration

# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.

# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.

# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. [email protected]

ServerAdmin admin@${US_SERVERNAME}

# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
ServerName ${US_SERVERNAME}

# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.

<Directory />
    AllowOverride none
    Require all denied
</Directory>

# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.

# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.

DocumentRoot "${US_ROOTF_WWW}"
<Directory "${US_ROOTF_WWW}">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    #Options Indexes FollowSymLinks
    Options Indexes Includes

    #
    # 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

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.html index.shtml index.html.var index.htm index.php3 index.php index.lua index.pl index.cgi
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ".ht*">
    Require all denied
</Files>

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error.log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

continues
since i can add only 10000 chars at 1 post i will doublepost and cut the some "doesnt seem so needed information" in the file itself
 
code continues
Code:
<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>
    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "logs/access.log" common
    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "logs/access.log" combined
</IfModule>
<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar
    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.
    Alias /us_docs "${US_ROOTF}/docs/"
    #opt1>phpMyAdmin opt2>Adminer opt3>phpMyBaskupPro
    Alias /us_opt1 "${US_ROOTF}/home/us_opt1/"
    Alias /us_opt2 "${US_ROOTF}/home/us_opt2/"
    Alias /us_opt3 "${US_ROOTF}/home/us_opt3/"
    Alias /us_pac  "${US_ROOTF}/home/us_pac/"
    Alias /us_mongoadmin "${US_ROOTF}/home/us_mongoadmin/"
    Alias /us_pear "${US_ROOTF}/home/us_pear/"
    Alias /us_splash "${US_ROOTF}/home/us_splash/"
    Alias /us_extra "${US_ROOTF}/home/us_extra/"
    Alias /webalizer "${US_ROOTF}/webalizer/"
    Alias /us_test_access "${US_ROOTF}/home/us_access/www/"
    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "${US_ROOTF}/cgi-bin/"
</IfModule>
<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock logs/cgisock
</IfModule>
<Directory "${US_ROOTF}/docs/">
  Options Indexes Includes
    AllowOverride All
    Require all granted
</Directory>
#== Default phpMyAdmin
<Directory "${US_ROOTF}/home/us_opt1/">
  Options Indexes Includes
  AllowOverride All
  Require all granted
</Directory>
#== Default Adminer
<Directory "${US_ROOTF}/home/us_opt2/">
  Options Indexes Includes
  AllowOverride All
  Require all granted
</Directory>
#== Default phpMyBackupPro
<Directory "${US_ROOTF}/home/us_opt3/">
  Options Indexes Includes
  AllowOverride All
  Require all granted
</Directory>
#== PAC - Location to serve proxy.pac
<Directory "${US_ROOTF}/home/us_pac/">
  Options Indexes Includes
  AllowOverride All
  Require all granted
</Directory>
<Directory "${US_ROOTF}/home/us_mongoadmin/">
  Options Indexes Includes
  AllowOverride All
  Require all granted
</Directory>
<Directory "${US_ROOTF}/home/us_pear/">
  Options Indexes Includes
  AllowOverride All
  Require all granted
</Directory>
<Directory "${US_ROOTF}/home/us_splash/">
  Options Indexes Includes
  AllowOverride All
  Require all granted
</Directory>
<Directory "${US_ROOTF}/home/us_extra/">
  Options Indexes Includes
  AllowOverride All
  Require all granted
</Directory>
<Directory "${US_ROOTF}/webalizer/">
  Options Indexes Includes
  AllowOverride All
  Require all granted
</Directory>
<Directory "${US_ROOTF}/home/us_access/www/">
  Require all granted
</Directory>
#
# "c:/Apache24/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "${US_ROOTF}/cgi-bin/">
  AllowOverride All
  Options ExecCGI
  Require all granted
</Directory>
<Directory "${US_ROOTF}/home/admin/www/cgi-bin/">
  AllowOverride All
  Options ExecCGI
  Require all granted
</Directory>
[deleted .mime things and error log lines]
 
I am using UniserverZ Xero XI

In order to get the webpage running you need:
1. Bring 'bublic_html' file from the DevAAC zip to the 'www' folder in uniserverZ
2. open '.htaccess' file with notepad++ (in the public_html folder)
write this code into it:
Code:
Options +FollowSymLinks

DirectoryIndex index.html index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
3. Open 'config.php' file in Public_html folder
change the path to the folder where is your server config.lua

this finally passed the forbidden access problems, but im not sure my webpage is connected to database because it asked no password and it has nothing in it.
Time will tell, but at least i got some kind of access.
 
Code:
Options +FollowSymLinks

DirectoryIndex index.html index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Wow thanks. It was all about htaccess from the start. The "official" one for apache doesn't work. At least not with UniServer.
 
Any idea why I get this error, I've been searching but cant find anything about it.

Sin_t_tulo.png
 
Back
Top