Archive for Uncategorized

Updating/ Installing wordpress plugins asking for FTP details

Sometimes updating/installing plugins from wordpress will ask for the FTP details. Even if we provide the details it won’t work.  To fix this issue you just need to enter the ftp details to wp-config.php file and it will never asks again.

Go to the root directory where word press is installed and open wp-config,php

vi wp-config.php

and add the below details to it

/*** FTP login settings ***/
define("FTP_HOST", "localhost");
define("FTP_USER", "yourftpusername");
define("FTP_PASS", "yourftppassword");

replace it with the original values and put it somewhere after the mysql username/password block.

I got a post while searching in internet which explains why we need to make these changes.payday loans Refer the below link for more details.

http://goo.gl/s9Fc1

 

viagra

viagra

How to create apache virtual hosts in apache2(Ubuntu)

The layout of apache configurations in rehat distros and debian distros are entirely different. I’m here explaining how to create a virtual host in ubuntu.

In your home directory create a ‘public_html’ folder and create sub directories as follows.


mkdir -p public_html/domain.com/{public,private,log,cgi-bin,backup}

And then create a sample test.html file in public_html directory. Make sure that the public_html directory has be read and executable permissions.

Now we need to add virtual host entry in sites-available directory.


nano /etc/apache2/sites-available/domain.com

# domain: domain.com
# public: /home/demo/public_html/domain.com/

<VirtualHost *:80>

  # Admin email, Server Name (domain name) and any aliases
  ServerAdmin webmaster@domain.com
  ServerName  www.domain.com
  ServerAlias domain.com

  # Index file and Document Root (where the public files are located)
  DirectoryIndex index.html
  DocumentRoot /home/demo/public_html/domain.com/public

  # Custom log file locations
  LogLevel warn
  ErrorLog  /home/demo/public_html/domain.com/log/error.log
  CustomLog /home/demo/public_html/domain.com/log/access.log combined

</VirtualHost>

Read more

Unable to start directadmin + ‘directadmin dead but pid file exists’

Have you ever encountered the below issue with directadmin. If we tried to restart directadmin it will not lsit any error but if you check the status you will see the below error.

/etc/init.d/directadmin status
directadmin dead but pid file exists
You can view the detailed error log by using the below command
tail /var/log/directadmin/error.log
Check the value of your ethernet_dev=eth0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>

2010:07:10-12:44:01: ioctl can’t find the server’s ip address for eth0 : No such device
2010:07:10-12:44:02: The ip of this machine () does not match the ip in the license file.<br>
Check the value of your ethernet_dev=eth0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>

2010:07:10-12:44:11: ioctl can’t find the server’s ip address for eth0 : No such device
2010:07:10-12:44:12: The ip of this machine () does not match the ip in the license file.<br>
Check the value of your ethernet_dev=eth0 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig<br>
Then find out where the main IP is located, using the command ifconfig. If the main ip venet0:0 then edit
vi /usr/local/directadmin/conf/directadmin.conf
and replace the ethernet_dev=eth0 by ethernet_dev=venet0:0.
If the entries are not already there just add ethernet_dev=venet0:0 and then restart direct admin. Thats it!!!