Fórum Ubuntu Linux - PT
Suporte Técnico => Servidores => Tópico iniciado por: maurov em 28 de Agosto de 2018, 11:01
-
Depois de fazer um purge,
mauro@mauro64:~$ sudo apt purge warsaw
Reboot e aparece vazio com
mauro@mauro64:~$ pgrep warsaw
e também nada em
mauro@mauro64:~$ pstree
Mas dúvida se foi removido, pois
mauro@mauro64:~$ ps aux | grep -i warsaw
mauro 2707 0.0 0.0 14252 1024 pts/3 S+ 10:52 0:00 grep --color=auto -i warsaw
Dá o mesmo número 14252 para filezilla, por exemplo
mauro@mauro64:~$ ps aux | grep -i filezilla
mauro 3236 0.0 0.0 14252 972 pts/3 S+ 11:09 0:00 grep --color=auto -i filezilla
-
Esse "14252" é o PPID (Parent Process ID) do processo grep (que quase sempre tem o padrão sendo procurado em sua linha de comando, por isso quase sempre vem como resultado da busca, na lista de processos). Ou seja, ele é o PID do seu shell, que é o mesmo de onde vc chamou os dois comandos, por isso é o mesmo valor.
-
;)
Aproveitando. As vezes o ps aux traz o cabeçalho, outras não.
$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
timothy 29217 0.0 0.0 11916 4560 pts/21 S+ 08:15 0:00 pine
root 29505 0.0 0.0 38196 2728 ? Ss Mar07 0:00 sshd: can [priv]
can 29529 0.0 0.0 38332 1904 ? S Mar07 0:00 sshd: can@notty
$ ps aux
timothy 29217 0.0 0.0 11916 4560 pts/21 S+ 08:15 0:00 pine
root 29505 0.0 0.0 38196 2728 ? Ss Mar07 0:00 sshd: can [priv]
can 29529 0.0 0.0 38332 1904 ? S Mar07 0:00 sshd: can@notty
USER = user owning the process
PID = process ID of the process
%CPU = It is the CPU time used divided by the time the process has been running.
%MEM = ratio of the process’s resident set size to the physical memory on the machine
VSZ = virtual memory usage of entire process (in KiB)
RSS = resident set size, the non-swapped physical memory that a task has used (in KiB)
TTY = controlling tty (terminal)
STAT = multi-character process state
START = starting time or date of the process
TIME = cumulative CPU time
COMMAND = command with all its arguments
-
;)
Aproveitando. As vezes o ps aux traz o cabeçalho, outras não.
$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
timothy 29217 0.0 0.0 11916 4560 pts/21 S+ 08:15 0:00 pine
root 29505 0.0 0.0 38196 2728 ? Ss Mar07 0:00 sshd: can [priv]
can 29529 0.0 0.0 38332 1904 ? S Mar07 0:00 sshd: can@notty
$ ps aux
timothy 29217 0.0 0.0 11916 4560 pts/21 S+ 08:15 0:00 pine
root 29505 0.0 0.0 38196 2728 ? Ss Mar07 0:00 sshd: can [priv]
can 29529 0.0 0.0 38332 1904 ? S Mar07 0:00 sshd: can@notty
USER = user owning the process
PID = process ID of the process
%CPU = It is the CPU time used divided by the time the process has been running.
%MEM = ratio of the process’s resident set size to the physical memory on the machine
VSZ = virtual memory usage of entire process (in KiB)
RSS = resident set size, the non-swapped physical memory that a task has used (in KiB)
TTY = controlling tty (terminal)
STAT = multi-character process state
START = starting time or date of the process
TIME = cumulative CPU time
COMMAND = command with all its arguments
Então eu estava errado, não é o PPID que você está vendo, é o VSZ.
-
Na mesma linha de raciocínio.
Se eu digitar no brower 127.0.0.1/phpmyadmin não abre nada. Mas com:
dpkg -i
phpmyadmin 4:4.6.6-5 all MySQL web administration tool
ou
psaux /phpmyadmin
phpmyadmin: comando não encontrado
O phpmyadmin que estava instalado antes do upgrade de 16.04 para 18.04 continua lá? Como acesso-o?
-
O pacote phpMyAdmin não disponibiliza ferramentas de linha de comando. Tente acessá-lo, no browser, usando as letras "M" e "A" maiúsculas, como eu fiz.
-
Com 127.0.0.1/ ou 192.168.0.10/
The requested URL /phpMyAdmin was not found on this server.
The requested URL /phpmyadmin was not found on this server.
Não é erro de digitação, pois estava nos favoritos do firefox.
-
Dentro da pasta "/etc/apache2/conf.d" deve haver um arquivo "phpmyadmin.conf". Pode postar seu conteúdo?
-
Não tem o conf.d
:/etc/apache2$ ls -lh
total 88K
-rw-r--r-- 1 root root 7,1K jun 7 18:10 apache2.conf
-rw-r--r-- 1 root root 7,0K jan 27 2017 apache2.conf.dpkg-old
drwxr-xr-x 2 root root 4,0K ago 28 13:28 conf-available
drwxr-xr-x 2 root root 4,0K jan 27 2017 conf-enabled
-rw-r--r-- 1 root root 1,8K jun 7 18:10 envvars
-rw-r--r-- 1 root root 31K mar 19 2016 magic
drwxr-xr-x 2 root root 12K ago 28 13:31 mods-available
drwxr-xr-x 2 root root 4,0K ago 28 13:50 mods-enabled
-rw-r--r-- 1 root root 320 mar 19 2016 ports.conf
drwxr-xr-x 2 root root 4,0K ago 28 13:28 sites-available
drwxr-xr-x 2 root root 4,0K jan 26 2017 sites-enabled
-
Estranho... "conf-available" e "conf-enabled", é outro estilo de configuração que não bate com o normal pro Apache padrão do Ubuntu, até onde me lembro. Preciso confirmar isso...
Enquanto isso, olhe em "conf-enabled" se o arquivo "phpmyadmin" está lá. Havendo, deve ser um link simbólico pra um arquivo do mesmo nome em "/etc/phpmyadmin" ou em "/etc/apache2/conf-available".
Se não estiver em "conf-enabled", olhe nas pastas "/etc/phpmyadmin" e "/etc/apache2/conf-available", onde você achá-lo, deve criar um link simbólico para a primeira pasta.
-
Pois é, não tem este link.
:/etc/apache2/conf-enabled$ ls -lh
total 0
lrwxrwxrwx 1 root root 30 jan 26 2017 charset.conf -> ../conf-available/charset.conf
lrwxrwxrwx 1 root root 40 jan 27 2017 javascript-common.conf -> ../conf-available/javascript-common.conf
lrwxrwxrwx 1 root root 44 jan 26 2017 localized-error-pages.conf -> ../conf-available/localized-error-pages.conf
lrwxrwxrwx 1 root root 46 jan 26 2017 other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf
lrwxrwxrwx 1 root root 31 jan 26 2017 security.conf -> ../conf-available/security.conf
lrwxrwxrwx 1 root root 36 jan 26 2017 serve-cgi-bin.conf -> ../conf-available/serve-cgi-bin.conf
-
Por isso não está ativo. Você instalou o phpMyAdmin por pacote, ou direto do site?
-
Já estava instalado e funcionando quando a máquina estava com a versão 16.04LTS, mas não me recordo como, talvez um apt install lamp, na época. Qunado fiz upgrade para a 18.04 LTS não consegui mais acessar.
-
O problema então provavelmente está relacionado com a mudança da versão do Apache, na mudança de estilo de configuração.
A pasta "/etc/phpMyAdmin" existe?
-
Sim, existe.
:/etc/phpmyadmin$ ls -lh
total 44K
-rw-r--r-- 1 root root 2,1K jul 10 2017 apache.conf
drwxr-xr-x 2 root root 4,0K jun 17 2016 conf.d
-rw-r----- 1 root www-data 521 ago 28 13:30 config-db.php
-rw-r--r-- 1 root root 168 out 29 2015 config.footer.inc.php
-rw-r--r-- 1 root root 168 out 29 2015 config.header.inc.php
-rw-r--r-- 1 root root 6,2K jan 30 2016 config.inc.php
-rw-r----- 1 root www-data 8 jan 27 2017 htpasswd.setup
-rw-r--r-- 1 root root 646 abr 7 2017 lighttpd.conf
-rw-r--r-- 1 root root 198 out 29 2015 phpmyadmin.desktop
-rw-r--r-- 1 root root 295 out 29 2015 phpmyadmin.service
Apache2 também existe.
:/etc/apache2$ ls -lh
total 88K
-rw-r--r-- 1 root root 7,1K jun 7 18:10 apache2.conf
-rw-r--r-- 1 root root 7,0K jan 27 2017 apache2.conf.dpkg-old
drwxr-xr-x 2 root root 4,0K ago 28 13:28 conf-available
drwxr-xr-x 2 root root 4,0K jan 27 2017 conf-enabled
-rw-r--r-- 1 root root 1,8K jun 7 18:10 envvars
-rw-r--r-- 1 root root 31K mar 19 2016 magic
drwxr-xr-x 2 root root 12K ago 28 13:31 mods-available
drwxr-xr-x 2 root root 4,0K ago 28 13:50 mods-enabled
-rw-r--r-- 1 root root 320 mar 19 2016 ports.conf
drwxr-xr-x 2 root root 4,0K ago 28 13:28 sites-available
drwxr-xr-x 2 root root 4,0K jan 26 2017 sites-enabled
Durante a instalação, houve uma pergunta sobre atualizar determinado arquivo ou deixar na versão antiga. Não recoerdo se foi de mysql ou phpmyadmin ou de apache.2 Optei por atualizar.
-
Você mostrou o conteúdo da pasta "/etc/apache2", não da "/etc/phpMyAdmin".
-
corrigi
-
Sim, existe.
:/etc/phpmyadmin$ ls -lh
total 44K
-rw-r--r-- 1 root root 2,1K jul 10 2017 apache.conf
drwxr-xr-x 2 root root 4,0K jun 17 2016 conf.d
-rw-r----- 1 root www-data 521 ago 28 13:30 config-db.php
-rw-r--r-- 1 root root 168 out 29 2015 config.footer.inc.php
-rw-r--r-- 1 root root 168 out 29 2015 config.header.inc.php
-rw-r--r-- 1 root root 6,2K jan 30 2016 config.inc.php
-rw-r----- 1 root www-data 8 jan 27 2017 htpasswd.setup
-rw-r--r-- 1 root root 646 abr 7 2017 lighttpd.conf
-rw-r--r-- 1 root root 198 out 29 2015 phpmyadmin.desktop
-rw-r--r-- 1 root root 295 out 29 2015 phpmyadmin.service
Certo. Você vai fazer um link simbólico do arquivo "/etc/phpmyamin/apache.conf" para o arquivo "/etc/apache2/conf-enabled/phpmyadmin.conf":
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf
Depois reinicie o serviço do Apache e teste novamente o phpMyAdmin.
-
Fiz. Mudou a tela.
Com 127.0.0.1/phpmyadmin
phpMyAdmin - Error
The mbstring extension is missing. Please check your PHP configuration.
-
Se não me engano essa extensão ao PHP pode ser instalada via APT.
-
Já estava. Inclusive na última versão
apt-get install php-mbstring php-gettext
php-gettext is already the newest version (1.0.12-0.1).
php-gettext configurado para instalar manualmente.
php-mbstring is already the newest version (1:7.2+60ubuntu1).
php-mbstring configurado para instalar manualmente.
-
Seu Apache é do repositório oficial, mesmo?... Não está usando nenhum repositório alternativo?
-
Oficial
tem umas dicas no site do php, http://php.net/manual/en/mbstring.installation.php
The following configure options are related to the mbstring module.
--enable-mbstring : Enable mbstring functions. This option is required to use mbstring functions.
libmbfl is necessary for mbstring. libmbfl is bundled with mbstring. Before PHP 7.3.0, if libmbfl is already installed on the system, --with-libmbfl[=DIR] can be specified to use the installed library.
--disable-mbregex : Disable regular expression functions with multibyte character support.
Conforme a mensagem do post anterior, está para ser configurado manualmente, seja lá o que for isso
-
Bem estranho. Consegue rodar um "phpinfo" no Apache, pra ver quais extensões estão ativas?
PS: Já faz tempo que este tópico não é mais sobre se um processo está rodando ou não, né? Talvez fosse bom editar o título.
Conforme a mensagem do post anterior, está para ser configurado manualmente, seja lá o que for isso
Significa que vc instalou o pacote "php-mbstring" diretamente a partir da linha de comando, e não como pré-requisito de outro pacote.
EDIT: Outra coisa que me passou pela cabeça... as versões desses pacotes todas batem??? Pq há o PHP 5, e o PHP 7, e há esses sub-pacotes tanto pra um quanto pra outro. Talvez fosse o caso de desinstalar tudo do PHP, e reinstalar, com calma, controladamente...
-
Não saberia como fazer isso
Consegue rodar um "phpinfo" no Apache, pra ver quais extensões estão ativas?
O php está rodando legal, assim como o mysql e o apache2.
Podemos tentar remover o phpmyadmin apenas e reinstalá-lo.
Faço um sudo apt purge phpmyadmin e depois um sudo apt install phpmyadmin?
-
Faça o purge no phpmyadmin e em todos os módulos do PHP. Depois certifique-se de estar instalando o PHP7.
-
No purge do phpmyadmin, selecionei NÃO pois há um banco de dados instalado.
No install do php myadmin selecionei de novo a opção NÂO pela mesma razão.
PHP 7.0.30-0ubuntu0.16.04.1 (cli) ( NTS )
Não sei se dá para fazer upload de imagens no forum, então anexei as 2 telas no imgur
https://imgur.com/gallery/JIKeR13 (https://imgur.com/gallery/JIKeR13)
Ao acessar pelo browser segue a mensagem phpMyAdmin - Error
The mbstring extension is missing. Please check your PHP configuration.
Será que tem que refazer aquele link?
-
Tentei de novo purge e install, desta vez com o dbconfig. Não deu.
Reinstalação. :-(