Postado Março 15, 2018 8 anos alguen pode me ajudar fiz todo o procedimento mas meu site nem o phpmyadmin nem mysql quer funcionar helppp ja conpilei so falta o site para poder colocar meu server online ajuda ae galera root@root:~# apt-get update Hit http://ftp.debian.org jessie-updates InRelease Hit http://security.debian.org jessie/updates InRelease Ign http://ftp.debian.org jessie InRelease Hit http://ftp.debian.org jessie Release.gpg Hit http://security.debian.org jessie/updates/main Sources Hit http://ftp.debian.org jessie Release Hit http://security.debian.org jessie/updates/main amd64 Packages Hit http://security.debian.org jessie/updates/main Translation-en Hit http://ftp.debian.org jessie-updates/main Sources Get:1 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [10.9 kB] Get:2 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3,688 B] Hit http://ftp.debian.org jessie/main Sources Hit http://ftp.debian.org jessie/main amd64 Packages Hit http://ftp.debian.org jessie/main Translation-en Fetched 14.5 kB in 3s (4,583 B/s) Reading package lists... Done root@root:~# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... The following packages were automatically installed and are no longer required: dbconfig-common javascript-common libaio1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libgd3 libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4 libonig2 libqdbm14 libvpx1 libxpm4 ssl-cert Use 'apt-get autoremove' to remove them. Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@root:~# apt-get autoremove Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: dbconfig-common javascript-common libaio1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libgd3 libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4 libonig2 libqdbm14 libvpx1 libxpm4 ssl-cert 0 upgraded, 0 newly installed, 15 to remove and 0 not upgraded. After this operation, 5,905 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 57480 files and directories currently installed.) Removing dbconfig-common (1.8.47+nmu3+deb8u1) ... Removing javascript-common (11) ... Removing libaio1:amd64 (0.3.110-1) ... Removing libaprutil1-dbd-sqlite3:amd64 (1.5.4-1) ... Removing libaprutil1-ldap:amd64 (1.5.4-1) ... Removing libgd3:amd64 (2.1.0-5+deb8u11) ... Removing libjs-sphinxdoc (1.2.3+dfsg-1) ... Removing libjs-jquery (1.7.2+dfsg-3.2) ... Removing libjs-underscore (1.7.0~dfsg-1) ... Removing libmcrypt4 (2.5.8-3.3) ... Removing libonig2:amd64 (5.9.5-3.2+deb8u1) ... Removing libqdbm14 (1.8.78-5+b1) ... Removing libvpx1:amd64 (1.3.0-3+deb8u1) ... Removing libxpm4:amd64 (1:3.5.12-0+deb8u1) ... Removing ssl-cert (1.0.35) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... root@root:~# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. root@root:~# apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2-bin apache2-data apache2-utils libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert Suggested packages: apache2-doc apache2-suexec-pristine apache2-suexec-custom openssl-blacklist The following NEW packages will be installed: apache2 apache2-bin apache2-data apache2-utils libaprutil1-dbd-sqlite3 libaprutil1-ldap ssl-cert 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1,661 kB of archives. After this operation, 5,402 kB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64. (Reading database ... 57137 files and directories currently installed.) Preparing to unpack .../libaprutil1-dbd-sqlite3_1.5.4-1_amd64.deb ... Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.4-1) ... Selecting previously unselected package libaprutil1-ldap:amd64. Preparing to unpack .../libaprutil1-ldap_1.5.4-1_amd64.deb ... Unpacking libaprutil1-ldap:amd64 (1.5.4-1) ... Selecting previously unselected package apache2-bin. Preparing to unpack .../apache2-bin_2.4.10-10+deb8u11_amd64.deb ... Unpacking apache2-bin (2.4.10-10+deb8u11) ... Selecting previously unselected package apache2-utils. Preparing to unpack .../apache2-utils_2.4.10-10+deb8u11_amd64.deb ... Unpacking apache2-utils (2.4.10-10+deb8u11) ... Selecting previously unselected package apache2-data. Preparing to unpack .../apache2-data_2.4.10-10+deb8u11_all.deb ... Unpacking apache2-data (2.4.10-10+deb8u11) ... Selecting previously unselected package apache2. Preparing to unpack .../apache2_2.4.10-10+deb8u11_amd64.deb ... Unpacking apache2 (2.4.10-10+deb8u11) ... Selecting previously unselected package ssl-cert. Preparing to unpack .../ssl-cert_1.0.35_all.deb ... Unpacking ssl-cert (1.0.35) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for systemd (215-17+deb8u7) ... Setting up libaprutil1-dbd-sqlite3:amd64 (1.5.4-1) ... Setting up libaprutil1-ldap:amd64 (1.5.4-1) ... Setting up apache2-bin (2.4.10-10+deb8u11) ... Setting up apache2-utils (2.4.10-10+deb8u11) ... Setting up apache2-data (2.4.10-10+deb8u11) ... Setting up apache2 (2.4.10-10+deb8u11) ... Enabling module mpm_event. Enabling module authz_core. Enabling module authz_host. Enabling module authn_core. Enabling module auth_basic. Enabling module access_compat. Enabling module authn_file. Enabling module authz_user. Enabling module alias. Enabling module dir. Enabling module autoindex. Enabling module env. Enabling module mime. Enabling module negotiation. Enabling module setenvif. Enabling module filter. Enabling module deflate. Enabling module status. Enabling module reqtimeout. Enabling conf charset. Enabling conf localized-error-pages. Enabling conf other-vhosts-access-log. Enabling conf security. Enabling conf serve-cgi-bin. Enabling site 000-default. Setting up ssl-cert (1.0.35) ... Processing triggers for systemd (215-17+deb8u7) ... root@root:~# cd /var/www root@root:/var/www# apt-get install php5 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libapache2-mod-php5 libonig2 libqdbm14 php5-cli php5-common php5-json php5-readline Suggested packages: php-pear php5-user-cache The following NEW packages will be installed: libapache2-mod-php5 libonig2 libqdbm14 php5 php5-cli php5-common php5-json php5-readline 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5,438 kB of archives. After this operation, 21.5 MB of additional disk space will be used. Do you want to continue? [Y/n] y Selecting previously unselected package libonig2:amd64. (Reading database ... 57797 files and directories currently installed.) Preparing to unpack .../libonig2_5.9.5-3.2+deb8u1_amd64.deb ... Unpacking libonig2:amd64 (5.9.5-3.2+deb8u1) ... Selecting previously unselected package libqdbm14. Preparing to unpack .../libqdbm14_1.8.78-5+b1_amd64.deb ... Unpacking libqdbm14 (1.8.78-5+b1) ... Selecting previously unselected package php5-common. Preparing to unpack .../php5-common_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-common (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package php5-json. Preparing to unpack .../php5-json_1.3.6-1_amd64.deb ... Unpacking php5-json (1.3.6-1) ... Selecting previously unselected package php5-cli. Preparing to unpack .../php5-cli_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-cli (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package libapache2-mod-php5. Preparing to unpack .../libapache2-mod-php5_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package php5. Preparing to unpack .../php5_5.6.33+dfsg-0+deb8u1_all.deb ... Unpacking php5 (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package php5-readline. Preparing to unpack .../php5-readline_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-readline (5.6.33+dfsg-0+deb8u1) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up libonig2:amd64 (5.9.5-3.2+deb8u1) ... Setting up libqdbm14 (1.8.78-5+b1) ... Setting up php5-common (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/mods-available/pdo.ini with new version php5_invoke: Enable module pdo for cli SAPI php5_invoke: Enable module pdo for apache2 SAPI Creating config file /etc/php5/mods-available/opcache.ini with new version php5_invoke: Enable module opcache for cli SAPI php5_invoke: Enable module opcache for apache2 SAPI Setting up php5-json (1.3.6-1) ... php5_invoke: Enable module json for cli SAPI php5_invoke: Enable module json for apache2 SAPI Setting up php5-cli (5.6.33+dfsg-0+deb8u1) ... update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode update-alternatives: using /usr/bin/phar5 to provide /usr/bin/phar (phar) in auto mode Creating config file /etc/php5/cli/php.ini with new version Setting up libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/apache2/php.ini with new version Module mpm_event disabled. Enabling module mpm_prefork. apache2_switch_mpm Switch to prefork apache2_invoke: Enable module php5 Setting up php5 (5.6.33+dfsg-0+deb8u1) ... Setting up php5-readline (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/mods-available/readline.ini with new version php5_invoke: Enable module readline for cli SAPI php5_invoke: Enable module readline for apache2 SAPI Processing triggers for libc-bin (2.19-18+deb8u10) ... Processing triggers for libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... root@root:/var/www# /etc/init.d/apache2 restart [ ok ] Restarting apache2 (via systemctl): apache2.service. root@root:/var/www# apt-get install mysql-server Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libaio1 mysql-server-5.5 mysql-server-core-5.5 Suggested packages: tinyca The following NEW packages will be installed: libaio1 mysql-server mysql-server-5.5 mysql-server-core-5.5 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5,278 kB of archives. After this operation, 52.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... Selecting previously unselected package libaio1:amd64. (Reading database ... 57898 files and directories currently installed.) Preparing to unpack .../libaio1_0.3.110-1_amd64.deb ... Unpacking libaio1:amd64 (0.3.110-1) ... Selecting previously unselected package mysql-server-core-5.5. Preparing to unpack .../mysql-server-core-5.5_5.5.59-0+deb8u1_amd64.deb ... Unpacking mysql-server-core-5.5 (5.5.59-0+deb8u1) ... Selecting previously unselected package mysql-server-5.5. Preparing to unpack .../mysql-server-5.5_5.5.59-0+deb8u1_amd64.deb ... Unpacking mysql-server-5.5 (5.5.59-0+deb8u1) ... Selecting previously unselected package mysql-server. Preparing to unpack .../mysql-server_5.5.59-0+deb8u1_all.deb ... Unpacking mysql-server (5.5.59-0+deb8u1) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for systemd (215-17+deb8u7) ... Setting up libaio1:amd64 (0.3.110-1) ... Setting up mysql-server-core-5.5 (5.5.59-0+deb8u1) ... Setting up mysql-server-5.5 (5.5.59-0+deb8u1) ... 180315 16:48:41 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead. 180315 16:48:41 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap. 180315 16:48:41 [Note] /usr/sbin/mysqld (mysqld 5.5.59-0+deb8u1) starting as process 4526 ... Setting up mysql-server (5.5.59-0+deb8u1) ... Processing triggers for libc-bin (2.19-18+deb8u10) ... Processing triggers for systemd (215-17+deb8u7) ... root@root:/var/www# apt-get install libapache2-mod-auth-mysql Reading package lists... Done Building dependency tree Reading state information... Done Package libapache2-mod-auth-mysql is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'libapache2-mod-auth-mysql' has no installation candidate root@root:/var/www# Package libapache2-mod-auth-mysql is not available, but is referred to by another package. -bash: Package: command not found root@root:/var/www# This may mean that the package is missing, has been obsoleted, or -bash: This: command not found root@root:/var/www# is only available from another source -bash: is: command not found root@root:/var/www# root@root:/var/www# E: Package 'libapache2-mod-auth-mysql' has no installation candidate -bash: E:: command not found root@root:/var/www# apt-get install php5-mysql Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: php5-mysql 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/65.8 kB of archives. After this operation, 309 kB of additional disk space will be used. Selecting previously unselected package php5-mysql. (Reading database ... 58086 files and directories currently installed.) Preparing to unpack .../php5-mysql_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-mysql (5.6.33+dfsg-0+deb8u1) ... Processing triggers for libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... Setting up php5-mysql (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/mods-available/mysql.ini with new version php5_invoke: Enable module mysql for cli SAPI php5_invoke: Enable module mysql for apache2 SAPI Creating config file /etc/php5/mods-available/mysqli.ini with new version php5_invoke: Enable module mysqli for cli SAPI php5_invoke: Enable module mysqli for apache2 SAPI Creating config file /etc/php5/mods-available/pdo_mysql.ini with new version php5_invoke: Enable module pdo_mysql for cli SAPI php5_invoke: Enable module pdo_mysql for apache2 SAPI Processing triggers for libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... root@root:/var/www# apt-get install mysql-server php5-mysql phpmyadmin Reading package lists... Done Building dependency tree Reading state information... Done mysql-server is already the newest version. php5-mysql is already the newest version. The following extra packages will be installed: dbconfig-common javascript-common libgd3 libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4 libvpx1 libxpm4 php-gettext php-tcpdf php5-gd php5-mcrypt Suggested packages: libgd-tools libmcrypt-dev mcrypt php5-imagick The following NEW packages will be installed: dbconfig-common javascript-common libgd3 libjs-jquery libjs-sphinxdoc libjs-underscore libmcrypt4 libvpx1 libxpm4 php-gettext php-tcpdf php5-gd php5-mcrypt phpmyadmin 0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/13.5 MB of archives. After this operation, 49.8 MB of additional disk space will be used. Do you want to continue? [Y/n] y Preconfiguring packages ... Selecting previously unselected package libvpx1:amd64. (Reading database ... 58097 files and directories currently installed.) Preparing to unpack .../libvpx1_1.3.0-3+deb8u1_amd64.deb ... Unpacking libvpx1:amd64 (1.3.0-3+deb8u1) ... Selecting previously unselected package libxpm4:amd64. Preparing to unpack .../libxpm4_1%3a3.5.12-0+deb8u1_amd64.deb ... Unpacking libxpm4:amd64 (1:3.5.12-0+deb8u1) ... Selecting previously unselected package libgd3:amd64. Preparing to unpack .../libgd3_2.1.0-5+deb8u11_amd64.deb ... Unpacking libgd3:amd64 (2.1.0-5+deb8u11) ... Selecting previously unselected package dbconfig-common. Preparing to unpack .../dbconfig-common_1.8.47+nmu3+deb8u1_all.deb ... Unpacking dbconfig-common (1.8.47+nmu3+deb8u1) ... Selecting previously unselected package javascript-common. Preparing to unpack .../javascript-common_11_all.deb ... Unpacking javascript-common (11) ... Selecting previously unselected package libjs-jquery. Preparing to unpack .../libjs-jquery_1.7.2+dfsg-3.2_all.deb ... Unpacking libjs-jquery (1.7.2+dfsg-3.2) ... Selecting previously unselected package libjs-underscore. Preparing to unpack .../libjs-underscore_1.7.0~dfsg-1_all.deb ... Unpacking libjs-underscore (1.7.0~dfsg-1) ... Selecting previously unselected package libjs-sphinxdoc. Preparing to unpack .../libjs-sphinxdoc_1.2.3+dfsg-1_all.deb ... Unpacking libjs-sphinxdoc (1.2.3+dfsg-1) ... Selecting previously unselected package libmcrypt4. Preparing to unpack .../libmcrypt4_2.5.8-3.3_amd64.deb ... Unpacking libmcrypt4 (2.5.8-3.3) ... Selecting previously unselected package php-gettext. Preparing to unpack .../php-gettext_1.0.11-1_all.deb ... Unpacking php-gettext (1.0.11-1) ... Selecting previously unselected package php-tcpdf. Preparing to unpack .../php-tcpdf_6.0.093+dfsg-1+deb8u1_all.deb ... Unpacking php-tcpdf (6.0.093+dfsg-1+deb8u1) ... Selecting previously unselected package php5-gd. Preparing to unpack .../php5-gd_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-gd (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package php5-mcrypt. Preparing to unpack .../php5-mcrypt_5.6.33+dfsg-0+deb8u1_amd64.deb ... Unpacking php5-mcrypt (5.6.33+dfsg-0+deb8u1) ... Selecting previously unselected package phpmyadmin. Preparing to unpack .../phpmyadmin_4%3a4.2.12-2+deb8u2_all.deb ... Unpacking phpmyadmin (4:4.2.12-2+deb8u2) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... Processing triggers for hicolor-icon-theme (0.13-1) ... Setting up libvpx1:amd64 (1.3.0-3+deb8u1) ... Setting up libxpm4:amd64 (1:3.5.12-0+deb8u1) ... Setting up libgd3:amd64 (2.1.0-5+deb8u11) ... Setting up dbconfig-common (1.8.47+nmu3+deb8u1) ... Setting up javascript-common (11) ... apache2_invoke: Enable configuration javascript-common Setting up libjs-jquery (1.7.2+dfsg-3.2) ... Setting up libjs-underscore (1.7.0~dfsg-1) ... Setting up libjs-sphinxdoc (1.2.3+dfsg-1) ... Setting up libmcrypt4 (2.5.8-3.3) ... Setting up php-gettext (1.0.11-1) ... Setting up php-tcpdf (6.0.093+dfsg-1+deb8u1) ... Setting up php5-gd (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/mods-available/gd.ini with new version php5_invoke: Enable module gd for cli SAPI php5_invoke: Enable module gd for apache2 SAPI Setting up php5-mcrypt (5.6.33+dfsg-0+deb8u1) ... Creating config file /etc/php5/mods-available/mcrypt.ini with new version php5_invoke: Enable module mcrypt for cli SAPI php5_invoke: Enable module mcrypt for apache2 SAPI Setting up phpmyadmin (4:4.2.12-2+deb8u2) ... dbconfig-common: writing config to /etc/dbconfig-common/phpmyadmin.conf Creating config file /etc/dbconfig-common/phpmyadmin.conf with new version Creating config file /etc/phpmyadmin/config-db.php with new version granting access to database phpmyadmin for phpmyadmin@localhost: success. verifying access for phpmyadmin@localhost: success. creating database phpmyadmin: success. verifying database phpmyadmin exists: success. populating database via sql... done. dbconfig-common: flushing administrative password Processing triggers for libc-bin (2.19-18+deb8u10) ... Processing triggers for libapache2-mod-php5 (5.6.33+dfsg-0+deb8u1) ... root@root:/var/www# echo "include /etc/phpmyadmin/apache.conf" | sudo tee -a /etc/apache2/apache2.conf -bash: sudo: command not found root@root:/var/www# ln -fvs /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf ln: failed to create symbolic link ‘/etc/apache2/conf.d/phpmyadmin.conf’: No such file or directory root@root:/var/www# /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf -bash: /etc/phpmyadmin/apache.conf: Permission denied root@root:/var/www# /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf -bash: /etc/phpmyadmin/apache.conf: Permission denied root@root:/var/www# /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf -bash: /etc/phpmyadmin/apache.conf: Permission denied root@root:/var/www# /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf /etc/phpmyadmin/apache.conf: line 3: Alias: command not found /etc/phpmyadmin/apache.conf: line 5: syntax error near unexpected token `newline' /etc/phpmyadmin/apache.conf: line 5: `<Directory /usr/share/phpmyadmin>' root@root:/var/www# ln -fvs /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf ln: failed to create symbolic link ‘/etc/apache2/conf.d/phpmyadmin.conf’: No such file or directory root@root:/var/www# /etc/init.d/apache2 restart [ ok ] Restarting apache2 (via systemctl): apache2.service. root@root:/var/www#
Postado Março 22, 2018 8 anos Em 28/05/2014 em 21:49, Matk disse: [Atenção] Este tutorial é recomendado para que já sabe manusear um servidor Linux! Galerinha, eu sei que já existem diversos tópicos semelhantes à este aqui no TK, mas eu resolvi postar este tutorial pois eu deixarei aqui de forma simples e reduzia como você deve montar sua maquina Linux para deixar seu servidor online direitinho. Primeiramente você precisará baixar e instalar os seguintes programas: Putty e FileZilla. Utilize os dados abaixo para se conectar ao seu servidor Linux: INSTALAR APACHE, MYSQL E PHPMYADMIN Vamos configurar tudo para o site do seu OTServ. Se aparecer algo (Y or N?) digita Y e da enter. Espere sempre finalizar um processo para iniciar o outro. 1 - Acesse seu Putty e digite os seguintes comandos em sequencia: apt-get update apt-get upgrade apt-get install apache2 cd /var/www apt-get install php5 /etc/init.d/apache2 restart Pronto, você instalou o Apache2 e o php5 que serão necessários para deixar online o site do seu OTServ. 2 - Agora vamos instalar o MySQL em seu servidor Linux, digite os seguintes códigos em sequencia: Aqui você vai escolher uma senha para o MySQL. apt-get install mysql-server apt-get install libapache2-mod-auth-mysql apt-get install php5-mysql Pronto, você instalou o MySQL em seu servidor Linux, ele será necessário para o banco de dados do seu OTServ. 3 - Agora nós vamos instalar o phpMyAdmin, digite os seguintes códigos em sequencia: Aqui você vai escolher uma senha para o phpMyAdmin. (Senha que você usará no phpMyAdmin) apt-get install phpmyadmin Ubuntu: echo "include /etc/phpmyadmin/apache.conf" | sudo tee -a /etc/apache2/apache2.conf Debian: ln -fvs /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf /etc/init.d/apache2 restart Pronto, você instalou o phpMyAdmin, ele irá servir para você administrar seu MySQL. Enfim, você instalou tudo necessário para deixar o site do seu OTServ online, confira o seu site em http://seuip e confira seu phpMyadmin em http://seuip/phpmyadmin (user:root/pass:suasenha). COMPILAR OTSERV LINUX (DEBIAN E UBUNTU) Lembre-se, eu ensinarei você a compilar seu OTServ em Ubuntu e Debian. Se aparecer algo (Y or N?) digita Y e da enter. Espere sempre finalizar um processo para iniciar o outro. 1 - Acesse sua maquina e vá até a pasta /etc/apt, agora edite o arquivo sources.list adicionando a tag: Ubuntu: deb http://ubuntu.mirror.cambrium.nl/ubuntu/ lucid main Debian: deb http://ftp.de.debian.org/debian squeeze main Agora salve o arquivo sources.list atualizado na pasta /etc/apt. 2 - Agora acesse seu Putty e vamos iniciar a instalação das libs necessárias para rodar seu OTServ. Digite os comandos em sequencia: Ubuntu e Debian: apt-get update apt-get upgrade apt-get install libboost-all-dev apt-get install subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev libcrypto++-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev apt-get install libcurl4-openssl-dev apt-get install screen Pronto, feito isso você terá tudo configurado para que você possa compilar e botar seu OTServ online. 3 - Agora nós vamos compilar o seu OTServ, mas para isso preciso que você utilize o FileZilla e bote a pasta do seu OTServ nomeada como "otserv" na pasta home, ou seja, /otserv e a deixe a pasta das suas sources dentro da pasta do seu otserv nomeada como "trunk", ou seja /otserv/trunk. Enfim, vamos compilar seu OTServ, digite os seguintes comandos em sequencia: cd /otserv chmod 777 -R trunk cd /otserv/trunk sh ./autogen.sh && ./configure --enable-server-diag --enable-mysql --enable-root-permission && make clean && make -j 2 Pronto, se não ocorrer nenhum erro de compilação em suas sources e tudo der certo você terá seu distro pronto para deixar o seu OTServ online em Linux! 4 - Agora vamos para a parte mais simples, vamos finalmente botar seu OTServ online, vá até a pasta /otserv/trunk e arraste o arquivo theforgottenserver para a pasta /otserv e digite os seguinte comando de permissão: cd /otserv && chmod 777 -R theforgottenserver Enfim, finalmente vamos botar o seu OTServ online, depois de você ter configurado sua config.lua e etc... Execute o comando: screen ./theforgottenserver Você pode fechar o Putty que o seu OTServ continuará online, caso queira ver os logs basta abrir o Putty e executar: screen -x Você pode fechar seu OTServ apertando Ctrl+C para fechar a screen ou executando o seguinte comando: killall -SIGQUIT theforgottenserver ou killall -3 theforgottenserver ALELUIA, TERMINAMOSS!!! Agora você tem o seu OTServ totalmente configurado em seu servidor Linux, bacana não!? Créditos: Matheus Natanael Beckman gpedro Weblara Você gostou deste conteúdo!? Este conteúdo te ajudou!? Isso será realmente útil pra você!? Então, se possível, faça uma doação (de qualquer valor) que estará me ajudando também! irmão ta Dando esse eerro ai
Postado Abril 7, 2018 8 anos to com esse erro: The requested URL / was not found on this server. Apache/2.4.7 (Ubuntu) Server at 35.196.101.44 Port 80
Postado Maio 5, 2018 8 anos Amigo está dando um erro na hora de compilar, erro: https://prnt.sc/jdwlbu Se conseguir me ajudar agradeço.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.