Windows Batch / Regex
May 20, 2009
how to convert this line of text
"Your server is now available at [url]
to
"67.202.30.141"
In other words, extract the IP address from that URL (replace dashes with dots etc)?
This needs to be inside a windows batch file.
View 2 Replies
ADVERTISEMENT
Nov 2, 2014
I am trying to change the cname through a batch.. It is successfully done for English language but I want to use Arabic language. When I am using Arabic it appear like this "????".
View 1 Replies
View Related
Feb 9, 2007
I am using mod_rewrite to rewrite some URL's for a database application. One of my URL's I am rewriting must start (after the base folder) with a folder named after one of the 50 U.S. states (ie. /alabama/, /alaska/, /arizona/, and so on.).
Is it okay to include all 50 of these state names within my RegEx pattern conditional? Or is that way too much info to put into a pattern and be too intensive?
Example:
Code:
^/?(alabama|alaska|arizona|arkansas|california|colorado|connecticut|delaware|florida|georgia|hawaii|idaho|illinois|indiana|iowa|kansas|kentucky|louisiana|maine|maryland|massachussets|michigan|minnesota|mississippi|missouri|montana|nebraska|nevade|new-hampshire|new-mexico|new-york|north-carolina|north-dakota|ohio|oklahoma|oregon|pennsylvania|rhode-island|south-carolina|south-dakota|tennesee|texas|utah|vermont|virginia|washington|west-virigina|wisconsin|wyoming)/([a-zA-Z_]+)/([a-zA-Z_]+)$
View 1 Replies
View Related
Nov 5, 2009
With new installation of WordPress, I started Permalinks as "/%year%/%monthnum%/%day%/%postname%/", but now I've decided to change it to "/%postname%/"
Existing URLs
Code:
[url]
New URLs
Code:
[url]
but I don't want to break existing URL, so I decided to have a new rule defined to do this, here is how my .htaccess currently look...
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^([0-9])/([0-9])/([0-9])/([0-9a-zA-Z-]+/)$ /$4 [R]
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
View 1 Replies
View Related
Dec 31, 2007
i want to check in a batch if my client's domain changed name server or not. Are there are tools / script available for that?
View 5 Replies
View Related
Jul 30, 2009
to move the httpdocs folders of multiple sites on my plesk server to another server (share on other serv is already mounted so thats not an issue) but their is 31 different domains i need to copy. wondering if anyone knows any way to batch automate a cp process to copy each domains files to a new folder on remote server (this is for backup purposes not live sites so i cant use plesk migration etc
View 3 Replies
View Related
Oct 17, 2007
batch edit of the name servers in every DNS Zone for every domain on one of my cPanel/WHM boxes. Rather than using WHM to manually modify the NS entries, I would like to find a way to do a batch or mass edit.
I simply need to change all instances of NS1 to NS3 and NS2 to NS4.
I was told a simple one line sed script should do the trick on /var/named but alas, I am woefully incapable of writing such a script.
Does anyone have any ideas? With over 200 domains on this box I'd hate to think this will have to be done manually.
View 2 Replies
View Related
May 22, 2013
I would to use: htdigest -c filename.htpasswd Group usernamein file batch to insert a set of users with password.I can use it without having to enter the password from the keyboard?I tried echo pass| htdigest -c filename.htpasswd Group username but it does not work.
View 1 Replies
View Related
Oct 2, 2014
I've this terrible problem: on my site I start a script that executes a batch process that imports into the Mysql database a lot of products (texts and images). I'm monitoring the query process from Phpmyadmin>Status and I notice that after some minutes the number of queries decreases from ~900 to ~30, that means that the script is stopped! Then I check the error_log and infact there's this error:
[Thu Oct 02 17:09:34 2014] [warn] [client xxx.xxx.xxx.xxx] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Thu Oct 02 17:09:34 2014] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: insert_products.php
Some informations:
VPS server: 1 CPU; 40gb; RAM 1GB
OS: CentOS 6.5 (Final)
Plesk version: 12.0.18
What I tried via SSH console:
# /usr/local/psa/admin/bin/php_handlers_control --list
id: display name: version: type: cgi-bin: cli-bin: php.ini:
module 5.3.3 5.3.3 module /usr/bin/php-cgi /etc/php.ini
fastcgi 5.3.3 5.3.3 fastcgi /usr/bin/php-cgi /etc/php.ini
cgi 5.3.3 5.3.3 cgi /usr/bin/php-cgi /etc/php.ini
# /usr/bin/php-cgi -v
[code]....
View 2 Replies
View Related
Jun 12, 2008
How to go about that.
Anyone have done that before care to share information?
View 0 Replies
View Related
Oct 15, 2007
how can i do a search for all files (probs using regex) of files consisting purely of numbers?
for e.g. find:
53243.php
24353.php
24098.php
(always have 5 numbers).
seems one of my accounts has had some script run which generated a bunch of these in various subfolders, and the php file basically does a callback to www3.rssnews.ws and www3.xmldata.info, which seem to be some sort of spyware servers.
View 10 Replies
View Related
Oct 2, 2008
I was actually curious about this since Windows 2008 version came out.
What is the difference between Windows media services on Windows 2003 and Windows 2008?
View 5 Replies
View Related
Nov 17, 2008
Any company rent Windows Server 2003 Web Edition ?
SPLA and External licenses ?
With Micfrosoft need pay 2,000$
I wait your answerds.
View 3 Replies
View Related
May 26, 2009
With Windows 2003 server, there are comprehensive lists of what you need to do to secure the server before use. For Windows 2008, I wonder is there such a list? Or is it true as what I heard from Microsoft that it is already secured out of the box?
Anyone has any resources on the hardening or preparation of 2008 for server hosting uses?
View 1 Replies
View Related
Nov 11, 2014
FTPS is not working after upgrade from plesk 11. On plesk 11 windows and linux worked fine, after upgrade my windows server, it stopped working.
Code:
PS C:Windowssystem32> & "C:Program Files (x86)ParallelsPleskadmininpmm-ras.exe" --check-repository --dump-storage=ftps://****:****@***.***.***.***:21 --debug --verbose
[2014-11-11 21:16:12.981| 4688] INFO: pmm-ras started : "C:Program Files (x86)ParallelsPleskadmininpmm-ras.exe" --check-repository "--dump-storage=ftps://****:****@***.***.***.***:21" --debug --verbose
[2014-11-11 21:16:12.997| 4688] INFO: Repository 'ftps://***.***.***.***:21': Initializing...
[code]....
View 19 Replies
View Related
May 8, 2008
I'm making a reasonably uninformed comparison here. Since Windows Vista is noted to be more resource intensive and slower than Win XP, are we right in assuming that Windows 2008 is slower than Windows 2003?
For instance, with two boxes with an identical hardware setup but the two different server OSes, will the same application like, say MySQL run slower on the Win 2008 machine?
View 14 Replies
View Related
Dec 10, 2008
There seem to be strong forum rules in place about the kinds of posts that hosters can make.
But from my perspective it is somehow leaving a large gap in useful information I would like to know that I can't quite put my finger on right now.
So I would like to get responses from Windows hosters in this thread without violating any forum spam guidelines and I sure hope I'm not wasting my time here with this concept but here goes...
So, the topic:
Ultimately, the thing Windows Web Hosters are providing is the delivery of information that has been constructed by developers using program code they have assembled using a large array of mostly .NET technology.
The reason the Hoster is providing Windows hosting is that a sufficiently large enough population of Web Developers have been attracted to some aspect of the Windows technology stack.
And there is certainly lots of innovative and interesting technology that attracts developers to focus on .NET in just the same way that there is also interesting technology in the Linux world.
So here's the problem. It appears as if the Windows hosting companies with the odd exception have almost no interest in Windows and .NET technology.
But if they actually did have such an interest, it is not clear how they would communicate it for discussion here at WHT because of the spam rules and of course trying to communicate anything at all about hosting on the general internet is just swamped by spam. The noise level is just insane!
So I am hoping that such a discussion can take place in this thread by asking some very specific questions:
1. What interesting Microsoft technology have you researched, tested or played with lately?
2. What programs or scripts have you personally developed lately to investigate .NET 3.5 features?
3. What do you think of XBAP delivery from the net and why do you think it hasn't caught on in a larger way since it sure delivers a richer client experience than Flash or even Silverlight.
4. What do you think of Azure and will Microsoft let hosters be part of the cloud anytime soon? Can you think of useful or interesting Azure mashups from a hosting perspective?
5. Have you tried any totally silly and insane things with the .NET runtime inside of SQL Server 2005/2008 that would give your DB guys a heart attack?
6. Have you tried out the Google systems where you give your employees 20% of company time to play around with personal projects like this?
View 7 Replies
View Related
Aug 11, 2014
Latest Update 12.0.18 Update 12 appears to have removed PHP 5.4 and PHP 5.5 from my dropdown under hosting settings.
The only PHP that is left is PHP 5.3
Yet, the updates and upgrades page still lists PHP 5.4 and PHP 5.5 as installed.
Also PHP is still working on the virtual websites that were previously enabled with either 5.4 or 5.5, but not able to change using the Plesk Panel.
Given that Parallels has broken the Panel in that latest automatic update I'd hope it can be resolved ASAP.
I can't even find any references in the KB about Plesk 12 on Windows regarding PHP versions
I can even give feedback about the broken patch as every feedback channel requires paid support.
View 1 Replies
View Related
Jan 22, 2014
I have faced the following ftp backup error in windows plesk 11.5.30
Transport error: unable to send directory to repository: Transport error: unable to put local file C:Program Files (x86)ParallelsPleskPrivateTemp/repo_transport_tmp_01cf171bcedd7710ackup_1401220130.zip to backup_1401220130.zip: Curl error: Failure when receiving data from the peer
View 7 Replies
View Related
Sep 19, 2012
Prior to using plesk, I had a few sites that had SSL certificates installed, the old fashioned way (manually through IIS). I have now setup those domains in plesk, and I need to somehow make PLESK aware of these SSL certificates.Right now, I setup the domain in plesk, give it a dedicated IP, and allow SSL connections. It chooses the default certificate and my already installed in IIS SSL certificate isnt listed.
Is there any way I can get it listed? I went to the add an SSL area, and it seems that this area is only good for generating new SSL certificates, but mine is good for another 1+ years.The bummer is that for some reason, anytime I make any type of change to the site in plesk, that it seems to overwrite the SSL bindings and changes my manual changes to the correct certificate (through iis) back to the default certificate.
View 1 Replies
View Related
Oct 30, 2008
Is there hosting that use windows xp rather than windows server 2003? What is the advantage of using windows server2003 anyway?
Most of the time I just need to run some programs that need huge bandwidth. If I want to host sites, I'll just use xamp.
I think windows xp license is cheaper.
View 12 Replies
View Related
Aug 19, 2008
Does someone know what that means? I can sometime choose this option if I want to buy a server.
View 14 Replies
View Related
Mar 6, 2007
Is there a registry key that can distinguish between Windows 2000 and Windows 2000 server?
In
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProductName
That key is Windows 2000 for both Win 2k and Win 2k server so if there's anything else that would be GREAT.
View 2 Replies
View Related
Feb 28, 2009
I need a windows vps with a lest 512 mg of ram hard drive any bandwidth Unllimited with remote access price for 40.00 to 60.00
View 3 Replies
View Related
Apr 30, 2009
I need to buy a windows vps ram:atleast 700 or 1gb ram and atleast 10gb hd,i need remote desktop connection, gonna run a .exe batch file coded outta java,where can i buy a vps like this such where for a good deal?
View 14 Replies
View Related
Oct 13, 2009
We are looking into to selling Windows VPS aswell as Linux which would you guys prefer to use panel wise:
HyperV
Or
VMWare
View 9 Replies
View Related
Feb 21, 2009
how is this pricing possible considering the licensing cost of Windows Server 2003 Ent?
I am not familiar with Microsoft's SPLA program, but I would imagine individual licenses for every single VPS would leave this company with a really small profit margin.
View 1 Replies
View Related
Apr 26, 2009
Is there a reliable host who will let me install my own CD key for Windows?
View 4 Replies
View Related