Home Blog Page 6

Problem with updating Perl modules in Plesk 12

0

Problem with updating Perl modules in Plesk 12

 

Hello every one ,

I have installed in my VPS windows 2012 new Plesk version 12.0.18 .

 

Why i need to upgrade/update Perl modules ???

The answer is simple , i need this for new DNS propagation checker http://dns.securityinet.com/ .

This tool is written in Perl . To use it i need updated Net::DNS module.

 

As admin of the server i did found this page : KB in Parallels web site that explains how to install Perl modules via PPM manager .

In first 10-5 sec i did the basic staff like update the packages in that PPM .

After the update of packages (sort of apt-get update) i come to Net DNS  module (my version was 0.70) and i choose 0.80 – the updated one .

After 1 in i got error : failed 401 Authorization Required

In couple of places it gave me this error as well : 401 Authorization Required

I started to check my Perl installation and if it need to be update.

I check the version of Perl engine and i was in shock !!! It uses ActivePerl 5.10

I cant install any thing because it needed license from me….

 

The FIX

I used the 3 part ppm repository’s , and the BEST of them is here :

http://www.bribes.org/perl/ppmdir.html

http://www.bioperl.org/wiki/Installing_BioPerl_on_Windows

http://trouchelle.com/perl/ppmrepview.pl

If you know/have more ppm repository’s please contact me or PM me to my email in contact page .

 

 

P.S. Dont know but plesk didnt updated PPM and ActivePerl  as needed…. i will open ticket to there support

Have a nice day,

perl

 

Regards,

Sergey Babkevych

How to check if Perl script is enabled and working for a specific domain in plesk

0

How to check if Perl script is enabled and working for a specific domain in plesk

 

Hello every one ,

Today i will explain how to check if Perl is enabled  in specific domain.

There are two ways to check if the Perl scripting engine is enabled for a domain:

1. Use the default Parallels Plesk Panel domain page content (http://domain.tld/index.html) and then the “Perl” item. The domain name should be resolved locally and the web-content should be the Panel domain default content.

The test is successful if the Perl possibilities test page is shown.

2. Use a simple script like this:

It is necessary to put the content into a text file and save it in a domain web-accessible folder (like %plesk_vhosts%/domain.tld/httpdocs) on the server with a “.pl” extension (test.pl, for example). Then try to open the file via a browser using the http://domain.tld/test.pl URL. The domain name should be resolved locally.

The test is successful if the page shows the “Hello World!” string. If an error or full script listing is visible, it means that the Perl script engine is not properly configured for the domain.

Searchcode 2.0

Searchcode 2.0

 

Search code from over 5,000,000 projects

Search over projects from Github, Bitbucket, Google Code, Codeplex, Sourceforge, Fedora Project and more.

 

Search beyond words

We index the HTML, Javascript, CSS, and plaintext of hundreds of millions of pages.

Give us any keyword or code snippet, and we’ll return you a list of websites that contain it.

 

https://searchcode.com/

https://search.nerdydata.com/

https://code.ohloh.net/

http://www.symbolhound.com/

http://nerdydata.com/

How to restart Parallels Plesk Panel ?

How to restart Parallels Plesk Panel ?

 

Hi all ,

You may restart your Plesk panel in 2 ways :

1) Via Plesk panel itself you may restart Plesk services ( or reboot the main server ) .

2) Via SSH .

 

When you choose SSH you need to access to the server (root user).

Parallels Plesk Panel for Linux:

Parallels Plesk Panel installed on FreeBSD server in versions prior  to 8.1:

Parallels Plesk Panel on FreeBSD since version 8.1:

 

Good luck

Installation of WordPress via Applications in Plesk fails

Installation of WordPress via Applications in Plesk fails

Hi ,

I found some strange thing when i install WP from applications in Plesk versions : 10 and 11

When i install WP i need to go to applications and choose custom wp install and click install .

In couple of seconds – i see that this installation happens and i see the folders/files in the Root directory of the site but suddenly i get this error :

 

Error: Installation of WordPress at http://DomainName.com/ failed. Non-zero exit status returned by script. Output stream: ‘PHP Warning: fopen(/var/www/vhosts/DomainName.com/wp-config.php): failed to open stream: No such file or directory in /usr/local/psa/var/apspackages/apscatalogWR8hR8.zip927a4da7-70ca-49/cache/scripts/file-util.php on line 15 ‘. Error stream: ‘PHP Warning: fopen(/var/www/vhosts/DomainName.com/wp-config.php): failed to open stream: No such file or directory in /usr/local/psa/var/apspackages/apscatalogWR8hR8.zip927a4da7-70ca-49/cache/scripts/file-util.php on line 15 ‘.

Coded version:

 

How to resolve this : 

Its very simple ,

You need to check very “strange” setting in this subscription – ftp hard disk  quota limit.

You need to higher this ftp hard disk  quota limit and you will see that problem gone away 🙂

 

disk2

 

 

What is the difference between “Domain disk space” and “Hard disk quota”?

You may see this answer in KB :

http://kb.sp.parallels.com/en/146

 

Good luck!

How to Send Email from a PHP Script Using SMTP Authentication (and SSL)

How to Send Email from a PHP Script Using SMTP Authentication (and SSL)

Sending an email from a PHP script is simple, fast and easy; if it works.

 

PHP mail() and SMTP Authentication

Part of what makes the PHP mail() function is so simple is its lack of flexibility. Most importantly and frustratingly, stock PHP mail() does not usually allow you to use the SMTP server of your choice, and it does not support SMTP authentication — required by many a mail server today — at all.

PEAR Mail for SMTP Authentication and SSL Connection

Fortunately, overcoming PHP’s built-in shortcomings is not difficult either, complicated or painful. For most email uses, the free PEAR Mail package offers all the power and flexibility needed, and it authenticates with your desired outgoing mail server. For enhanced security, encrypted SSL connections are supported for sending mail using PEAR Mail as well.

Send Email from a PHP Script Using SMTP Authentication

To connect to an outgoing SMTP server from a PHP script using SMTP authentication and send an email:

  • Make sure the PEAR Mail package is installed.
    • Typically, in particular with PHP 4 or later, this will have already been done for you. Just give it a try.
  • Adapt the example below for your needs. Make sure you change the following variables at least:
    • from: the email address from which you want the message to be sent.
    • to: the recipient’s email address and name.
    • host: your outgoing SMTP server name.
    • username: the SMTP user name (typically the same as the user name used to retrieve mail).
    • password: the password for SMTP authentication.

Sending Mail from PHP Using SMTP Authentication – Example

Sending Mail from PHP Using SMTP Authentication and SSL Encryption – Example

 

***********************************************************************

The native PHP’s mail() fucntion doesn’t allow you to chose the SMTP server of your choice, nor does it support SMTP authentication.

Fortunately, you can use the free PHPMailer email sending library to overcome PHP’s built-in shortcomings.

Here is a sample usage:

 

Retrieve admin password after Parallels Plesk Panel installation

Retrieve admin password after Parallels Plesk Panel installation
Symptoms

It is not possible to retrieve the Parallels Plesk Panel (PP) admin password. A message stating “Plesk is not configured” is displayed.

Plesk is not configured. You should go to the Server Administration Panel and configure it.

This message is received after PP installation if you try to retrieve the password, but PP is not configured yet.

Cause

After PP installation, an auto-generated password is set for the admin user. It is not possible to retrieve the PP admin password before the initial configuration is complete.

Resolution

Log in to the Control Panel with the root username and password, and perform the initial configuration. In the configuration step, you can set a new password for the admin user.

As a workaround, you can set the desired password for the admin user using the /usr/local/psa/bin/init_conf utility. Then log in to the Control Panel with the admin username and the new password.

 

This behavior was fixed in Parallels Plesk Panel version 10.3. The auto-generated password for the admin user can now be retrieved prior to the initial configuration.

 

P.S> In my case this works !

link

List of web hosting control panels

List of web hosting control panels

Ajenti (website) License: LGPLFree panels
Commercial panels with limited free version (not trial versions)

Commercial panels

Linux based only
Linux and Windows based
Windows based only

 

P.S. A list-in-progress of web hosting control panels

Validate Credit Card Numbers and Generate them

Validate Credit Card Numbers and Generate them

 

My Check Tool:

https://tranzila.securityinet.com/cc/

 

Please Note !

These cards will be accepted in our system only for a TEST marketplace. Do not use these card numbers in Production marketplaces.

 

1) Check your credit card number

http://www.validcreditcardnumber.com/

2) Get Credit Card Numbers

http://www.getcreditcardnumbers.com/

 

Useful command – Linux

Useful command – Linux

 

1) Add the user to the sudo group:

P.S. The change will take effect the next time the user logs in.
This works because /etc/sudoers is pre-configured to grant permissions to all members of this group (You should not have to make any changes to this):

2) View a file
cat
tail
head
pg

3) Open, create, and edit a file
pico
vi
ued
ed
vim ( i will not use it 🙂 )

 

Top 3 Free SSH Clients For Windows

Top 3 Free SSH Clients For Windows

Hello all !! 🙂

I did some checking around the internet and there is many SSH client tools.

I will reviews only 3 best of them :

1) PuTTY – a free SSH and telnet client for Windows.

PuTTY is a free and open-source terminal emulator, serial console and network file transfer application. It supports several network protocols, including SCP, SSH, Telnet, rlogin, and raw socket connection. The name “PuTTY” has no definitive meaning,[3] though “tty” is the name for a terminal in the Unix tradition, usually held to be short for Teletype.

PuTTY Download Page

Secure Linux/UNIX access with PuTTY and OpenSSH
Secure Linux/UNIX access with PuTTY and OpenSSH

 

2) dameware – This free tool is a terminal emulator that lets you make multiple telnet and SSH connections from one easy-to-use console.

  • Manage multiple sessions from one console with a tabbed interface
  • Save favorite sessions within the Windows file system
  • Access multiple sets of saved credentials for easy log-in to different devices
  • Connect to computers and devices using telnet, SSH1, and SSH2 protocols

Free SSH Client For Windows | DameWare

DameWare
DameWare

 

3) mRemoteNG – mRemoteNG is a fork of mRemote, an open source, tabbed, multi-protocol, remote connections manager. mRemoteNG adds bug fixes and new features to mRemote.

mRemoteNG is a fork of mRemote, an open source, tabbed, multi-protocol, remote connections manager. mRemoteNG adds bug fixes and new features to mRemote.

It allows you to view all of your remote connections in a simple yet powerful tabbed interface.

mRemoteNG supports the following protocols:

  • RDP (Remote Desktop/Terminal Server)
  • VNC (Virtual Network Computing)
  • ICA (Citrix Independent Computing Architecture)
  • SSH (Secure Shell)
  • Telnet (TELecommunication NETwork)
  • HTTP/HTTPS (Hypertext Transfer Protocol)
  • rlogin
  • Raw Socket Connections

If you are a programmer, graphic designer or technical writer and would like to help with mRemoteNG, please let us know.

Download mRemoteNG

mRemoteNG
mRemoteNG

 

 

My favorite is : mRemoteNG

Why mRemoteNG ?

Because of cool tabbing system 🙂

 

Good luck

How to Install Fedora 20 in Virtualbox

How to Install Fedora 20 in Virtualbox

HI ,

WHAT WILL I NEED?

  • A blank CD or DVD or a blank 1GB+ USB stick.
  • 64-bit Intel-compatible PC
  • 1GB memory (RAM)
  • At least 10 GB hard drive space (only required for installation)
  • Virtualbox

 

To successfully install Fedora 20 in Virtualbox you need to choose:

“Fixed size” because as it’s the fastest to use.

Install-Fedora-17-in-Virtualbox-Step-7

 

When you choose other options Fedora 20 will not work good.

When creating your virtual machine, you can create two different types of virtual disks. By default, virtual machine programs will generally use dynamically allocated disks that grow as you use them.

For example, if you create a new virtual machine with a dynamically allocated disk with a maximum size of 30 GB, it won’t take up 30 GB of space on your hard disk immediately – after installing your operating system and programs, it may only take up 10 GB. As you add more files to the virtual disk, it will expand up to its maximum size of 30 GB.

This can be convenient — each virtual machine won’t take up an unnecessarily large amount of space on your hard drive. However, it’s slower than creating a fixed-size disk (also known as a preallocated disk). When you create a fixed-size disk, all 30 GB of that space would be allocated immediately.

There’s a trade-off here – a fixed-size disk uses more space on your hard disk, but adding new files to the virtual machine’s hard disk is faster. You also won’t see as much file fragmentation – the space will be assigned in a large block instead of being added in smaller pieces.

 

UPDATE #1 :

FEDORA 20 DESKTOP EDITION

This is the latest version of the Fedora Linux operating system’s Desktop Edition. It’s everything you need to try out Fedora — you don’t have to erase anything on your current system to try it out, and it won’t put your files at risk. Take Fedora for a test drive, and if you like it, you can install Fedora directly to your hard drive straight from the Live Media desktop.

Official web site

Perl DNS propagation checker

0

Perl DNS propagation checker

Hi ,

I have built in Perl little DNS propagation checker .

This Tool is in BETA now .

 

http://dns.securityinet.com/

 

 

 

Tool name : Perl DNS propagation checker

Google Public DNS – Good or Bad ?

Google Public DNS – Good or Bad ?

 

Google Public DNS is a free, global Domain Name System (DNS) resolution service, that you can use as an alternative to your current DNS provider.

For example, you may configure your router or your LAN to use Google public dns records .

According to internal statistics Google DNS, 70% DNS-query comes from outside the United States.

The company aims to speed up DNS, and so in 2011 together with OpenDNS and other companies took the initiative for a new extension protocol DNS, which is intended to more effectively direct users to the closest CDN endpoint. This extension is already support multiple companies, including Google.

 

If you want to find out How to Resolve DNS to IP address you can follow these steps:

  1. Click Control Panel
  2. Double click Network Connection
  3. Right click on Wireless or Local Area Network (the network connection windows will open. You will the see : This connection uses the following items: scroll down until you see the Internet Protocol (TCP/IP) item and left click this once)
  4. Click Properties
  5. Click Advanced
  6. Click on the Option tab on top->you should see TCP/IP filtering in the Optional settings
  7. Click on Properties on this tab->Permit all should only be the one with radio button (green) on all three that you should see, the box on the Enable TCP/IP Filtering (All Adapters) should be left blank.

 

IP Google Public DNS

8.8.8.8
8.8.4.4
2001:4860:4860::8888
2001:4860:4860::8844

 

DNS settings are specified in the TCP/IP Properties window for the selected network connection.
Example: Changing DNS server settings on Microsoft Windows 7

  1. Go the Control Panel.
  2. Click Network and Internet, then Network and Sharing Center, and click Change adapter settings.
  3. Select the connection for which you want to configure Google Public DNS. For example:
  4. To change the settings for an Ethernet connection, right-click Local Area Connection, and click Properties.
  5. To change the settings for a wireless connection, right-click Wireless Network Connection, and click Properties.
  6. If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
  7. Select the Networking tab. Under This connection uses the following items, select Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6) and then click Properties.
  8. Click Advanced and select the DNS tab. If there are any DNS server IP addresses listed there, write them down for future reference, and remove them from this window.
  9. Click OK.
  10. Select Use the following DNS server addresses. If there are any IP addresses listed in the Preferred DNS server or Alternate DNS server, write them down for future reference.
  11. Replace those addresses with the IP addresses of the Google DNS servers:
  12. For IPv4: 8.8.8.8 and/or 8.8.4.4.
  13. For IPv6: 2001:4860:4860::8888 and/or 2001:4860:4860::8844
  14. Restart the connection you selected in step 3.

 

🙂

Top 3 Best Online Website Speed Analyzers

Top 3 Best Online

Website Speed Analyzers

 

The speed of a website depends on the content that make it load lazy including Javascripts, background images and some un-minified files like CSS. How to find out exactly what makes your site load lazy? This can be find out using a website speed checker, which will tell you all about your site. Why your site is loading very slow, what are the main factors that need to be define or to be correct. In this article I’ve reviewed about 3 most used online website speed checkers.

 

1. Gtmetrix

Gtmetrix has outstanding, eye touching compelling design yet easy to navigate interface. It can help you to develop a more faster, more efficient and improves website experience just for your users, for what your users will love. The site has an additional ability to compare sites’ speed. Modern studies show that if your site doesn’t got load within 4 seconds users will be able to leave it. Gtmetrix tell about the issues in your site and provides some suggestions too. Gtmetrix has also Optimization tips for your WordPress blog. There is also a WordPress plugin for Gtmetrix optimization which make it easier to make your website speed fast just by using it. Use Gtmetrix today to improve your site speed. Access Gtmetrix now just by clicking here.

 2. Pingdom

Yep, I know nobody like a slow website. Here a website speed analyzer, which tests the exact load time of a webpage easily. Tells about the issues within the webpage and it gives simple solution to solve them.  Pingdom, identify why a webpage is fast, slow, and too big. What are the best practices you should implement in order to load your site fast. It is a free, easy-to-use website speed analyzing tool to help webmasters and web developers to optimize the performance of their websites. Test your site right now by clicking here.

 3. Google PageSpeed Insights

Google PageSpeed Insights analyze your website content, then it easily generates suggestions on making that website faster. The Google PageSpeed Insights makes your site load faster, reduces bounce rate and increases conversion rate. There are also browser extension for Google Chrome and Firefox. Which help webmasters and web developers to evaluate the performance of their website and in the back get suggestions on how to improve them. Use Google PageSpeed Insights today by clicking here.

Creating app with 8 hours: Yo

Creating app with 8 hours: Yo

Hello everyone ,

I will review a little about : Creating app with 8 hours: Yo

The app, which took eight hours to create this app and 3 minutes to hack it.

Lets meet : Yo. app

” The simplest & most efficient communication tool in the world.

Yo is a single-tap zero character communication tool. “

This tool is very funny : send only one word “Yo” …..

As i can see in configuration of this app – this app sync contacts , and with “some sort of API” you may contact to the main server and see/catch the info 🙂

yoapps

 

P.S. Please think about Security in #1 place .

Official Yo website

Download in iTunes

Download Google Play