Apache :: Commands Recognized As Invalid

Jan 17, 2013

I've been trying to set up a "console host" in addition to my main "site front" so that I can easily manage MySQL without needing the use of the Workbench (i.e. phpmyadmin). But even when I add the "mod_authz_host" module file to my configuration and correctly referencing it with LoadModule, it says:

Quote:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
This is what is in my configuration file as of now:

Code:
AddDefaultCharset utf-8
ErrorLog data/http.log
Listen 80
PidFile data/http.log
ServerSignature Off
ServerTokens Prod

[Code] ....

I have tried using this as an alternative, but it caused my PHP interpreter to malfunction:

Quote:
Require ip 127.0.0.1

Prior to me try to implement these host control directives, my Apache setup has had no errors whatsoever.

View 2 Replies


ADVERTISEMENT

Apache :: Auto-index Like Commands?

Feb 28, 2014

I get many GET requests that have auto-index like sort commands attached.

View 6 Replies View Related

Apache :: SSLOpenSSLConfCmd Invalid Command

May 20, 2015

Trying to set a specific dhparams file after yesterday's disclosure of the logjam vulnerability I found that the VC10 apache build 2.4.12/1.0.1m does not support the SSLOpenSSLConfCmd configuration directive

AH00526: Syntax error on line 130 of conf/httpd.conf:
Invalid command 'SSLOpenSSLConfCmd', perhaps misspelled or defined by a module not included in the server configuration

View 9 Replies View Related

Invalid Command 'php_flag' - After Recompiling PHP & Apache?

May 14, 2008

After I recompiled Apache and PHP using easyapache from cPanel, we started getting all these weird errors. I'm getting a few people now complaining about not being able to enable register_globals. I believe (after searching) that having this enabled is a big security risk and shouldn't need to be used. However, some people apparently where using .haccess and php_flag to enable this. I did find on a few places that people can create their own php.ini file to emulate what was previously done with .htaccess?

After searching around..

I found out that Register Globals can become a security risk based on the scripts configuration that uses it. This feature normally can be enabled via .htaccess using the glad "php_flag register_globals On". Creating a file called php.ini inside the directory of the site with the flag "register_globals=on" I believe will also enable this option. To enable this option on a global scale, you can edit '/usr/local/cpanel/3rdparty/etc/php.ini', but its not recommended.

However.. We are unable to get the php.ini concept to work. Is there something I need to do to enable/allow users to do this for their account?

View 4 Replies View Related

Apache :: Invalid URI In Request Ntity, Trailers

Jun 17, 2008

in my apache server error logs:

[Sun Jun 15 20:26:18 2008] [error] [client xx.xx.xx.xx] Invalid URI in request ntity, trailers

[Sun Jun 15 20:42:44 2008] [error] [client xx.xx.xx.xx] request failed: erroneous characters after protocol string: gzip, $

[Sun Jun 15 22:34:05 2008] [error] [client xx.xx.xx.xx] client sent HTTP/1.1 request without hostname (see RFC2616 section$

[ Jun 14 11:27:23 2008] [error] [client xx.xxx.xx.xx] Invalid URI in request rset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

[Fri Jun 13 12:15:12 2008] [error] [client xx.xx.xx.xx] request failed: error reading the headers

View 0 Replies View Related

Apache :: 2.2 Won't Start / Invalid Command AuthDigestProvider

Nov 18, 2013

My Apache server wont start. I did not install this server.

D:WebserverApachebin>httpd.exe -e debug
[Mon Nov 18 09:35:04 2013] [debug] mod_so.c(246): loaded module actions_module
[Mon Nov 18 09:35:04 2013] [debug] mod_so.c(246): loaded module alias_module
[Mon Nov 18 09:35:04 2013] [debug] mod_so.c(246): loaded module asis_module
[Mon Nov 18 09:35:04 2013] [debug] mod_so.c(246): loaded module auth_basic_module
[Mon Nov 18 09:35:04 2013] [debug] mod_so.c(246): loaded module authn_default_module

[code]...

Invalid command 'AuthDigestProvider', perhaps misspelled or defined by a module not included in the server configuration..No port is using port 80 or 8080.

View 2 Replies View Related

Apache :: HTTPD Doesn't Start With Invalid Path Error

Jul 31, 2013

httpd server configuring.I share my files only from local disks but some of my resources are located on truecrypt secure volume.When I want to start my server now I have to mount my all drives first to have all path active. Otherwise httpd doesn't start with 'invalid path' error.My question is, how to force httpd starting without path or drive exists checking?

Platform Windows7 x64
Apache version 2.4.3
Package Xampp

View 8 Replies View Related

Second IP Recognized As Primary

Mar 15, 2007

I've been having this issue for almost a week now and it's driving me crazy.

I made an IP switch from one peer to another. Anyways, I setup the gateway, primary IP, subnet, etc.

Once the box was rebooted and came up with the new IPs I noted that cPanel was whining that the license was incorrect and noted that instead of xxx.xxx.xxx.98 it was recognizing xxx.xxx.xxx.99

I just switched the license over and it was done. But I'm having some major email issues as some remote hosts does not receive/send emails to my server as the hostname cannot be found since they also recognize the secondary IP .99 and not primary .98 as it should be.

I've checked the entire settings again but just can't get around it. An ipconfig shows that the primary IP is in fact .98 which keeps me puzzled:

eth0 Link encap:Ethernet HWaddr 00:50:45:5C:0D:90
inet addr:xxx.xxx.xxx.98 Bcast:xxx.xxx.xxx.111 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:134016363 errors:0 dropped:0 overruns:0 frame:0
TX packets:178062904 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1556429887 (1.4 GiB) TX bytes:2181442479 (2.0 GiB)
Interrupt:17

View 12 Replies View Related

Emails Sent Recognized As SPAM

Feb 12, 2007

how not to get recognized as spam, when I send an email from my company's website (@pulsion dot ca), it gets to the spam folder of my custommers.

View 4 Replies View Related

Plesk 12.x / Linux :: Wordpress Installations Not Recognized?

Aug 2, 2014

All Wordpress installations were recognized but they are not selectable and all have a parse error:

PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in /usr/share/plesk-wp-cli/php/wp-cli.php(18) eval()'d code on line 89

{err_code";0,"err_message":/n<h1> Error establishing database connection . . .

See the attached jpeg for the complete error message.

All the sites are working okay so we know the databases are accessible and working. We have the latest version of Plesk 12 with micro updates done daily. This is a plain installation with no mods to the system files or software. This is hosted at 1and1.com; our other server at Rackspace found the WP installations without any problems.

Component nameComponent version
awstats7.3-14050621.parallels
bind9.8.2-0.23.rc1.el6_5.1

[Code]....

View 7 Replies View Related

Plesk 12.x / Linux :: Wordpress Not Recognized And Handled

Apr 21, 2015

If I try to fetch manual Wordpress installations, they run in trouble with the Wordpress support (doesn't recognize them). Also if I do a fresh installation of Wordpress, it's recognized first but all changes to plugins or themes within Wordpress are not recognized and handled, also if removing the installation in Plesk and rescanning for installations.

View 12 Replies View Related

Different Free MEM Via Different Commands

Jun 9, 2008

I am running a CPanel VPS and wanted to see whats the actual ram stats. (My package have 512 MB ram)

The issue is, using two different methods, I am getting two different values.

Via SSH, free -m gives this
total used free shared buffers cached
Mem: 512 204 307 0 0 0
-/+ buffers/cache: 204 307
Swap: 0 0 0

and while running a script that I have found Here in WHT

Code:
#!/bin/bash
#
# Revised 02-Feb-2007: include kernel memory (kmemsize) in 'used' calculation
# and show percentages in output.
#

BEAN=`cat /proc/user_beancounters`
GUAR=`echo "$BEAN" | grep vmguar | awk '{ print $4;}'`
PRIV=`echo "$BEAN" | grep privvm | awk '{ print $2;}'`
KMEM=`echo "$BEAN" | grep kmem | awk '{ print $3;}'`

let TOTL=$GUAR/256
let KMMB=$KMEM/1048576
let PVMB=$PRIV/256
let USED=$KMMB+$PVMB
let FREE=$TOTL-$USED
if [ "$FREE" -gt "0" ]; then
let UPER=$USED*100/$TOTL
let FPER=100-$UPER
else
let UPER="100"
let FPER="0"
fi
echo "VPS Memory:"
echo " Total: $TOTL mb Used: $USED mb (${UPER}%) Free: $FREE mb (${FPER}%)"
It gives
Total: 512 mb Used: 482 mb (94%) Free: 30 mb (6%)

Why such huge difference??

Also "top" command shows
top - 02:44:04 up 1 day, 9:55, 2 users, load average: 1.35, 1.04, 0.94

Is that good for a a VPS with 512 RAM? (The site has extremely high traffic)

View 0 Replies View Related

Cron Commands

Jan 28, 2008

I've been reading through tutorials for setting up cron commands via cPanel, but everything I have tried does not work. What I need to do is simple - I just want to run a php file on my server once every 15 minutes.

View 1 Replies View Related

SSH Commands For Rsyn

May 25, 2008

commands for cron job, i need to backup only 2 account backup in cron job one username is panther that a/c is in paretition "home" another a/c name logictec itz in partion "home2" for this two a/c only i need make cron job but there are in seprate partion can u help me in give the comman which can make backup in cronjob every one day

View 4 Replies View Related

Some FFMEPG Commands

May 29, 2008

I am not familiar with shell scripting, so I'm asking for your help. I want to do

I need to batch convert all my videos so i used the command for particular folder media/ipod so i used

find /media/ipod -type f -exec mencoder {} -of mpeg -oac lavc -lavcopts acodec=mp2:abitrate=192 -af resample=44100:0:0 -ovc lavc -lavcopts vcodec=mpeg2video:vbitrate=50 -vf scale,harddup -ofps 25 -zoom -xy 176 -o {}.mpg ;

now i need to convert all my avi videos to 3gp for folder via batch convert.please help for this commands

View 2 Replies View Related

Linux Commands

Aug 20, 2007

does anyone know how i would find out what version of apache server i have? i have root access.

View 5 Replies View Related

Quick IPTables Commands

Aug 1, 2009

Quick IPTables Commands

List: iptables -L -n | grep <IP Address>

Remove: iptables -D INPUT -s <IP 1> -d <IP 2> -j DROP

Insert: iptables -I INPUT -s <IP> -j DROP

Flush: iptables -F

Remove: iptables -D OUTPUT -s 0.0.0.0/0 -d 66.93.33.185 -j DROP

netstat -nap | grep :80 | wc –l (shows # of connections to HTTP)

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort –n (shows total connections per IP, if more than 100 block)

View 3 Replies View Related

A Few Notes On Exim Commands

Jul 29, 2007

It may be useful to someone, sometimes the queded mail list gets gigantic because of some spammer and other emails that aren't spam could get deleted when using cPanel to control it.

The better solution would obviously be to prevent spammers of sending all those mails, if you know a better solution on cPanel 11 please share it with me.

==== REMOVE MAILS BY ID ====

/usr/sbin/exim -v -Mrm (MAIL ID HERE)

==== LIST QUEDED MAILS ====

/usr/sbin/exim -bp

==== OUTPUT NUMBER OF QUEDED MAILS ====

/usr/sbin/exim -bpc

==== DELETE FROZEN MAILS ====

/usr/sbin/exim -bp | awk '$6~"frozen" { print $3 }' | xargs exim -Mrm

==== DELIVER FORCEFULLY EMAILS ====

/usr/sbin/exim -qff -v -C /etc/exim.conf &

==== FREEZE MAILS FROM SENDER ====

/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mf

==== REMOVE MAILS FROM SENDER ====

/usr/sbin/exiqgrep -i -f (MAIL ADDRESS HERE) | xargs exim -Mrm

View 14 Replies View Related

Bash Commands On Windows

Jun 5, 2007

I asked around and found [url] and win-bash.exe on source forge.

View 1 Replies View Related

Script Using Curl Executing Ssh Commands

Apr 26, 2009

im trying to write a script interfacing to WHM again via remote access key. What I want to achieve is to remove an ip from iptables. using PHP script (CURL), any thoughts on how i can remove an ip from iptables? I know the ssh command how to do it but i dont know if it will work via a PHP (CURL) script connecting to WHM via remote access key.

View 1 Replies View Related

Executing A Queue Of Shell Commands From Php

Feb 4, 2008

This is following on from:
[url]

So I need to execute a list of commands via a cron job rather than having the script 'wait' for the shell to finish processing (as this was leading to time outs and all sorts of issues).

I'm guessing the way to do this is to have my php set up a cron job to occur at some point in the near future (like current time + 1 min), then to prevent the job from repeating the next hour, it removes itself from the cron list as the final command.

Does this sound like a reasonable way to go about executing a queue of shell commands from the browser that take an indefinite (possibly long) amount of time?

View 4 Replies View Related

Executing ./ Commands Through Hackers Shells

Jul 12, 2008

I've been concerned about executing commands through (./) using php and perl shells on the server

a new way of hacking these days is using perl shells , even if the perl was terminated on the server ,, or was forbidden for users
hackers upload a (perl) program to the server to use it instead of the server's own perl

any way ,,

chmoding the (ls-cat-more-less) to 4750 seems to give permission denied when exeuting these programs on the server
but the hackers also found that they could upload their own ls-cat-more-less programs and use them instead of the server's

they also could rename them ls==>ki or anything and use them like this

./ki /etc/valiases -alXrt
and the commands work like charm for them

./ <<--- this command uses the sh program on the server ,, ((sh which refers to bash on most servers))
so

./ki
is the same as

sh ki

and

bash ki

so i tried chmoding sh with 4750 and that killed the exploit

i was concerned about cpanel's and the website's functionality
so i tried changing an accounts password and creating a database ,, they both worked fine

so ,, if u thing chmoding 4750 sh is a bad idea please let me know

and if you know any other ways of disabling all the perl scripts on the server

View 14 Replies View Related

My CentOS 5 Bind Installation Commands

Dec 15, 2007

if after doing the following and transferring my domains to the server, they will functions properly as far as BIND setup is concerned. This will also serve as installation instructions for others if you can verify that this is all good.

I have installed BIND9 and setup DNS with the following:
------------------------------------------------------------------------

yum install bind-chroot

chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/

chown -R named /var/named/chroot/etc

chown -R named /var/named/chroot/var

cd /var/named/chroot/var/named/

ln -s ../../ chroot

cp /usr/share/doc/bind-9.3.3/sample/var/named/named.local /var/named/chroot/var/named/named.local

cp /usr/share/doc/bind-9.3.3/sample/var/named/named.root /var/named/chroot/var/named/named.root

touch /var/named/chroot/etc/named.conf

chkconfig --levels 235 named on

named.conf now contains:

Code:
options {
pid-file "/var/named/chroot/var/run/named/named.pid";
directory "/var/named/chroot/var/named";
query-source address * port 53;
allow-query { any; };
recursion no;
};

zone "server.mydomain.com" { type master; file "server.mydomain.com.db"; };
zone "mydomain.com" { type master; file "mydomain.com.db"; };
zone "mydomain.net" { type master; file "mydomain.net.db"; };
Upload named.conf to /var/named/chroot/etc

Modify /etc/resolv.conf to have the following before its current data:
search mydomain.com
nameserver 127.0.0.1
nameserver 78.129.143.155 // Replace this with the server's IP
// So below these there should be one or more nameserver $ip that point to the ISP's name servers so that the server can download stuff.

Modify /etc/host.conf to become the following:
order hosts,bind
multi on
nospoof on

Modify the files mydomain.com.db and mydomain.net.db and server.mydomain.com.db
to have the correct IP address. (These are DNS zone files that I'm sure are correct so I don't need you to confirm those.)
* Upload them to /var/named/chroot/var/named

/etc/init.d/named start

View 10 Replies View Related

Execute Commands From Script As Some User

Nov 15, 2007

I'm trying to write some scripts that automate the installation of a website with a content management system. This includes creating domains, installing databases etc via plesk API.

Now we have it creating the domains and databases via plesk, this is not the issue. It's permission problems issuing commands on the server.

I need to have the script install the cms and this requires writing files to a folder on the server owned by a user which is created with the domain.

e.g.
user creates timsdomain.com with ftp user name tim
Plesk makes directory on webserver called ~/vhosts/timsdomain.com/
inside this directory is a folder called httpdocs.
All the files within this folder are owned by tim.

Now my script (running as 'apache' in a folder owned by 'admin') needs to write/edit files to this directory as the user tim (or whatever user was created when the domain was set up).

How can I do this from a php script?

My idea would be to log in as the new user and then start issuing commands but I don't know how to login a user from a script.

I've tried exec, exec_shell etc
trying to log in via script as the new user using sudo/su/suid etc but they all ask for a password (for obvious reasons) but I cannot see a way to send the password to the command with the script. Ssh?
I don't know. Help

Here's some pseudocode that demonstrates what I'm trying to do, if you can think of a better way I'm all ears.

Code:

//User Fills in CMS/Domain information which becomes Form_Data

//uses plesk to create blank domain, create email addresses and empty database
Make_Domain(Form_Data) {
Plesk = Get_Plesk_Object();
Plesk.Create_Domain();
Plesk.Create_Database();
Build_CMS(Form_Data);
}

//HERE IS WHERE I AM HAVING TROUBLE: I can't figure out how to change the user so I can install files to a
// different directory other than the current user's directory (admin)

Build_CMS(Form_Data) {

change_to_user(Form_Data.ftp_username, FormData.ftp_password);
unpack_CMS_archive_into(user_directory); //eg unpack cms.tar into 'timsdomain.com' (if the above command didn't switch the current directory to users home directory)

//initialises CMS config files and installs CMS data to database
Run_Install_Scripts_On_Server(Form_Data);
//albeit complex, most important part of script
Confirm_Tim_Is_Awesome();
}

Confirm_Tim_Is_Awesome() {
while (getTim().has_moustache()) {
echo "<em>You're still awesome. </em>";
}
}

View 2 Replies View Related

Sequential Shell Commands On A Cron Job

Oct 7, 2007

if it is possible to set sequential commands on a cron job?

Meaning, there is more than one shell commands following the first one.

View 2 Replies View Related

MySQL Won't Accept Commands: Wrong Password

Jun 2, 2008

I am just trying out MySQL on the external Apache server. I must have written down the wrong password. My commands to enter mysql with a password results in denied access.

What file do I undo in order to create a new password? I don't know the exact steps I'm supposed to take. I don't think this is a MySQL issue, but a server issue, right?

I used to create databases and tables on my regular computer and left off the password altogether while I was practicing. Now I'm taking steps to do it on the actual server, and have run across this problem.

View 6 Replies View Related

SSH Commands - Deleting Files And Escaping Characters

Jun 26, 2008

I have two quick questions.

Question 1
I had a script create a backup of every file on my site using the following format "filename.php.bac". I want to delete these files now and I tired to use "rm *.bac" but that only deleted the files in the current directory. How can I delete ALL those files in EVERY directory and sub-directory starting at the public_html directory?

Question 2
How can I escape semi-colon's (;) in a perl script? I'm trying to run a search+replace script to update some Analytics code and I have a ton of files to update but for some reason if there is a semi-colon in the find varable, it assumes that it has reached the end of the contents in that variable.

Here is the code. Take a look at the $find variable and you will see extra semi-colon's. How do I tell the script to not treat those semi-colons as the end of the variable? .........

View 5 Replies View Related

Scheduled Consecutive Shell Commands Or As Cron Job

Oct 9, 2007

Is it possible to schedule consecutive shell commands to be run at a given time or every certain period (like every hour)?

This is important for me as I want to schedule to run certain program and then input the following commands afterwards to do and complete the task, all automatically within the specified schedule.

One example would be connecting to an FTP. First you'd need to input the ftp command to run the ftp program, then following that, input another commands consecutively within that session (the ftp program) to do and complete the task.

I'm running KDE on CentOs4 btw.

Is it even possible to do this on cron jobs?

View 1 Replies View Related

Plesk 12.x / Linux :: Update Of Chroot Commands After Upgrade

Sep 30, 2014

After update of some system commands, there is now difference between the system-wide command and the equivalent that is located in the chroot template directory (and the command that is in the domain's bin dir).

Is there a command/utility that can update the commands (and all libraries that they depend on), that we have in our chroot template directory /var/www/vhosts/chroot?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved