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

chevele

New Member
Joined
Oct 24, 2019
Messages
7
Reaction score
1
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:

scoterx

New Member
Joined
Apr 18, 2020
Messages
1
Reaction score
0
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.
 

Colesiek

New Member
Joined
Apr 24, 2020
Messages
1
Reaction score
0
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
 

SirPhoenix

New Member
Joined
Jun 1, 2020
Messages
2
Reaction score
0
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
 
OP
Klonera

Klonera

Once upon a time.
Joined
Jul 16, 2016
Messages
646
Solutions
4
Reaction score
124
Location
Sweden
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
 

SirPhoenix

New Member
Joined
Jun 1, 2020
Messages
2
Reaction score
0
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:

SickLolek

New Member
Joined
Oct 26, 2020
Messages
2
Reaction score
0
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
 

xiamont

New Member
Joined
Mar 12, 2013
Messages
5
Reaction score
0
Can anyone plese help me with this error i got when i want to set server path on step 2.?
preuzimanje.png
 
Top