Want to create an Android or iOS Application?

Well you can learn how to do it your self at the Appscluster Academy http://www.appscluster.com

Or you can sponsor someone else to do it and own all copyright to it.

Find out more at http://www.appscluster.com

Linux ubuntu vsftpd how to add users to manage apache www web folders

After you have installed vsftpd using (sudo apt-get install vsftpd)

Find /etc/vsftpd.conf

Inside enable the following flags

# Enable this to allow users to write files to their web folder
write_enable=YES

# To restrict users to specific web folders and block access to parent folders
chroot_local_user=YES

# You may want to enable passive mode if you have a firewall
pasv_enable=YES
pasv_min_port=65000 (example, set your own)
pasv_max_port=65535 (example, set your own)

# Also remember to open up port 20 for FTP-DATA, 21, and 990 for TLS/SSL on your firewall

Next create your users and add them to the web group

useradd -s /usr/sbin/nologin {new_username}

sudo passwd {new_username} # you will be prompted to enter a password twice

sudo usermod -d /var/www/{web folder} {new_username}

usermod -a -G www-data {new_username}

Next do the following:

vi /etc/shells

# Add the following to the last line:

/usr/sbin/nologin

# Save that.

# Finally, restart your ftp server

service vsftpd restart

Now test your new web ftp user account and check if the directory is writable and also make sure the pages are viewable in a browser.

Anyway, thats how I did it and got it to work. Otherwise the published pages don’t display and a permission denied error appears because www-data cannot execute the files.

How to hide Parent directories settings:

dirmessage_enable=YES
anonymous_enable=NO
anon_world_readable_only=YES
syslog_enable=YES
connect_from_port_20=YES
pam_service_name=vsftpd
listen=YES
ssl_enable=NO
anon_mkdir_write_enable=NO
anon_upload_enable=NO
chroot_local_user=YES
ftpd_banner=Welcome message
idle_session_timeout=900
local_enable=YES
log_ftp_protocol=NO
max_clients=10
max_per_ip=3
pasv_enable=YES
pasv_max_port=40500
pasv_min_port=40000
ssl_sslv2=NO
ssl_sslv3=NO
ssl_tlsv1=YES
write_enable=YES
download_enable=YES

If you get the following error:

500 OOPS: vsftpd: refusing to run with writable root inside chroot

Then install the following:

1. sudo apt-get install python-software-properties

2. sudo add-apt-repository ppa:thefrontiergroup/vsftpd

3. sudo apt-get update

4. sudo apt-get install vsftpd

5. vi /etc/vsftpd.conf and add the following
allow_writeable_chroot=YES

6. sudo service vsftpd restart

Wamp Server 2.2 Windows 7 64-bit and curl not working side-by-side configuration incorrect

If your having problems with php curl not starting using the following wamp installation:

wampserver2.2e-php5.4.3-httpd2.2.22-mysql5.5.24-x64.exe on Windows 64bit.

OR

wampserver2.2e-php5.4.3-httpd-2.4.2-mysql5.5.24-x64.exe on Windows 64bit.

Getting curl failed to start because the side-by-side configuration incorrect?

Getting the following error in the event log?

Activation context generation failed for “c:\wamp\bin\php\php5.4.3\ext\php_curl.dll”. Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture=”amd64″,publicKeyToken=”1fc8b3b9a1e18e3b”,type=”win32″,version=”9.0.21022.8″ could not be found. Please use sxstrace.exe for detailed diagnosis.

Download the following:

http://www.mediafire.com/file/3ay381k3cq59cm2/php_curl-5.4.3-VC9-x64.zip

Or replace the entire PHP folder using

http://www.mediafire.com/file/onpvka3h1gymwa6/php-5.4.3-Win32-VC9-x64.zip

Replace the old php_curl.dll with the new one in \wamp\bin\php\php5.4.3\ext\

And, try starting Apache again.

Hope this helps someone!

SAMSUNG 32GB 32G micro SD microSDHC SDHC TF Flash Memory Card Class10 is actually Class 2

On ebay and on amazon there are mini SDHC cards being advertised as Class 10 rating which are actually Class 2

SAMSUNG 32GB 32G micro SD microSDHC SDHC TF Flash Memory Card Class10

SD Bench test reveal the following speeds

Write Speed: 2.8mb/s

Read Speed: 13mb/s

Which is equivalent to a Class 2 SDHC card.

The SDHC cards are being advertised wrongly as Class 10

Key2CRM – A new Third Sector CRM Tool

Check out the video of the Key2CRM tool. A CRM for charities

The website: http://brand.key2crm.org.uk/

BT fault repaired but automated message is still on the line

This is how you can remove the automated message still on the phone line when people call you after BT engineers have fixed the fault. And, then you call BT customer services and they book you another engineer to fix it again.

1. Login to your online BT account

2. Find the fault that has been repaired

3. Then click on Accept the fault that has been repaired. Then after a few minutes the message should be gone.

Hope this helps someone!

How to increase the usable drive space on Linux 1and1 server

How can I increase a logical volume on 1and1 linux server?

Step 1 First, log into the server via SSH.
Step 2Once logged in, type df – h at the command prompt and hit ENTER. The partition and logical volume sizes will be listed including the used disk space. In the image below, the var logical volume is 4GB. Assume that ~9GB of web content will be uploaded to the /var folder. The disk space needs to be increased before there is enough space to upload the content.

 

Further Explanation:
df arrow image This is the disk free space command which will display disk usage information.
-h arrow image This option forces the output to be in human readable format. This will display sizes in KB, MB or GB.

lvGrow1.png

Step 3

Next, type fdisk -l to view the total hard disk(s) size and partitions on the disk. It can also be noticed here that the physical partition /dev/sda3 is using Linux LVM.

lvGrow2.png

Step 4

Type the pvs command and press Enter.

Further Explanation:
pvs arrow image Physical Volume Show command.
PV arrow image Physical Volume path
VF arrow image Volume Group name.
Fmt arrow image LVM Format
Attr arrow image Physical volume attributes. The a attribute means that the physical volume is allocatable and not read-only.
PSize arrow image Physical Size of the physical volume.
PFree arrow image Physical Freespace left on the physical volume.

lvGrow3.png

Step 5

As stated above, our scenario requires roughly 9GB of data to be uploaded to the /var folder. Since the logical volume assigned to /var is only 4GB, we will increase this to 10GB using the lvextend command. The command below is to be used as reference only as the parameters will be different depending on your scenario. The format for the lvextend command is as follows:

lvextend -L +1G /dev/mapper/vg00-var

Further Explaination:

lvextend arrow image This is the logical volume extend command used to make a logical volume larger.
-L +6G arrow image It is specified using the Logical volume size option, how much larger to make the volume. In this scenario, 6 gigabytes is added to the current 4 gigabyte volume to result in a 10 gigabyte volume.
/dev/mapper/vg00-var arrow imageThe path to the logical volume is specified last. The path to the volume to be extended was taken from the output from the second step in this guide.

lvGrow4.png

Step 6

 

Type df -h to display the disk free space once again. The lvextend operation finished successfully in the last step however the /dev/mapper/vg00-var size is still only showing 4.0G. This is because while the logical volume was increased successfully, the file system needs to be extended to take advantage of the full space of the logical volume.

lvGrow5.png

Step 7

Type lvs to show the logical volume information once again. Here, we can confirm that the logical volume has successfully been extended to 10 gigabytes. In the next steps, we will increase the file system to match the logical volume size.

lvGrow6.png

Step 8

Type mount and press ENTER to display the mounted file systems. From the output, we find that the /dev/mapper/vg00-var logical volume is using xfs (with the introduction of CentOS 6, the default filesystem is ext4).

lvGrow7.png

Step 9

To increase the file system to match that of the logical volume, we will use the xfs_growfs command if the filesystem uses xfs or resize2fs if the filesystem is ext4.

Typing xfs_growfs /var (ubuntu) or resize2fs /dev/mapper/vg00-var (depending on which filesystem is used on your system) will extend the file system to the 10 gigabyte limit of the logical volume.

lvGrow8.png

Step 10

Type df -h to display the disk free space to confirm that the file system has been extended.

lvGrow9.png

Follow

Get every new post delivered to your Inbox.