Jump to content

Adding domains already registered


kenwardc

Recommended Posts

Hi there, Folks

 

Although we've had the WHMCS package for some time, we haven't used it in anger yet, mainly due to the size of the task moving away from our Optigold package to the WHMCS system.

 

I've just added a bunch of customers and would like to add the services they currently have with us to sort-of start the ball rolling with the new system. The first task was to add domains which have already been registered and paid for, without adding the invoicing etc. as this has already been done on the old system. I cannot see a way to add domains without creating invoices for them and wondered what I was missing. Surely there is a way to get historical data into the new system without having to create invoices?

 

Thanks - if I've posted this in the wrong place please accept my apologies.

 

Cheers

Chris

Link to comment
Share on other sites

Hi again, scurrel

 

Strange thing happens when I follow those instructions. At the end of adding the domain, when I add the registrar (in this case OpenSRS), all seems OK until I press the Submit button and then I just get a blank browser window and nothing further happens. I notice that the last work in the URL is "=success" but I don't get the home screen again or anything else, for that matter, until I press the BACK button on the browser.

 

Any thoughts?

 

Cheers

Chris

Link to comment
Share on other sites

An update on this one. It seems it's got something to do with the setup for the Registra - in this case OpenSRS. If I add a domain for Nominet, at the same point I get back to the Domain screen. I've checked that the private key has been entered correctly - is there anything else I should be looking for?

 

Cheers

Chris

Link to comment
Share on other sites

Hi there, laszlof

 

Switching on the "Display Error" gives me:

Fatal error: Undefined constant 'MCRYPT_DEV_URANDOM' in /var/www/html/whmcs/modules/registrars/opensrs/opensrs.php on line 0

 

I've opened a support ticket but if you can tell me what this is and how to squash it, I'll close the ticket so as not to worry the folks at WHMCS.

 

Cheers

Chris

Link to comment
Share on other sites

  • 4 weeks later...
  • 1 year later...
I've resolved the problem... I needed to install php-mcrypt and, once I'd done that and restarted Apache, all worked fine.

 

What does that mean, exactly? i.e., Did you install a package named "php-mcrypt"? :?:

 

I'm only able to find one package that contain the string "mcrypt" in its name:

[root@www opensrs]# yum search "*mcrypt*"
Loaded plugins: downloadonly, fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
* base: mirror.cisp.com
* extras: mirror.cogentco.com
* updates: mirrors.greenmountainaccess.net
Warning: No matches found for: *mcrypt*
No Matches found
[root@www opensrs]# yum search mcrypt
Loaded plugins: downloadonly, fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
* base: mirror.cisp.com
* extras: mirror.cogentco.com
* updates: mirrors-pa.sioru.com
========================= N/S Matched: mcrypt =========================
libmcrypt.x86_64 : Encryption algorithms library

...and it's already installed:

[root@www opensrs]# rpm -qa | grep -i mcrypt
libmcrypt-2.5.8-9.el6.x86_64

...but I still get the error...

 

Fatal error: Undefined constant 'MCRYPT_DEV_URANDOM' in /var/www/vhosts/.../httpdocs/whmcs/modules/registrars/opensrs/opensrs.php on line 0

...when accepting the order and sending the domain name to the registrar (OpenSRS).

Link to comment
Share on other sites

...but I still get the error...

Check to see if PHP is loading mcrypt and that it is enabled. In your WHMCS admin area, navigate to Utilities >> System >> PHP Info, and search the page for "mcrypt". You should see a section dedicated to mcrypt if it is loaded.

 

For example:

 

mcrypt

 

[TABLE=width: 600]

[TR=class: h]

[TH]mcrypt support[/TH]

[TH]enabled[/TH]

[/TR]

[TR=class: h]

[TH]mcrypt_filter support[/TH]

[TH]enabled[/TH]

[/TR]

[TR]

[TD=class: e, bgcolor: #EFF2F9]Version[/TD]

[TD=class: v, bgcolor: #EFEFEF]2.5.8[/TD]

[/TR]

[TR]

[TD=class: e, bgcolor: #EFF2F9]Api No[/TD]

[TD=class: v, bgcolor: #EFEFEF]20021217[/TD]

[/TR]

[TR]

[TD=class: e, bgcolor: #EFF2F9]Supported ciphers[/TD]

[TD=class: v, bgcolor: #EFEFEF]cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes[/TD]

[/TR]

[TR]

[TD=class: e, bgcolor: #EFF2F9]Supported modes[/TD]

[TD=class: v, bgcolor: #EFEFEF]cbc cfb ctr ecb ncfb nofb ofb stream[/TD]

[/TR]

[/TABLE]

Link to comment
Share on other sites

Check to see if PHP is loading mcrypt and that it is enabled. In your WHMCS admin area, navigate to Utilities >> System PHP Info, and search the page for "mcrypt". You should see a section dedicated to mcrypt if it is loaded.

 

Thanks, James:

 

mcrypt is not being loaded even though I've downloaded+installed the third party classes to the /modules/registrars/opensrs/ directory (as detailed in the section "Additional Registrar Module Files Requirement" of the WHMCS doc "OpenSRS".

 

[root@www ~]# cd /var/www/vhosts/example.com/httpdocs/whmcs/modules/registrars/opensrs/
[root@www opensrs]# ll
total 156
-rwxr-xr-x 1 gorocketpowered psacln 10001 Mar 18 04:23 country_codes.php
drwxr-xr-x 2 root            root    4096 Apr  3 02:35 Crypt
-rwxr-xr-x 1 gorocketpowered psacln  3704 Mar 18 04:23 logo.gif
-rwxr-xr-x 1 gorocketpowered psacln 38868 Mar 18 04:23 openSRS_base.php
-rwxr-xr-x 1 gorocketpowered psacln 65279 Mar 18 04:23 opensrs.php
-rwxr-xr-x 1 gorocketpowered psacln 21539 Mar 18 04:23 OPS.php
drwxr-xr-x 5 root            root    4096 Apr  3 02:35 PEAR

Have I overlooked a setting somewhere [in Plesk or in WHMCS]?

Link to comment
Share on other sites

Have I overlooked a setting somewhere [in Plesk or in WHMCS]?

 

Nope. The libmcrypt package doesn't actually install the PHP module -- The php-mcrypt package does!

 

FTR: The php-mcrypt package is available (for Centos, Scientific Linux, and Oracle Linux administrators) from the RPMforge repository (a.k.a. Dag's repository) and from the EPEL repository. To add the RPMforge repo to your Centos, Scientific Linux, or Oracle Linux system...

 

[root@www ~]# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

[root@www ~]# rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
Preparing...                ########################################### [100%]
  1:rpmforge-release       ########################################### [100%]

[root@www ~]# yum repolist
Loaded plugins: downloadonly, fastestmirror, priorities, security
Determining fastest mirrors
* base: centos.mirror.netriplex.com
* extras: mirror.nexcess.net
* rpmforge: mirror.teklinks.com
* updates: ftp.linux.ncsu.edu
repo id                                                                     repo name                                                                                      status
base                                                                        CentOS-6 - Base                                                                                6,381
extras                                                                      CentOS-6 - Extras                                                                                 12
rpmforge                                                                    RHEL 6 - RPMforge.net - dag                                                                    4,594
updates                                                                     CentOS-6 - Updates                                                                               458
repolist: 11,445

[root@www ~]# yum search php-mcrypt
Loaded plugins: downloadonly, fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.netriplex.com
* extras: mirror.nexcess.net
* rpmforge: mirror.teklinks.com
* updates: ftp.linux.ncsu.edu
======================= N/S Matched: php-mcrypt =======================
php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support

 

Installing the php-mcrypt package does not quite fix the problem, however, because even though the package contains the module Apache does not load the module:

 

[root@www ~]# rpm -ql php-mcrypt
[color="#00FF00"]/etc/php.d/mcrypt.ini
/usr/lib64/php/modules/mcrypt.so[/color]

[root@www ~]# cat /etc/php.d/mcrypt.ini 
; Enable mcrypt extension module
[color="#FF0000"]extension=module.so[/color]

[root@www ~]# ls -1 --classify /usr/lib64/php/modules/
curl.so*
dom.so*
fileinfo.so*
gd.so*
imap.so*
ioncube_loader_lin_5.1.so
ioncube_loader_lin_5.2.so
ioncube_loader_lin_5.3.so
json.so*
mbstring.so*
[color="#00FF00"]mcrypt.so*[/color]
mysqli.so*
mysql.so*
pdo_mysql.so*
pdo.so*
pdo_sqlite.so*
phar.so*
sqlite3.so*
sw-engine/
wddx.so*
xmlreader.so*
xmlwriter.so*
xsl.so*
zip.so*

[root@www ~]# apachectl -t -D DUMP_MODULES | grep php
php5_module (shared)
Syntax OK

[root@www ~]# apachectl -t -D DUMP_MODULES | grep crypt
Syntax OK

 

In order to force Apache to load the mcrypt.so module, I had to modify the mcrypt.ini file, restart Apache, and check the output of the phpinfo() subroutine:

 

[root@www ~]# cat /etc/php.d/mcrypt.ini 
; Enable mcrypt extension module
[color="#FF0000"]extension=module.so[/color]

[root@www ~]# wget -qO- http://rocket-powered.com/info.php | grep -i mcrypt
/etc/php.d/mcrypt.ini,

[root@www ~]# vi /etc/php.d/mcrypt.ini

[root@www ~]# /etc/init.d/httpd restart
Stopping httpd:                                            [  [color="#00FF00"]OK[/color]  ]
Starting httpd:                                            [  [color="#00FF00"]OK[/color]  ]

[root@www ~]# cat /etc/php.d/mcrypt.ini 
; Enable mcrypt extension module
[color="#00FF00"]extension=mcrypt.so[/color]

[root@www ~]# apachectl -t -D DUMP_MODULES | grep crypt
Syntax OK

[root@www ~]# wget -qO- http://rocket-powered.com/info.php | grep -i mcrypt | html2text 
/etc/php.d/mcrypt.ini,
Registered Stream Filters
zlib.*, bzip2.*, convert.iconv.*, string.rot13, string.toupper, string.tolower,
string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*
***** mcrypt *****
mcrypt support
enabled
mcrypt_filter support
enabled
mcrypt.algorithms_dir
no value
no value
mcrypt.modes_dir
no value
no value

 

For more information about additional CentOS repositories and YUM:

 

 

HTH,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated