PATH Shell Variable

Jul 25, 2007

I had a program (APF, actually) install its executable file in /usr/local/sbin/, so I went to add that directory to my PATH variable in .bashrc. I'm able to type commands to executables just fine in other directories, but for some reason I keep getting "command not found errors" from bash when I type in the name of the executable (apf), even when starting/restarting new instances of the shell. Here's my current PATH variable in .bashrc - have I overlooked something?
# Customize the path directory
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:~/bin:

View 5 Replies


ADVERTISEMENT

Change Jail Shell To Normal Shell

Jul 8, 2008

Do any1 know how to change jail shell to normal shell?

View 14 Replies View Related

Is Thread_concurrency Variable Effective

Dec 18, 2008

It's recommended to make thread_concurrency = Number of CPU's x 2. But this is really effective with latest mysql5 versions?
[url]
Default 10
Range 1-512

Why to set it to 8 (4 cpus), for example, if recommended default value is 10? And why to set such a low value if range is till 512?

Also, how to check assigned value as "show variables;" command omit this value.

View 3 Replies View Related

Looking For A Streaming Host With Variable Slots

Apr 2, 2009

First off about myself: I'm your typical knows-enough-to-get-by web design CMS flash type guy. Nothing special no real training but if I need to run a control panel I probably can.

What I need: I'm moving an AM station(oldies) to online streaming and need a host for it. The variable here is the only reason I'm moving the station is because a radio show on it which runs 1 hour every weekday needs to expand our audience and all that good stuff. We'll be expanding the show as far as we can hopefully within the next year and on certain days we'd have more listeners due to having higher profile guests on.

However, since we have the stream 3 other shows on the radio station have offered to pay for the costs(we had to get a cable line run to the station in the first place)- presumably they would have a lower listener rate.

The question is what's the best solution here? We don't want to pay for a 2000 slot shoutcast service right off the bat, but we also need one who can rapidly expand our slots as needed, or possibly have one which just charges based on use. When we get up to high volume would it be smarter for us to just lease an unmetered dedicated server (high assumption of 1000 listeners(which is months off) for 3 hours a day running at 128k bit-rate the bandwidth really starts to add up) or a dedicated server that just charges based on usage. The latter may even be cheaper than using the high-priced-slot-based shoutcast stream servers.

I figure someone out there has already done the research can might know an answer to the problem. The key here is flexibility- no point paying $90-300/month for a dedicated server the first month if we're only getting 200 listeners on our show and 50 for the other shows but if we somehow experience a surge in listeners we don't want to be stuck at a low cap.

View 13 Replies View Related

Settings Environment Variable In Fedora

Oct 30, 2008

I have a Fedora Linux server and I am trying to set:
PEAR=/home/pear/bin/pear

but when I try to set it under env or in a .profile file under home it still doesn't work. I even log off and log back in and I can't just run
PEAR

View 4 Replies View Related

Variable Filenames By Date In Cron Jobs

Mar 12, 2008

How do you insert variables in cron jobs? e.g. the current date.

Let's say I want to back up a file and append the date to it.

0 0 * * * cp /some/file.txt /some/outputfile_[DATE].txt >/dev/null
(note that I'm not sure the cp will actually work like that, it's just an example)

Where outputfile_[DATE].txt has the date in it.

Are there variables cron can use for date, hour, minute, etc.?

View 4 Replies View Related

Apache :: Mod Rewrite - How To Define A Variable And Use It In Rules

Mar 28, 2014

I am writing a rewrite rules using mod_rewrite module. I have the same data repeating all over the rules that I would like to replace with variable and set variable once at the top of rules then use variable in the rest of rules. Then if I need to add another IP address I would just add additional IP address to the variable instead like now need to change several rules.

For example I have IP addresses that I would like to set as a variable.

Now rules are the following (simplified) in httpd.conf:

RewriteEngine Off
RewriteCond %{REMOTE_ADDR} (192.168.5.20|192.168.7.15|10.10.20.50

View 1 Replies View Related

Plesk 12.x / Linux :: MySQL Tmpdir Is Read Only Variable Error

Mar 23, 2015

I want to move mysql tmpdir to /ramdisk but when i am setting it, mysql errors: tmpdir is read only variable.

View 3 Replies View Related

Apache Under Attack :: Configured Request Variable Value Length Limit Exceeded

Apr 21, 2008

My server was unstable at this month sometimes fork 700 process and apache 80 access per second and that's made server very slow . very bad browsing

when i checked log files /var/log/messages found that errors

Apr 20 04:06:28 suhosin[798]: ALERT - configured request variable value length limit exceeded - dropped variable 'message' (attacker '212.107.116.238', file '/usr/local/cpanel/cgi-sys/php4')
Apr 22 00:27:05 suhosin[15442]: ALERT - configured request variable name length limit exceeded - dropped ....

View 6 Replies View Related

Plesk 11.x / Linux :: New Mailbox Variable From (Mail Account Updated) Event

Jan 15, 2015

PRODUCT, VERSION, MICROUPDATE, OPERATING SYSTEM, ARCHITECTURE
Parallels Plesk, 11.5, .30_build115130819.13, Debian 7.0, Intel 64bit

PROBLEM DESCRIPTION
When triggering the events 'Mail account created' or 'Mail account modified' the returned variable NEW_MAILBOX will always state TRUE regardless of the mailbox option being ticked or not ticked on the 'New mail account' option located on the 'Mail' tab of a subscription.

STEPS TO REPRODUCE
1: Log in to plesk.
2. Select 'Tools & Settings'
3: Select 'Event Manager'
4: Select 'Add New Event Handler'
5: Select Event 'Mail account updated'
6: Enter in '/usr/bin/php /root/scripts/dbmail/mail_mod.php' to the Command box.

[Code] ....

ACTUAL RESULT

[NEW_MAILBOX] => true

EXPECTED RESULT

[NEW_MAILBOX] => false

ANY ADDITIONAL INFORMATION

I submitted this with parallels support and they stated that the variable NEW_MAILBOX will always return as TRUE regardless of if the mailbox option is ticked or not. They also stated the NEW_MAILBOX variable will be true regardless of any action taken on the panel with mail accounts.
The actual documentation on this variable is very sparse

Component name/description Old component value New component value
Mailbox old_mailbox new_mailbox

We previously had some code that would trigger on this variable and would create a mail account on our mail server with or without a mailbox.

if (!strcmp(getenv('NEW_MAILBOX'),"true") && !strcmp(getenv('OLD_MAILBOX'),"false")){
//Create a mailbox on the external mail service
}
if (!strcmp(getenv('NEW_MAILBOX'),"false") && !strcmp(getenv('OLD_MAILBOX'),"true")){
//Create a mail forwarder on the external mail service
}

At some point this variable has stopped working with newer versions of plesk. Having a variable that is always true regardless of what is done when creating a mail account seems pointless and requesting a new feature that was already there in older versions doesnt seem like something that should be requested on a new feature request.

QUESTION: Is there anyway to get this functionality restored other than requesting it gets re added via [URL] ....

View 2 Replies View Related

Php Path

Jan 30, 2007

SSH language, just know the commands that i use often.

my hoster, as he said did upgrade 2 days ago, [had an upgrade to apache 2], and some SSH command that i use before this, now don't work

for example, i had php script, which i run from ssh

[php go.php]

which don't work now ... got an error:

Code:
-bash: php: command not found
so my question is how to find php right path ?

Code:
$ whereis php
output:

Code:

Code:
php: /usr/src/php-5.2.0/php5.spec /usr/src/php-5.2.0/php.ini-dist /usr/src/php-5.2.0/php.ini-recommended /usr/src/php-5.2.0/php.gif /usr/local/bin/php /usr/local/lib/php.ini /usr/local/lib/php
as i understand, path is /usr/local/lib/php

after this try to type

Code:
/usr/local/lib/php go.php
output

Code:

/usr/local/lib/php: is a directory
btw

when i type

echo $PATH

get

Code:
/usr/kerberos/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/home/MYUSERNAME/bin

View 6 Replies View Related

Finding FTP Path

Nov 13, 2008

I'm trying to transfer a cms from 1 site to another and I don't know the full ftp path.. I'm looking for the "/public_html/username/blank/blank/sitefolder" or something similar.. How do I figure this out?

View 2 Replies View Related

Physical Path

Jan 13, 2007

how can i find out my site physical path

i tried following but blank page
[url]

View 2 Replies View Related

Virtual Path

Jul 10, 2007

I'm installing a script that's suppose to act as a payment gateway/store. The script requires the virtual path to the secured directory holding the products and everything I've tried doesn't work! It should be something like /home/username/public_html/secured where username is replaced with my username. I'm hosting with godaddy and have tried just about everything on this page: help.godaddyDOTCOM/article.php?article_id=1360 without any luck. Any ideas or experience with this? I'm on the economy plan with godaddy.

View 0 Replies View Related

Plesk Full Path?

Jun 8, 2007

What would be the full path to the user's directory?

Cpanel's is:

/home/user/public_html

View 3 Replies View Related

How To Change DocumentRoot Path?

Oct 6, 2009

how to change DocumentRoot path?

like from this:

/public_html-maindomain)
/public_html/domain2
/public_html/domain3
/public_html/domain4
/public_html/domain5

to this:

/public_html/maindomain
/public_html/domain2
/public_html/domain3
/public_html/domain4
/public_html/domain5

View 8 Replies View Related

Path For MySQL Databases

Oct 25, 2009

Just wanted to ask, which folder are the MySQL databases held in for Cpanel? Running CentOS 5 VPS.

View 7 Replies View Related

Change Path Of Exim Log

Dec 12, 2008

How do I change the path of the Exim log directory? I am using Cpanel/WHM.

View 5 Replies View Related

Cpanel Subdomain Path

Feb 7, 2008

I am running Cpanel x 11.

Can I create a subdomain like:

mysub.mydomain.com and instead of its physical location being at:

'public_html/mysub'

Can I change/create its physical location at:

'public_html/inside_dir/yet_another_inside_dir/mysub'

View 2 Replies View Related

Valueweb.com Path To CURL

Nov 28, 2007

Im having problems configuring my shopping cart.

Im hosting with www.valueweb.com

Does anybody know what is the path to curl?

I called them but they gave me 2 paths and none of them work.

View 2 Replies View Related

Colocation Close To NJ PATH

Dec 20, 2007

build out a backup datacenter to mirror our facilities currently located in Manhattan.

Does anyone have any recommendations of a datacenter (preferably a carrier neutral facility) that is within walking distance to the NJ PATH station in New Jersey?

We are looking for between 2 and 3 racks with up to four 20 amp power cicuits.

View 14 Replies View Related

How To Find Path To MySQL

Sep 1, 2007

How to find path to MySQL ?

I need to know command for check path to MySQL.

View 2 Replies View Related

Full Path Email

Apr 9, 2007

I am not sure if this is the right area to post this question but I am setting up an autoresponder on my website. To configure it to my site it the instructions say I need to

"# Type the full path to your EMail program.
# If you're not sure of this, ask your server administrator

$mailprog="/usr/sbin/sendmail";
# Type your email address. Make sure
# to place a in front of the @
# As an example: admin@autoresponderunlimited.com
$fromaddr="admin@autoresponderunlimited.com";"

Where would I be able to find this? I have the Linux Deluxe Hosting Plan from godaddy.com

View 6 Replies View Related

Apache :: Using UNC Path In Directory

Dec 18, 2012

Earlier I made a setup using UNC path in my Apache configuration. I managed to make this work. Now on another installation using Apache 2.2.22 nothing works like before.

This is how my configuration looks like ....

View 4 Replies View Related

Domain Name Server (DNS) Path Diagram

Jul 22, 2009

The "DNS Path Diagram" (lower part) does not show a graph when accessed via :

WHM=>Cluster/Remote Access =>Configure Cluster.

Any idea what can be causing this?

View 4 Replies View Related

Change Default Path In Tomcat ?

Dec 2, 2008

I have Linux server Apache with Tomcat.How can i change DocumentRoot for Tomcat or set default page for Tomcat index.jsp or my.jsp or index.php because i want to use 301 redirection.
So please guide me how can i change default page or change default path.

View 1 Replies View Related







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