Skip to content

Instantly share code, notes, and snippets.

@maltzsama
Last active December 16, 2015 07:08
Show Gist options
  • Select an option

  • Save maltzsama/5396152 to your computer and use it in GitHub Desktop.

Select an option

Save maltzsama/5396152 to your computer and use it in GitHub Desktop.
wordpress debian squeeze
sudo su
apt-get install wordpress
ln -s /usr/share/wordpress/ wordpress
cd /usr/share/doc/wordpress/examples/
setup-mysql -n wordpress localhost
cp /var/www/wordpress/wp-config.php /var/www/wordpress/wp-config.php.bkp
cp /var/www/wordpress/wp-config-sample.php /var/www/wordpress/wp-config.php
vim /var/www/wordpress/wp-config.php
#Conteudo do Arquivo
define('DB_NAME', 'wordpress');
define('DB_USER', 'root');
define('DB_PASSWORD', 'root');
define('DB_HOST', 'localhost:8889');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');
#Reinicie o servidor lighttpd
/etc/init.d/lighttpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment