Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

MYSQL + PHP - jak wgrać?


JaTylkoSciagamC

Rekomendowane odpowiedzi

Opublikowano

Jak zainstalować:

  • PHP 5.2.1 lub wyższą
  • MYSQL

Na VPS'ie (postawiony serwer TS3) + jak wykonać bazę w MYSQL?

 

 

1. Unzip the downloaded file "channeldeleter 2.00-beta.zip".

2. Upload the whole folder to a directory on your webspace.

3. Fill out the "config.php".

4. Open the "install_database_mysql.php" in your Webbrowser to create a new database and the needed table(s).

After successfully creation delete the "install_database_mysql.php" file from your webserver.

5. Copy the icon "icon_301694691" to the installation path of your TeamSpeak 3 Server und "files/virtualserver_X/internal/icons/".

Example: /home/ts3server/files/virtualserver_1/internal/icons/icon_301694691

6. Create a cronjob for crawling usage of channel (crawl_data) and deleting inactive channel (delete_channel):

Login in to your server via ssh.

Enter the command "crontab -e" (perhaps you have to press "i" to be able to edit the text)

Paste the following lines in a new line (you have to edit the path):

*/5 * * * * php /path/to/your/websever/path/to/channeldeleter/crawl_data.php >/dev/null 2>&1

*/5 * * * * php /path/to/your/websever/path/to/channeldeleter/delete_channel.php >/dev/null 2>&1

If you want, you can edit the connection time.. Here it is every 5 Minutes.

Save and quit the crontable.

Jakiś poradnik do tego? Dodam że totalnie zielony. VPS: Debian 3.2.60-1+deb7u3 x86_64

 
Opublikowano

apt-get update

apt-get upgrade

apt-get install php5(razem z apatchem ci sciagnie)

apt-get install mysql

potem cie się generują pasy do mysql logujesz się i tworzysz bazę danych za pomocą komendy 

create database nazwa

i gotowe baza danych zrobiona

Opublikowano

apt-get update

apt-get upgrade

apt-get install php5(razem z apatchem ci sciagnie)

apt-get install mysql

potem cie się generują pasy do mysql logujesz się i tworzysz bazę danych za pomocą komendy 

create database nazwa

i gotowe baza danych zrobiona

Zainstalowałem, lecz Putty mi się wyłączyło gdy wygenerowały się passy - można je "odzyskać"?

Opublikowano

hmmm nie wiem nigdy nie miałem takiego problemu może ktoś inny będzie wiedział...

Już mam wszystko. Niestety zatrzymałem się na numerze 4 (4. Open the "install_database_mysql.php" in your Webbrowser to create a new database and the needed table(s).)

 

Po wpisaniu: php install_database_mysql.php - wywalił błąd że nie może się połączyć z bazą.

 

 

root@credes:~/TS3/channeldeleter# php install_database_mysql.php

PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0
<!doctype html>
<html>
<head>
  <title>TS-N.NET Channeldeleter - Install MySQL Database</title>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
PHP Fatal error:  Call to undefined function mysql_connect() in /root/TS3/channeldeleter/install_database_mysql.php on line 13
 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...