Error From /etc/profile
Feb 6, 2007
I modified /etc/profile on CentOS 4.3, after failed, I change everything back. but I got errors as follows:
: command not found
: command not found
'ash: /etc/profile: line 6: syntax error near unexpected token `{
'ash: /etc/profile: line 6: `pathmunge () {
I am pretty much sure the file is as same as original one. but no idea on why the error occurs?
My full content of profile is:
Code:
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi
pathmunge /usr/X11R6/bin after
# No core files by default
ulimit -S -c 0 > /dev/null 2>&1
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
HOSTNAME=`/bin/hostname`
HISTSIZE=1000
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
unset pathmunge
View 2 Replies
ADVERTISEMENT
Oct 9, 2009
I'm going to be setting up and hosting a high-profile wordpress blog. It'll probably get around 800.000 pagehits per month. The client has been asking about Peak Capacity, Throughput and whatnot and I'm honestly am not sure what to tell him.
So far I've been maintaining a 1and1 windows 2003 dedicated server with about 20 websites, but none which comes close to that amount of traffic.
My plan is to go for a Linux box with the following specs:
CPU: Opteron 1218 HE
CPU Details: 2 x 2.6 GHz
RAM:4 GB RAM
Hard Disks: 2 x 400 GB (RAID 1 Software)
Bandwidth: 100Mbps
View 9 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
Jun 22, 2011
How do you do Myspace Style Profile Name Mod Rewrites?
I have Mod-rewrite code turned on for Friendly URLS in options.
But for member profiles in .htaccess. I want it to look like this:
[URL]...
Instead of this:[URL]...
This way members can link friends to their profile easier.
View 3 Replies
View Related
Feb 15, 2014
I've got the following Issue with Apache 2.4.7: <OS 5> Zugriff verweigert: AH00370: Failed to create WinNT Service Profile
Well i should mention, that the same Packages are running properly configured in a Virutal Machine (same configuration as my Livemachine) without any problems whatsoever.
Its my Livemachine, where Apache keeps returning this Message while attempting to install Apache as a Service.
Installed Packages:
Apache: httpd-2.4.7-win32-VC11.zip
PHP: php-5.5.7-Win32-VC11-x86.zip
MySQL: mysql-installer-community-5.6.15.0
phpMyAdmin-4.1.3-all-languages.zip
OperatingSystem: Windows 7-64 Ultimate SP1
UAC: Disabled
CMD: tried the "Execute as Administrator" as well as without (<- which is always working in my Case)
Logfile: Apart from the ususal "install.log", nothing else inside the Logs Folder.
Even reinstalled Apache twice, with- and without my Configurationfiles, but still got the same results.
View 2 Replies
View Related
Jun 29, 2013
After upgrade to Plesk 11.5.30 trying to set up FTP-Backup Repository:
Repository error: Transport error: unable to list directory: Curl error: Access denied to remote resourceClick to expand...
View 7 Replies
View Related
Nov 22, 2008
As the title says, 1 of the accounts on my server is getting the following error message - error number 0x800CCC79 server response 451 temporary local problem -
Yet other accounts on the server are sending and recieving fine?
what would cause this error? Its not tempory as its been 48 hours
View 3 Replies
View Related
May 17, 2009
yum -y groupinstall kde
Loading "priorities" plugin
Setting up Group Process
Setting up repositories
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
what is this? what ever i try to install i get this weird error..
View 7 Replies
View Related
Jul 23, 2009
While clicking on "Edit DNS" in WHM
I am getting this error
Unable to parse zone: Error while parsing zonedata for xyz.com: syntax error, line 25 ...propagated at /usr/local/cpanel/Cpanel/CPAN/Net/DNS/ZoneFile/Fast.pm line 142.
View 6 Replies
View Related
May 29, 2008
--> Populating transaction set with selected packages. Please wait.
---> Package cadaver.i386 0:0.22.5-1.el5.rf set to be updated
---> Package mtr.i386 2:0.72-1.el5.rf set to be updated
---> Package rsync.i386 0:3.0.2-1.el5.rf set to be updated
---> Package nmap.i386 2:4.20-1.el5.rf set to be updated
---> Package lftp.i386 0:3.7.1-1.el5.rf set to be updated
---> Package syslinux.i386 0:3.63-1.el5.rf set to be updated
---> Package dkms.noarch 0:2.0.19-2.el5.rf set to be updated
---> Package subversion.i386 0:1.4.6-0.1.el5.rf set to be updated
--> Running transaction check
--> Processing Dependency: perl(Crypt:asswdMD5) for package: syslinux
--> Finished Dependency Resolution
Error: Missing Dependency: perl(Crypt:asswdMD5) is needed by package syslinux
when I run yum update
View 9 Replies
View Related
Apr 28, 2009
im still getting the following error
Code:
root@main [/tmp/apf-9.7-1]# ./install.sh
Installing APF 9.7-1: eth0: error fetching interface information: Device not found
Completed.
Installation Details:
Install path: /etc/apf/
Config path: /etc/apf/conf.apf
Executable path: /usr/local/sbin/apf
Other Details:
eth0: error fetching interface information: Device not found
cp: cannot stat `/etc/apf.bk.last/vnet/*.rules': No such file or directory
Imported options from 9.7-1 to 9.7-1.
Note: Please review /etc/apf/conf.apf for consistency, install default backed up to /etc/apf/conf.apf.orig
my host has said
Code:
edit the apf.conf file to venet0:0 instead of eth0
which ive done and im still getting the error, Ive pasted my current conf.apf config below
Code:
#!/bin/sh
#
# APF 9.7 [apf@r-fx.org]
# Copyright (C) 1999-2007, R-fx Networks <proj@r-fx.org>
# Copyright (C) 2007, Ryan MacDonald <ryan@r-fx.org>
# This program may be freely redistributed under the terms of the GNU GPL
#
# NOTE: This file should be edited with word/line wrapping off,
# if your using pico/nano please start it with the -w switch
# (e.g: pico -w filename)
# NOTE: All options in this file are integer values unless otherwise
# indicated. This means value of 0 = disabled and 1 = enabled.
##
# [Main]
##
# !!! Do not leave set to (1) !!!
# When set to enabled; 5 minute cronjob is set to stop the firewall. Set
# this off (0) when firewall is determined to be operating as desired.
DEVEL_MODE="1"
# The installation path of APF; this can be changed but it is not recommended.
INSTALL_PATH="/etc/apf"
# Untrusted Network interface(s); all traffic on defined interface will be
# subject to all firewall rules. This should be your internet exposed
# interfaces. Only one interface is accepted for each value.
IFACE_IN="venet0"
IFACE_OUT="venet0"
# Trusted Network interface(s); all traffic on defined interface(s) will by-pass
# ALL firewall rules, format is white space or comma separated list.
IFACE_TRUSTED=""
# This option will allow for all status events to be displayed in real time on
# the console as you use the firewall. Typically, APF used to operate silent
# with all logging piped to $LOG_APF. The use of this option will not disable
# the standard log file displayed by apf --status but rather compliment it.
SET_VERBOSE="1"
# The fast load feature makes use of the iptables-save/restore facilities to do
# a snapshot save of the current firewall rules on an APF stop then when APF is
# instructed to start again it will restore the snapshot. This feature allows
# APF to load hundreds of rules back into the firewall without the need to
# regenerate every firewall entry.
# Note: a) if system uptime is below 5 minutes, the snapshot is expired
# b) if snapshot age exceeds 12 hours, the snapshot is expired
# c) if conf or a .rule has changed since last load, snapshot is expired
# d) if it is your first run of APF since install, snapshot is generated
# - an expired snapshot means APF will do a full start rule-by-rule
SET_FASTLOAD="0"
View 6 Replies
View Related
Oct 5, 2007
I upgraded my PHP to 5.2.4 ang changed server API from Apache to CGI, and now a site doesnt load anymore...
It gives this error message: Fatal error: Internal Optimizer error: can't translate opcode 60 (JMP_NO_CTOR), please contact Zend support in /home/vrock/public_html/rwf/rwengine.lib on line 0
PHP Version 5.2.4
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
View 3 Replies
View Related
Oct 10, 2012
- Apache version : 2.2.21
- operating system : MAC OS Lion Server
- mod_ssl : 2.2.21
I have a certain area on a homepage which is protected by an .htaccess file. The code of the .htaccess file is the following:
Code:
AuthType Digest
AuthName "Password Required"
Options +Indexes
# code for HTTPS
RewriteEngine On
RewriteCond
%{SERVER_PORT} !^443$
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI}
Require valid-user
Usually everything has been working fine with this .htaccess-file until today. There hasn't been any change on the system.
If you click on the hyperlink to the restricted area the login window appears where you need to type in your username and a password. After typing in these data the following message appears in the browser:
500 Internal Server Error
The server encountered an internal error or
misconfigruation and was unable to complete your request. (…)
The apache error log file contains the following message:
Request exceeded the limit of 10 sub request nesting levels due to probable configuration error.
Use 'LimitInternalRecursion' to increase the limit if necessary.
Use 'LogLevel debug' to get a backtrace.
The increase of the LimitInternalRecursion does not solve the problem. So I switched the LogLevel in the httpd.conf file from warn to debug and looked again on the entries of the error log.
The following appeared (I have replaced ip addresses, usernames and URL by xyz or <URL>) :
Code:
[error] [client xyz]
mod_digest_apple: Client is using a nonce not issued by this server for this context:/rb/Vorlesung/WS12/Downloads/, referer:
http:<URL>
[Code] ....
View 3 Replies
View Related
Apr 23, 2009
I got an error in ftp.
Command:MLSD
Response:150 Accepted data connection
Response:226-ASCII
Response:226-Options: -a -l
Response:226 24 matches total
Error:Connection timed out
Error:Failed to retrieve directory listing
View 4 Replies
View Related
Jul 12, 2007
The following error occurred: [code=RESOURCE_RECLAIMED] Internal error. Try again.
from 4 hour to know thats what i get when i go to my site
ftp not work
i host with hostmonster also his forum give me this error i open ticket not reply to know is this from me or from him?
View 0 Replies
View Related
May 22, 2007
A lot of downtime recently, The following url is down:
after i restart the apache, it will back to normal,
[url]
the error detected is:
Http error:Http_client.No_reply
Error was detected at 2007-05-22 04:17:08
View 8 Replies
View Related
Apr 20, 2008
I am using fedora 7 and when i fire "yum localinstall dovecot-*" it gives error.
Could not retrieve mirrorlist [url]Error was [Errno4] IOError:< urlopen Error (110,'connection timed out')> Error:cannot retrieve repository metadata (Repomd.xml) for repository:fedora
i have checked all the setting but nothing.
View 6 Replies
View Related
Jun 15, 2008
unable to get any php5 error logs
Here are my settings in the /etc/php5/apache2/php.ini file:
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
error_log = /var/log/php5/error.log
However unfortunately I never see any error log being generated in the /var/log/php5/error.log file?
Also with my shared hosting site one thing which I noticed was, due to some configurations set by them, the error.log used to generate in the folder where the error occured. This is a cool thing which they used to do, but I just dont understand how did they do that.
View 2 Replies
View Related
Feb 6, 2008
Now im having a prob in my vps.I am gettin an error when I restart my vps.
iptables: Unknown error 4294967295
iptables: Unknown error 4294967295
iptables: Unknown error 4294967295
iptables: Unknown error 4294967295
View 6 Replies
View Related
Aug 16, 2008
Webmail Login Error-"error: Your request didn't contain the proper session ID cookie"
View 2 Replies
View Related
Jan 22, 2008
I could not get Apache to restart. It kept failing. Narrowed it down to this error:
[Tue Jan 22 16:09:03 2008] [error] SSL Library Error: 218734605 error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib
Removed the SSL portion out of my virtual host file and Apache restarted. But if I put the SSL portion back in, Apache fails.
All paths in http.conf and ssl.conf files are correct. And the SSL Cert is valid.
This is Centos box with Apache2 with OpenSSL 0.9.7.
Any suggestions on why this happened out of the blue and how to fix it?
View 0 Replies
View Related
Mar 7, 2008
My Directadmin Linux Server with PHP 5 comes out with these errors
Fatal error: session_start() all of a sudden, anyone knows why and how to solve?
View 4 Replies
View Related
May 5, 2009
In my move away from proprietary CP not configured for my needs and over which I have little control, I'm uninstalling them from my servers. On one of my VPS, I reinstalled the OS, CentOS 5.2 and am trying to prepare for an upgrade to CentOS 5.3 (and installs of new mailserver, webserver, CP and DNS server) by doing the required software updates on the server. However, I keep getting nearly the exact same error, outputting the exact same files. In this case, I'm trying to install "vim-minimal" for bash since I'm having bash problems, too:
-bash-3.2# yum install vim-minimal
Loaded plugins: fastestmirror, protect-packages
Loading mirror speeds from cached hostfile
* rpmforge: fr2.rpmfind.net
* base: ftp.nluug.nl
* updates: ftp.nluug.nl
* addons: ftp.nluug.nl
* extras: ftp.nluug.nl
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package vim-minimal.x86_64 2:7.0.109-4.el5_2.4z set to be updated
--> Processing Dependency: libc.so.6(GLIBC_2.2.5)(64bit) for package: vim-minimal
--> Processing Dependency: libc.so.6(GLIBC_2.3.4)(64bit) for package: vim-minimal
--> Processing Dependency: libc.so.6(GLIBC_2.4)(64bit) for package: vim-minimal
--> Processing Dependency: libacl.so.1(ACL_1.0)(64bit) for package: vim-minimal
--> Processing Dependency: libc.so.6(GLIBC_2.3)(64bit) for package: vim-minimal
--> Processing Dependency: libc.so.6()(64bit) for package: vim-minimal
--> Processing Dependency: libacl.so.1()(64bit) for package: vim-minimal
--> Processing Dependency: libtermcap.so.2()(64bit) for package: vim-minimal
--> Processing Dependency: libselinux.so.1()(64bit) for package: vim-minimal
--> Running transaction check
---> Package libtermcap.x86_64 0:2.0.8-46.1 set to be updated
---> Package glibc.x86_64 0:2.5-34 set to be updated
--> Processing Dependency: glibc-common = 2.5-34 for package: glibc
---> Package libselinux.x86_64 0:1.33.4-5.1.el5 set to be updated
--> Processing Dependency: libsepol.so.1()(64bit) for package: libselinux
---> Package libacl.x86_64 0:2.2.39-3.el5 set to be updated
--> Processing Dependency: libattr.so.1(ATTR_1.0)(64bit) for package: libacl
--> Processing Dependency: libattr.so.1()(64bit) for package: libacl
---> Package glibc.i686 0:2.5-34 set to be updated
---> Package libselinux.i386 0:1.33.4-5.1.el5 set to be updated
--> Running transaction check
---> Package libattr.x86_64 0:2.4.32-1.1 set to be updated
---> Package libsepol.x86_64 0:1.15.2-1.el5 set to be updated
---> Package glibc-common.x86_64 0:2.5-34 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved .....
View 0 Replies
View Related
Jun 19, 2009
I just put a new server and testing a few sites on there but for some reason I cannot get them up. The sites will not appear in the browser despite being propagate for over 24 hours. I just attempted to delete and then re-add a dns zone for one of the accounts and I got the following message in whm...
Add a DNS Zone
Results of adding zone [url]
Zone created successfully for IP
Zone is owned by system
The same IP that its trying to add is listed in WHM under " Main >> Server Configuration >> Basic cPanel/WHM Setup" under the 'Main Shared Virtual Host IP' option. What am I missing here?
View 3 Replies
View Related
Apr 30, 2009
i have install csf and change testing from 1 to 0 and restart it but i have this error:
Error: The VPS iptables rule limit (numiptent) is too low (141/150) - stopping firewall to prevent iptables blocking all connections, at line 987
View 7 Replies
View Related
Jan 9, 2008
Okay I know this problem has something to do with the permissions on IIS, but I'm stuck. Whenever I try to access my site from an external network I get the "Access Denied 403.3" error. What do I need to change?
View 4 Replies
View Related
Apr 9, 2008
Someone reported a 226 ftp error, which I've never seen before to be honest
< 150 Connecting to port 51561
< 226-Options: -a -l
< 226 Output truncated to 2000 matches
> PORT 192,168,1,xxx,xxx,xxx
< 200 PORT command successful
> TYPE A
< 200 TYPE is now ASCII
> LIST
< 150 Connecting to port 51562
< 226-Options: -a -l
< 226 Output truncated to 2000 matches
Server is Cpanel/Centos using pueftp
I could not find any 226 info on cpanel's forums either
View 2 Replies
View Related
Sep 13, 2008
all IPB forums on my server when i try to login in them , it give me an error message
Not Acceptable
An appropriate representation of the requested resource /admin/home.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at portsaid.waffar-mall.com Port 80
Error 406
View 4 Replies
View Related
May 1, 2008
I have a new server which i am using around 2 weeks. In that 2 weeks i had s.m.a.r.t error mail from cpanel 3 times. First mail i got was when server was deployed and ready to use. I told host if it is a big deal, and they said they will make server offline and check for the problems. And than they said there is no problem at disk, and this kind of error can be ignored. I mean because of error code
[cPanel smartcheck] Possible Hard Drive Failure Soon
S.M.A.R.T Errors on /dev/sda
From Command: /usr/sbin/smartctl -q errorsonly -H -l selftest -l error /dev/sda
Please note the following marginal Attributes:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
190 Unknown_Attribute 0x0022 070 045 045 Old_age Always In_the_past 30
----END /dev/sda--
Id 190 error means, airflow temperature error, but i don't really know if it is a big deal, but i got that email for 3rd time now and little bit concerned about it.
View 1 Replies
View Related
Jul 28, 2007
I got this error when I try to use yum in a new server with CentOS 5:
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
Could not retrieve mirrorlist [url]
error was
[Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Error: Cannot find a valid baseurl for repo: base
View 4 Replies
View Related