Arquivos

Aqui aparecem os posts dos arquivos selecionados.

Arquivos do mês: novembro 2016

Bootstrap Tour, menu não abre corretamente

Olá,

Passei por esse problema recentemente e encontrei uma solução utilizando jQuery.

No passo anterior ao do menu coloquei assim:

onNext: function(tour){
 $('.dropdown ul').stop( true, true ).slideDown("fast");
}

Mas pode utilizar em qualquer uma das funções do step do tour.

Segue funcionando aqui: Jsfiddle

Apache Segmentation fault on configtest

Olá,

1 – O erro:

# /etc/init.d/apache2 start
 * Starting web server apache2
 * The apache2 configtest failed.
Output of config test was:
/usr/sbin/apache2ctl: line 138: 23872 Segmentation fault      $HTTPD ${APACHE_ARGUMENTS} -t
Action 'configtest' failed.
The Apache error log may have more information.

2 – Cheque os modulos de php instalados:

ls -1 /etc/apache2/mods-enabled/*php*

3 – Desabilite o que não irá utilizar, exemplo:

a2dismod php5

4 – Reiniciar o apache:

service apache2 restart

Instalando VSFTP

Olá,

1 – Instalar:

apt-get install vsftpd

2 – Configurar:

vim /etc/vsftpd.conf

3 – Criar pasta para o utilizador:

mkdir /home/user

4 – Criando ele no servidor:

useradd user

5 – Criando a senha para ele:

passwd user

6 – Reiniciar o servidor:

service vsftpd restart

 

Um arquivo já configurado com até o modo passivo ativo, ele está em txt vsftpd-conf.

Indexes travado em “processando” no Magento

Olá,

1 – No terminal do ubuntu digite:

php suapastamagento/html/shell/indexer.php -reindex catalog_product_attribute
php suapastamagento/html/shell/indexer.php -reindex catalogsearch_fulltext
php suapastamagento/html/shell/indexer.php -reindex catalog_category_flat
php suapastamagento/html/shell/indexer.php -reindex cataloginventory_stock
php suapastamagento/html/shell/indexer.php -reindex catalog_category_product
php suapastamagento/html/shell/indexer.php -reindex catalog_product_price
php suapastamagento/html/shell/indexer.php -reindex tag_summary
php suapastamagento/html/shell/indexer.php -reindex catalog_url

 

CUIDADO

Ao fazer isso todos os url_rewrite serão apagados e iniciados, qualquer um que tenha criado manualmente será apagado.

Erro mcrypt no phpmyadmin

Olá,

Mensagem: A extensão mcrypt não está presente. Por favor, verifique a configuração do PHP.

1 – Verificar se está instalado

dpkg -l | grep mcrypt

2 – Instalar a biblioteca

apt-get install php5-mcrypt

3 – Ativando o mcrypt

php5enmod mcrypt

4 – Reiniciando o apache

sevice apache2 restart