Archive for the ‘Open Source’ Category
CP Omitting Linux Command Error
So I was trying to copy one folder to another location and kept getting this error:
cp: omitting directory
and it would not copy the directory over. This is the command I was running
cp FOLDER /root/DRIVE
I am fairly new to Linux so I did not know what I was doing wrong. After looking at the man page and some searching I found that I needed to put a -r after CP. Here is the syntax:
cp -r FOLDER /root/DRIVE
the -r is copying the folder recursively.
Setup 3CX IP PBX/VOIP for Windows
3CX Phone System for Windows is a software-based IP PBX. This is what we decided to use. We thought about setting up a trixbox server but decided to give 3CX a try.
What you will need:
- 3CX software
- Purchased VOIP number
- Win XP computer (you can use Vista we talk about XP in this article)
- IIS 6 on your XP OS
- A router that can do port forwarding or port mapping
- The 3CX soft phone (you can use X-Lite but we like the TS feature in 3CX soft phone)
- A static IP, FQDN (routable on the internet), or a dynamic IP
- Time to install, configure and test
Pre Configuration:
- On your firewall and or router open Ports 5480, 5482, 5483, 5485,
- Setup a static map or forward of ports: 5060-5100 (TCP and UDP), 9000-9015 (TCP and UDP) and 3400-3499 (TCP and UDP) to your PBX server.

NOTE: forwarding ports 5060-5100 covers Port 5090 (TCP) for the 3CX Tunnel. The 3CX Tunnel is so that users can connect to the PBX server remotely to get an extension.
Backup MySQL DB in command line
So you have a website on a dedicated server. You need to backup a database. You tried to backup through PhPMyadmin but it keeps timing out. Here is what you need to do. Backup the database through a terminal session. SSH into your web/MySQL server and run the following commands below.
TO BACKUP:
##Without G Zip Compresssion:
mysqldump -u USERACCOUNT -pYOURPASSWORDGOESHERE YOURDATABASENAMEHERE > latest_backup_061009.sql
##With G Zip Compresssion:
mysqldump -u USERACCOUNT -pYOURPASSWORDGOESHERE YOURDATABASENAMEHERE | gzip -c > latest_backup_061009.sql
TO RESTORE:
##To restore a backup of a database created with mysqldump, you will need to use the mysql command. If your SQL dump file doesn’t contain any “create database” statement use the following command:
mysql -u USERACCOUNTNAME -pYOURPASSWORDGOESHERE YOURDATABASENAMEHERE < latest_backup_061009.sql
##But if it does contain the “create database” statement use the same command without specifying the database name:
mysql -u USERACCOUNTNAME -pYOURPASSWORDGOESHERE < latest_backup_061009.sql
Setup a catch all domain
I needed to setup a catch all for one of my clients domains. This is what I needed to happen: If user typed in an incorrect sub domain for mydomain.com that did not exist I needed it to redirect them to www.mydomain.com. For example: if they type in notreal.mydomain.com it will send the user to www.mydomain.com. Here is what I did to accomplish this: Read the rest of this entry »
Setup VNC Server on CentOS
I recently had the task of setting up VNC Server on CentOS for a client of mine. VNC is very much like remote desktop in windows. You can even use VNC on Windows servers. I found VNC to be a little bit slower then remote desktop and it kept kicking me out every once in a while. Here are the steps I took to set it up:
First I opened the necessary ports.
Path to access the firewall:

Backup your SugarCRM
The backup tool in SugarCRM does not work at all when in a shared server environment.
I have a better way to backup your SugarCRM that works. To restore your SugarCRM you need to restore the database first and then restore your SugarCRM files. Here is how it works:
First you need to export your full database. (I use MySQL) You do this from PhpMyAdmin. In order to reach it you have to log in your Cpanel, go to MySql databases and click on the link to PhpMyAdmin.
Install SugarCRM on a shared server
I am going to give detailed instructions on installing SugarCRM in a shared server environment. For this article we will be using Sugar Community Edition. Note: some things may differ depending on your shared server environment.
My environment consists of:
- Platform: Linux
- Web Server: Apache
- Database: MySQL
- Language: PHP
First go to http://www.sugarcrm.com/crm/download/sugar-suite.html to download the latest release of SugarCRM.
Create your MYSQL database. We will call our database sugar1.
Create or choose a domain name that will be used to access your SugarCRM once it is installed. We will pretend our domain name is www.sugar1.com .
Copy the SugarCRM files that you just downloaded from your computer onto your web server via FTP. Be sure to copy these files in the root directory for www.sugar1.com .
Check and set platform requirements and configurations before installing. My platform and configuration was already set to go. You can see what these are here: http://www.sugarcrm.com/wiki/index.php?title=Platform_Requirements_and_Configurations .
Now you can install SugarCRM using the sugar setup wizard. To access this type this URL in a web browser: www.sugar1.com/install.php . You will then see the setup wizard pictured below.

Sugar CRM savePath error during install
I ran into the following problem when installing Sugar CRM Community Edition 5.0.0f on a shared hosting server:
Session Save Path Setting The session.save_path setting in your php configuration file (php.ini) is not set or is set to a folder which did not exist. You might need to set the save_path setting in php.ini or verify that the folder sets in save_path exist.
Note: Your php configuration file (php.ini) is located at: (The error should tell you right here where it is located on your server)
To solve this issue I had to Read the rest of this entry »




