Can .htaccess Call A Script (e.g. A Bash .sh Script)?
Mar 24, 2008
Is it possible to have .htaccess interact with a script, like a bash .sh script?
For instance calling the script to execute for every request, and/or passing information like the remote IP and request URI to the bash script?
View 7 Replies
ADVERTISEMENT
Mar 26, 2009
We are a web company that currently has a WHM/cPanel server that we manage ourselves. However, we are looking for a service that will be on call for us 24/7 in case something were to go amiss and our technical team was not available to restart services, restart the server or do whatever technical troubleshooting was required to get things back up and running quickly.
View 2 Replies
View Related
Aug 19, 2008
I have a managed dedicated box in Liquidweb for nearly 1 year and never call them by phone. Don't get me wrong, they have very good server and support via ticket so far until recently the server is getting ddos attack and have to be null route an ip address on the server.
I have a ticket about this issue and communicate back and forth however the ddos attack is very strong and the null route have to be continue. After many hours of null route, I decided to request to remove it to see if the ddos attack have been gone. As usual I submit the request through the old ticket but not getting any response after more than 30 minutes. I think the person in charge might be busy so I lift up my phone and call to Liquidweb for reminder of the message in the ticket.
Surprisingly the person who pick up the phone ask for the password of my account or the last 4 digits of my credit card number. I told him that I don't pay by credit card (I used paypal to pay) and he keep asking me my Liquidweb account password for verification purpose. I was stucked there because I don't know whether it is correct step to giveaway my Liquidweb account password? I finally told him that I will open a new ticket to remind them to reply to the message in the old ticket and hang up the phone.
Any Liquidweb customer here who have called them via phone support? Kindly share your experience here. Is the procedure to get account password for verification was one of the correct steps?
View 6 Replies
View Related
Nov 3, 2014
I am developing new module and installed SSL certificate using following API call.
Request call:
<packet>
<certificate>
<install>
[Code]....
But when i checked this domain by open in browser. the certificate is not installed. After lots of R&D i found that there are option of select SSL in hosting setting screen. The default selected SSL is "default certificate".
I have changed this option to "not selected".
After this changes i have installed certificate again and it is working fine. So is it bug in plesk or it is default behavior Plesk Panel?
View 4 Replies
View Related
Aug 16, 2008
Fatal error: Call to undefined function: imagettfbbox()
I am getting the above given error message.
View 1 Replies
View Related
Jan 15, 2008
I'm trying to create a script to archive logs for 7 days but still delete them from the domlogs daily. Has someone already done this? The ideal solution would be to modify the CPanel script that deletes them after stats run but I'm not sure if thats protected code by CPanel. The other option would be to disable the delete logs after stats run option and to create a script to copy the logs somewhere else via cron and call the script that CPanel uses to delete the logs without restarting apache. This script would also move the files through directories and eventually delete them, therfore preserving the logs for 7 days. Any ideas?
I have created an untested script which should do this but I just need to know how CPanel deletes the logs without restarting apache.
#!/bin/sh
mkdir /domlogbackup/
mkdir /domlogbackup/1/
mkdir /domlogbackup/2/
mkdir /domlogbackup/3/
mkdir /domlogbackup/4/
mkdir /domlogbackup/5/
mkdir /domlogbackup/6/
mkdir /domlogbackup/7/
mkdir /domlogbackup/8/
sleep 1
rm -rf /domlogbackup/8/*
sleep 5
mv /domlogbackup/7/* /domlogbackup/8/
mv /domlogbackup/6/* /domlogbackup/7/
mv /domlogbackup/5/* /domlogbackup/6/
mv /domlogbackup/4/* /domlogbackup/5/
mv /domlogbackup/3/* /domlogbackup/4/
mv /domlogbackup/2/* /domlogbackup/3/
mv /domlogbackup/1/* /domlogbackup/2/
sleep 5
cp /usr/local/apache/domlogs/* /domlogbackup/1/
sleep 0.1
# rotate domlogs
sleep 10
gzip /domlogbackup/1/*
View 2 Replies
View Related
Feb 22, 2007
I've been struggling with IIS continuously.
I simply cannot get things to work on it like it's supposed to.
Right now...PHP is running fine...but MySQL won't work.
I've been searching Google for the past 12hours trying to fix this, but it won't budge.
In my "php.ini" file, I enabled the "php_mysql.dll" extension.
I've also tried several other things, but nothing works.
View 3 Replies
View Related
Sep 7, 2007
I'm searching a server monitoring software which can call a phone of a technician. Either by isdn or with gnokii mobilephone.
The software should tell then on the phone which server is down or which service is down.
Is something like this already existing?
View 9 Replies
View Related
Nov 15, 2007
Approx how many COD4 slots do you think i could get on the following spec server
Intel Core 2 Quad Pro Q6600 2.40GHz (1066FSB)
80GB Raptor 10,000RPM
2GB DDR2 RAM
Linux OS or Windows XP Pro (not sure if I will fork out the extra for windows or not yet)
100mbit uplink
I'll be co-locating this to a DC.
View 11 Replies
View Related
Sep 25, 2014
sometimes my server doesn't forward emails to other accounts, and I see in log file:
Sep 25 07:38:55 s17218468 /usr/lib64/plesk-9.0/psa-pc-remote[1151]: handlers_stderr: DEFER
Sep 25 07:38:55 s17218468 /usr/lib64/plesk-9.0/psa-pc-remote[1151]: DEFER during call 'grey' handler
Sep 25 07:38:55 s17218468 /usr/lib64/plesk-9.0/psa-pc-remote[1151]: Message aborted.
If I restart the server it works.
View 3 Replies
View Related
Mar 30, 2009
I'm getting the following error when I'm trying to access Fantastico from cPanel:
Fatal error: Call to undefined function get_output() in /tmp/cpanel_phpengine.1238461774.28418Q1lWZzC0r_ on line 971
I have safe_mode set to On and shell_exec function disabled. When allowing shell_exec and safe_mode Fantastico is working in this server.
But I have many server where safe_mode set to On and shell_exec function is disabled and Fantastico is running just fine.
View 1 Replies
View Related
Jun 18, 2014
As per title, since few I have this when some php funcion is calling zlib_encode :
PHP Fatal error: Call to undefined function zlib_encode()
I saw that is was a know bug when there are some rewrite rules on .htacccess which is my case [URL] ....
I checked for json as well, and seem to be activated :
json
json support => enabled
json version => 1.2.1
View 1 Replies
View Related
Aug 21, 2014
'ERROR: Call to a member function getDomainId() on a non-object (Sites.php:104)'
View 6 Replies
View Related
Nov 10, 2014
I have an error that has arisen me for no apparent reason. This error does not allow me to enable or disable DNS domains. I searched for solutions but have not found anything.
The error message is: ERROR: Call to undefined method plesk__client__domain__dns__toggle::_postRequestRequired() (DNSToggleUIPointer.php:26)
And as I said DNS appears when activated or deactivated by the domain from Plesk panel
Version: 11.5.30 #48
View 7 Replies
View Related
Jun 15, 2008
I opened up my VPS bash today and I saw a message like this:
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
..........................
..........................
You have a mail.
bash:~#
Now I am confused from where have I received a mail, and even if I have received it why doesn't it shows in Google Apps??
I have set the MX Entries correctly and when I sent a mail specifically to admin@mysite.com , I do get a mail in google apps.
Anyways where does this mail lie, how can I view this mail ?? I installed postfix as my mailing server.
View 6 Replies
View Related
Aug 9, 2008
When I log into my clients VPS via SSH and I get the following error...
login as: root
root@69.162.67.44's password:
Last login: Sun Jan 20 23:33:36 2008 from 122.167.25.31
-bash-3.1#
View 11 Replies
View Related
Jun 30, 2007
I've just about got my mysqldump script ready,
Here is what it looks like:
Code:
#!/bin/sh
mysqldump -uusr -ppwd --opt db > /home/usr/dbs/1.sql
mysqldump -uusr -ppwd --opt db2 > /home/usr/dbs/2.sql
cd /home/usr/dbs
tar -zcvf sqldata.tgz *.sql
How would I make my finished gzipped file's filename to include the date?
Would I add any tags infront of sqldata.tgz *.sql?
Or would I have to run another command after the last line?
View 14 Replies
View Related
Jun 1, 2007
I could use a bash script for a crontab that does a regular backup of my mysql database.
Unfortunately i can't employ one of the made-up backup scripts using mysqldump because i need to use mysqlhotcopy (that's because i need the raw data for a charset mess in mysql with some foreign languages not classifieds as utf8 .. long story), and i'm a total ignorant of perl and bash scripting.
The script (that will be recalled via cron) has to:remove all the .tar.gz files older than X days in the folder /xxx/backup, if the folder contains more than X tar.gz files
create a folder /xxx/backup/$todaydate call the command "mysqlhotcopy --bla -bla -bla " that will copy the dbase in the previously created /xxx/backup/$todaydate folder
at the end of the previous operation (if successful) compress the $todaydate folder in a $todaydate-sqlbackup.tar.gz file at the end of the previous operation (if successful) delete the uncompressed folder. launch the "rsync -bla -bla" command to syncronize this folder with a remote server I thought it will be something like a 10lines script, and i'll be glad to hand you a couple of virtual beers (via paypal ) as a thank you sign, but if the script is not trivial and you're willing to help anyhow, of course i'm willing to pay more.
View 1 Replies
View Related
Dec 6, 2007
apache 11421 0.0 0.3 2704 1712 ? Ss Oct09 4:35 bash
apache 11625 0.0 0.1 1912 884 ? Ss Oct09 1:12 bash
apache 14454 0.0 0.0 1764 128 ? Ss Oct17 0:00 /usr/sbin/apache
apache 15216 0.0 0.2 2308 1356 ? Ss Nov10 1:58 bash
apache 19597 0.0 0.2 2308 1336 ? Ss Nov10 1:50 bash
apache 22164 0.0 0.3 2704 1772 ? Ss Oct11 1:11 bash
I stopped apache but can see these when i do ps aux.
View 2 Replies
View Related
Jun 4, 2009
I'm having a problem with litespeed and apache, every time when I reboot the server listespeed and apache(both) are started and the server uses apache. I configured litespeed to use a conf file of apache so I can't remove just apache. I need a way when I restart the server litespeed is started and apache is stoped
2nd problem. how to make this in a batch script
The script will backup a directory every month and I need in every backup get a date like this directoryname-date(day/month/year)
View 4 Replies
View Related
Mar 1, 2008
Code:
-rw-r--r-- 1 root root 975 Dec 22 2006 .bash_profile
root@server [~]# rm -f .bash_profile
rm: cannot remove `.bash_profile': Operation not permitted
root@server [~]# chmod +t .bash_profile
chmod: changing permissions of `.bash_profile': Operation not permitted
I simply wanted to modify something within the file but I keep getting permission errors. I'm logged in as root.
View 3 Replies
View Related
Dec 7, 2008
I am currently trying to create a bash script which I will run off a loop with a sleep interval that will query tcpdump (udp packets only) on a network interface, and is looking for length 10 packets.
So far so good, not that hard to code I know (Already made it / coded it this far perfectly). Now here is the tricky part, I only want the bash script to identify IP's that have sent over 15 packets with the length of 10. (This is the part that I can't seem to find a way to code).
I was thinking, from the output maybe to calculate the number of lines with the same equal IP's.
Once this script identifies that, it will automatically run a command which I have set. (Quite easy, and I can do this).
I am looking for someone to help me with this. It is a fairly simple and quick job (editing the script I have at the moment). I am willing to also pay (if needed) an amount for this to be completed too. Obvieusly not that much, but still something I am sure we can work out.
View 2 Replies
View Related
Sep 24, 2007
somebody to write a very simple bash script to me , which will help me to "wget" some text files!
i want to do the following:
wget [url]
X changes for evey folder (main group)
Y will change for every file in the folder.
eg:
[url]
[url]
[url]
the next group:
[url]
[url]
[url]
The X value range [1-100]
the Y value range [1-13]
View 3 Replies
View Related
Mar 31, 2007
Sometimes if I tried to use rm to remove too many files I got this:
-bash: /bin/rm: Argument list too long
I think there was a workaround, like ls and then piping the result to rm, but I forget.
View 3 Replies
View Related
Jun 5, 2007
I asked around and found [url] and win-bash.exe on source forge.
View 1 Replies
View Related
Jun 7, 2009
I need to make a bash script, when I run it ./script.sh it needs to vivit a website - [url]/something.php where something.php has some function, e.g for emails, so when someone visit something.php it sends email to my email address. I just need a way to visit it via bash script
View 10 Replies
View Related
Jul 2, 2009
I am trying to automate the installation of YUM, cPanel/WHM and CSF.
I have written a script that works perfectly all the way down to installing CSF...
It gives me the following error when moving onto the CSF installation;
--05:03:37-- [url]
Resolving www.configserver.com... 85.13.195.235
Connecting to www.configserver.com|85.13.195.235|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 433358 (423K) [application/x-tar]
Saving to: `csf.tgz'
100%[=======================================>] 433,358 338K/s in 1.3s
05:03:39 (338 KB/s) - `csf.tgz' saved [433358/433358]
--05:03:39-- http://%0D/
Resolving 15... failed: Name or service not known.
FINISHED --05:03:39--
Downloaded: 1 files, 423K in 1.3s (338 KB/s)
tar:
: Not found in archive
tar: Error exit delayed from previous errors
./cPanelServer.sh: line 9: cd: csf: No such file or directory
sh: install.sh: No such file or directory
./cPanelServer.sh: line 13: unexpected EOF while looking for matching `"'
./cPanelServer.sh: line 18: syntax error: unexpected end of file
Script Contents;
Code:
./yum.sh
cd /home
wget layer1.cpanel.net/latest
sh latest
cd /
rm -fv csf.tgz
wget [url]
tar -xzf csf.tgz
cd /csf
sh install.sh
echo -n "TESTING = "1"
read word
sed "s/$word/TESTING = "0"/g" /etc/file.conf > /etc/file.conf.new
mv /etc/file.conf.new /etc/file.conf
service csf restart
done
It's seems the script is having issues extracting "csf.tgz", but I have no clue.
TBH, this is my first ever script and I'm surprised any of it works!
View 6 Replies
View Related
Apr 28, 2009
my VPS provided didn't enable a lot of modules and that's why I can use a firewall(csf or apf) and dos deflate script
I need a simple script for it.
First,it has to call this:
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
then there will be something like:
Number : IP address
20 1.2.3.4
40 1.2.3.5
80 1.2.3.6
and then the bash script has to bann IPs with more than 30 connections(In our case: 1.2.3.5 and 1.2.3.6) with this:
iptables -A INPUT -s IP_FOR_BLOCK -j DROP
View 14 Replies
View Related