Linux

Fixing broken dbus from Ubuntu 11.04 to 11.10 dist-upgrade

Well it looks like dbus is broken on my Ubuntu 11.10 server after doing a dist-upgrade. Possibly due to a third party script that didn't execute correctly.

Upon startup I get a message stating:
"Waiting for network configuration..."
"Waiting an additional 60 seconds for network"
"System will be booted without full network support"


Taking a look at /var/log/dmesg I can see the errors at the end of the file:
[17.029623] init: dbus main process (696) terminated with status 1
[17.029649] init: dbus main process ended, respawning
[17.030584] init: Unable to connect to the system bus: Failed to
connect to socket /var/run/dbus/system_bus_socket: Connection refused
[17.057128] init: plymouth-upstart-bridge main process (702)
terminated with status 1

Read more...

SVN Cheat Sheet

Here is a Command Line svn Cheat Sheet. I am adding them as I use them.

Create a Repository

To store projects in Subversion, first you must create a repository. This must be done to a local drive on a local machine. Creating a repository on a network drive is not supported. To create a repository type:

svn create /path/to/repository

-- OR --

svn Import

-----------

Recursively commit a copy of PATH to URL.

svn add

When you add a new file or directory to a project that has been checked out, you must tell Subversion to include that file or directory in its version control.

svn add file_or_dir_name

Adding a directory will add the directory and all the files and directories in it. However, this does not add the file or directory to the repository, you must still issue a commit to update the repository.

--------------

svn commit

Once you have added, deleted, or changed files or directories, you can then commit those changes to the repository. This command is pretty straightforward:

svn commit -m "Saving recent changes" http://localhost/svn_dir/repository/project_dir

-------------

Updating Your Local Files -  svn update

svn update

If there are newer files in the repository, they will overwrite any files you have locally. Before using this command, you may want to use the svn diff command to find out what the differences are between your local files and the repository.

svn Checkout

svn checkout URL... [PATH]

Description

Check out a working copy from a repository. If PATH is omitted, the basename of the URL will be used as the destination. If multiple URLs are given each will be checked out into a subdirectory of PATH, with the name of the subdirectory being the basename of the URL.

Example

Check out a working copy into a directory called 'mine':

 

$ svn checkout file:///tmp/repos/test mine
A  mine/a
A  mine/b
Checked out revision 2.
$ ls
mine

 

If you need more information a great reference is http://svnbook.red-bean.com/en/1.0/ch09.html

http://www.abbeyworkshop.com/howto/misc/svn01/

Set up a Wildcard Shared SSL Certificate with Plesk

 

<Directory /var/www/vhosts/yourdomain.com/httpdocs/>
php_admin_value open_basedir "/var/www/vhosts/yourdomain.com/httpdocs:/php/includes"
</Directory>
Options +FollowSymLinks RewriteEngine on RewriteRule /ministries/(.*)\.php$ /ministries/ministry.php?url=$1

 

/usr/local/psa/admin/bin/websrvmng -a

 

/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com

http://www.gadberry.com/aaron/2006/02/09/plesk_vhost/

Ubuntu 8.0.4 - Upgrade php 5.2.4 to 5.2.11

I was trying to upgrading php 5.2.4 above php 5.2.6 so I could use json.

# cd /etc/apt/root
# vi sources.list

deb http://packages.dotdeb.org/ oldstable all

apt-get update
apt-get install php5-cli

http://ubuntuforums.org/showthread.php?t=1134021&highlight=apt-get+php+5.3+upgrade

Deleting Log files in Plesk on CentOS Server

plesk-greyed-outI currently run a virtual dedicated server with Godaddy. It has CentOS with Plesk Control Panel.

Although I am grateful to have Plesk on the server there are many times it does not do what I need it to.

When trying to delete log files from a Plesk server running CentOS but the check boxes are greyed out you can ssh into the server and use the rm command

rm /var/www/vhosts/yourdomain.com/statistics/error_log


Main thing to remember is that the error_log files are located in the vhost directory under each doman. I had to restart my server to gain the space after removing the 1.4gb log file.

More Articles...

Page 1 of 2

Start
Prev
1