• 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!

[Tutorial] How to setup The Forgotten Server TFS 1.2 (10.98)

More tutorials?

  • No

    Votes: 0 0.0%
  • Not needed, thanks anyway

    Votes: 0 0.0%

  • Total voters
    2
  • Poll closed .
Status
Not open for further replies.
Hi, I am having the same issue as WiktorSwir...
Function get_magic_quotes_gpc() is deprecated in C:\xampp\htdocs\install.php on line 34
this i see when I put my Ip ::1 into Install and refresh the website

I commented from the line 34 till the line 53, writting at the beginnig /** on 34 and */ on 53.
But now I have this issue when I got to http://localhost//install.php:
Code:
CANNOT WRITE TO FILE: config/config.php - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: cache - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: cache/flags - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: cache/DONT_EDIT_usercounter.txt - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: cache/DONT_EDIT_serverstatus.txt - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: custom_scripts - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: install.txt - edit file access for PHP [on linux: chmod]

I tried giving the permissions using chmod g+w (I am doing this on Linux), but I still have the error.
Please help :)

EDIT:

I managed to get past this, what I did was to run ps aux | egrep '(apache|httpd)', which the output was:
Code:
root       37185  0.0  0.1 337408 25576 ?        Ss   16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37191  0.0  0.0 332896 11136 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37197  0.0  0.1 338168 19644 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37200  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37201  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37203  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37204  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37467  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37468  0.0  0.0 338032 14908 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37469  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
So from the left column I can tell the Apache is running from a user called 'daemon'.
After this I went to my htdocs directory, and on terminal (Linux) did sudo chown -R daemon ., so that user has access to everything in the folder.
 
Last edited:
Hi, i am have the same issue, but i use the windows, someone can help me with this?

Hi, I am having the same issue as WiktorSwir...


I commented from the line 34 till the line 53, writting at the beginnig /** on 34 and */ on 53.
But now I have this issue when I got to http://localhost//install.php:
Code:
CANNOT WRITE TO FILE: config/config.php - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: cache - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: cache/flags - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: cache/DONT_EDIT_usercounter.txt - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: cache/DONT_EDIT_serverstatus.txt - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: custom_scripts - edit file access for PHP [on linux: chmod]
CANNOT WRITE TO FILE: install.txt - edit file access for PHP [on linux: chmod]

I tried giving the permissions using chmod g+w (I am doing this on Linux), but I still have the error.
Please help :)

EDIT:

I managed to get past this, what I did was to run ps aux | egrep '(apache|httpd)', which the output was:
Code:
root       37185  0.0  0.1 337408 25576 ?        Ss   16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37191  0.0  0.0 332896 11136 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37197  0.0  0.1 338168 19644 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37200  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37201  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37203  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37204  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37467  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37468  0.0  0.0 338032 14908 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
daemon     37469  0.0  0.1 338032 18652 ?        S    16:12   0:00 /opt/lampp/bin/httpd -k start -E /opt/lampp/logs/error_log -DSSL -DPHP
So from the left column I can tell the Apache is running from a user called 'daemon'.
After this I went to my htdocs directory, and on terminal (Linux) did sudo chown -R daemon ., so that user has access to everything in the folder.
 
Hi, i am have the same issue, but i use the windows, someone can help me with this?
Download the xampp version 7.3.3. Newer ones are seeing those php commands as old and unsupported.

I installed, its working, but I can't seem to find any NPC so I have problem on another level :D
 
i have the same problem when I put 1:: into mi ip address
i get this message : Deprecated: Function get_magic_quotes_gpc() is deprecated in C:\xampp\htdocs\install.php on line 34
i already tried installing the newest version of xampp
any ideas?
im on windows version
 
i have the same problem when I put 1:: into mi ip address
i get this message : Deprecated: Function get_magic_quotes_gpc() is deprecated in C:\xampp\htdocs\install.php on line 34
i already tried installing the newest version of xampp
any ideas?
im on windows version
If you're on the same host machine than the IP adress should either be 127.0.0.1 or your IPV4 adress.
Try installing a lower PHP version
 
If you're on the same host machine than the IP adress should either be 127.0.0.1 or your IPV4 adress.
Try installing a lower PHP version
yes but after i type localhost on the browser, the video tells me to delete 127.0.0.1 off the install carpet inside htdocs and replace with 1:: and then refreshing website thats when its gives me the message Deprecated: Function get_magic_quotes_gpc() is deprecated in C:\xampp\htdocs\install.php on line 34
Post automatically merged:

is there anything wrong in this? (its how it was downloaded)or perhaps its fine but can be adjusted for it to work?
//load acc. maker config to $config['site']
$config = array();
include('./config/config.php');
if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
{
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while(list($key, $val) = each($process))
{
foreach ($val as $k => $v)
{
unset($process[$key][$k]);
if(is_array($v))
{
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
}
else
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
unset($process);
}
 
Last edited:
I had this same problem... now worked. Just install new version xampp. Now i have new problem. I dont have npc. server works ( 0 errors ) , but i 0 npc
 
Can anyone plese help me with this error i got when i want to set server path on step 2.?
preuzimanje.png
 
I;m also stuck at step 2:

Fatal error: Declaration of Database::query($statement) must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in C:\xampp\htdocs\classes\database.php on line 194

I have the idea I did everything right so far, step by step, so what is happening?
 
Function get_magic_quotes_gpc() is deprecated in C:\xampp\htdocs\install.php on line 34
this i see when I put my Ip ::1 into Install and refresh the website
Hey WiktorSwir,

Did you manage to fix this problem? i have the exact same issue :(
 
I;m also stuck at step 2:

Fatal error: Declaration of Database::query($statement) must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs) in C:\xampp\htdocs\classes\database.php on line 194

I have the idea I did everything right so far, step by step, so what is happening?
Outdated tutorial, newer files. That's what's up
 
Status
Not open for further replies.
Back
Top