CentOS 5 :: Yum Stopped Working - Errors Returned While Uploading " Failed To Open Directory With Write Permission"?
Jul 26, 2009
Its been a while (maybe too long) since I last used yum to check for updates / install anything on my server, but when I tried the other day I got the following response:
# yum list updates
Loading "installonlyn" plugin
Setting up repositories
Error: Cannot find a valid baseurl for repo: updates[code]......
Trying other mirror.Error: Cannot open/read repomd.xml file for repository: updates
A few weeks ago there were some network changes, but nothing else should have changed OS side.I have checked /etc/resolv.conf and that looks ok - ping and wget have no problem resolving hostnames.I tried setting enabled=0 in yhe .repos files - this allowed me to do a 'yum list', but 'yum list updates' returned an empty list - I am definitely not 100% up to date!
P.S. Attachment not there at the moment - getting the following error when I try to upload the zip file...Errors Returned While Uploading
Failed to open directory with write permission: /var/wwwthtml/oldwebcopy.centos.org/uploads/newbb
View 7 Replies
ADVERTISEMENT
May 5, 2010
I tried posting this before and I'm not sure what happened but I don't think it worked, so if it did please forgive the double post.am very very new to centOS and linux in general. I just want to setup a test web server that more closely mirrors our actual web server that is hosted by rackspace. I've installed centOS and tried to setup Apache, PHP and MySQL from a guide on the web using Yum. When I go to localhost in the web browser I'm able to see the default apache page. However when I create a php page it's just blank.When I look at the apache error logs I get this: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
I've been searching alot on the internet and I know the issue is permission related, but I don't know how to fix it. I've seen some forum posts that say you need to use the chmod 775 command on the /var/www/html folder.Currently when I do ls -l /var/www/html it returns
-rw------- 1 root root 19 May 5 13:16 index.php
-rw------- 1 root root 19 May 5 13:15 index.php~
I'm sure that this isn't correct but like I said I don't know much about how to set permissions or who the owner needs to be. I've done alot of searching and seen similar posts, but no one seems to explain it clearly.
View 2 Replies
View Related
Mar 10, 2010
I just isntalled LAMP using tasksel and have a problem. Whenever I try to access a page (aside from phpmyadmin, that works well), I get this error... Code: Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error: Unknown: Failed opening required '/var/www/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0
I have restarted the computer, restarted apache, etc and still nothing. When I first installed, phpmyadmin was inaccessible, so I ran some command in terminal which apparently created a symlink between phpmyadmin in the user/share dir to the /var/www dir, and curious if this is the problem. I have no clue how to remove this symlink if this is the case, and have phpmyadmin working now due to install using sudo apt-get install phpmyadmin.
View 1 Replies
View Related
Feb 21, 2010
I tried to read the File Permissions page on the wiki and my eyes glazed over after about three sentences. I've got a folder called /var/www/pics that I just want to be able to save image files to. My only other choice as I understand it is to save them to my home folder, then use a "sudo mv" command to copy files to that directory. How do I give my account permissions to save a file in that directory?
View 2 Replies
View Related
Mar 9, 2010
How do I use "chmod" command so that it allows me to write a file inside a certain directory ? This directory has permissions in the formdrwxr-xr-xOnce I try to write a file there, it says "Permission denied" ! Don't advise to use "sudo", since the file is created by some executable program compiled from a source code. If I was creating the file myself, I wouldn't have gone to this forum.
View 4 Replies
View Related
Apr 24, 2011
Which ways are creating an ftp account (not root or special) eg. with proftpd, where logging in with that ftp, user can access and write given www subdirs content.
View 6 Replies
View Related
Jul 25, 2009
I need to use usbip to work with the webcam from another computer. But when I installed (using YaST) usbip and launch this, I see errors:
# usbipd
usbip err: stub_server.c: 433 (do_standalone_mode) open usb.ids
usbip err: stub_driver.c: 33 (open_sysfs_stub_driver) usbip_common_mod.ko and usbip.ko must be loaded
** ERROR **:
driver open failed
aborting...
Emergency shutdown
# usbip
usbip err: vhci_attach.c: 586 (main) open usb.ids
Usage: usbip [options]
...
View 5 Replies
View Related
Feb 22, 2011
I have a machine running with slackware64 13.1 and vnc servers is installed on it. It worked for months until yesterday, when I couldnt connect to the machine remotely.
I have 2 vnc "users" on this machine, root and "user". Each have their own desktop. Root has desktop :1 and user had desktop :2. Simple enough.
VNC servers is started via /etc/rc.d/rc.local with the command:
Code:
Code:
It worked flawlessly. I use the very same configuration on my home server, never had a glitch.
From the "distant" machine, I get this error when I try to connect:
Code:
Unable to connect to VNC server
What has changed so it no longer works? I assume its not a network problem since the machines are all located in my home network and there is no firewall or router in between them.
View 2 Replies
View Related
May 19, 2010
I cannot get access to my external hard disk. It says as in the "SUBJECT" above. What should I do? I installed Debian XFCE testing.
View 5 Replies
View Related
Nov 3, 2010
fakeroot debian/rules clean dh clean dh_testdir i met error after "debuild -S", did anybody meet the same issue?
[Code]...
View 1 Replies
View Related
Apr 23, 2011
I Have Configure Samba server in Centos, I need give permission like for some user(5User) can able to read and write the particular folder, and again i need give some another user(6user) can only read permission for same folder.
View 1 Replies
View Related
Aug 23, 2009
My box is centos 5.3 x86. At booting, ipsec_setup messages are coming as attached picture.
And dhcpd also comes "failed".
View 3 Replies
View Related
Jul 4, 2010
I installed Ubuntu 10.4 side by side with my Vista. This is on a PC I leave on permanently and use as a sort of Sever, so Security and Network connection are VERY important on this device. I use it for documents and IP PBX (telephone system). I currently use Vista and 3CX, but I plan to roll it over to Unbuntu full time once its up and runnng correctly - I will just need to change the Grub2 conf priority. After install, all was fine and I managed to make many changes to settings, apps and updates, but I have noticed in the past week when going in to make further changes the network has suddenly stopped working! According to Network Manager and the icon on the panel it is connected and I can not see anything obvious that is not correct. I tried doing a PING (192.168.1.1) from Network Manager to the main router, but it failed. I know that there is nothing wrong with the network nor the card or PC it all sits on. It's working now with Vista and my other machines. It must be a config some-where.
View 9 Replies
View Related
Nov 18, 2010
Booting up this morning, no problem. But I accidentally let my laptop go into suspend mode, which doesn't work, so I had to force a restart (Suspend mode on my laptop won't allow me to wake it up again). Now, on rebooting, X doesn't work. I usually boot to RL3 then use startx. Now it just flashes the screen then gives me this error -
Code:
(EE) Error compiling keymap (server-0)
(EE) XKB: Couldn't compile keymap
XKB: Failed to compile keymap
Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
Fatal server error:
Failed to activate core devices .....
Fatal server error:
Failed to activate core devices.
Please consult the The X.Org Foundation support at [URL] for help. Please also check the log file at "/var/log/Xorg.0.log" for additional information. If I su - to root and then do "init 4", I get to xdm, and I can log in. X then starts, but with no sound, wrong keymaps, launchers not working; all sorts of things wrong. If I startx as root I get a normal desktop. I have tried copying root's xinitrc to /home/spoovy, but makes no difference.
View 2 Replies
View Related
Aug 7, 2011
I have my DNS configure in 2 zones. 1 internal, and the other external. DNS is chrooted under /var/named/chroot amd has been operating without any problems for well over 2 years now. I have recently run cross the problem shown in the subject line. When I try to freeze the internal dehnert.com zone with the following command...rndc freeze dehnert.com IN internal
I get the error...
I have been running the command as root, and with iptables turned off, so there is no firewall to restricting access. (the system sits behind a firewall) I have been searching the forums all over, but I havent run across what might be causing me to have root denied access. If anyone has seen any problem like this, please point me in the right direction so I can iron this out.
My named.conf is as follows...
View 1 Replies
View Related
Jun 24, 2009
Is growing raid 6 in 5.3 centos possible? I'm getting errors when i run mdadm in --grow mode failed : 'mdadm --grow /dev/md0 -n 5 2>&1' -> mdadm: Cannot set device size/shape for /dev/md0: Invalid argument Do i have to create a custom kernel for centos?
View 1 Replies
View Related
Jan 15, 2010
I was attempting the pear installation as per the instructions given here:url
I think i got the installation correct.
Then i tried this program
<?php
require_once 'System/Folders.php';
$sf = new System_Folders();
$home = $sf->getHome();
echo "$home
";
?>
and compiled it as follows:-
php spear.php
to get the results as
Warning: require_once(System/Folders.php): failed to open stream: No such file or directory in /var/www/spear.php on line 3
Fatal error: require_once(): Failed opening required 'System/Folders.php' (include_path='.:/opt/ZendFramework/current/library:/usr/share/php5:/usr/share/pear') in /var/www/spear.php on line 3
how should i correctly set the path in /etc/php5/apache2/php.ini
or how correct is my path statement
include_path = ".:/opt/ZendFramework/current/library:/usr/share/php5:/usr/share/pear"
in /etc/php5/apache2/php.ini
View 1 Replies
View Related
Aug 14, 2010
Iam trying to burn wave files to a cd that i ripped from a cd when i try burning to gets to 300 meg and stops with these errors CD RECORD RETURNED AN UNKNOWN ERROR (CODE 254) SOMETIMES USING TAO WRITING MODE SOLVES THIS ISSUE Using ubuntu 10.04
View 1 Replies
View Related
Feb 25, 2011
when I try to su, with the right password I know it is because I have reset it with a sudo, it says su: incorrect password. Looking at /var/log/messages I see su: Unable to open admin password file: Permission denied. This must mean that the file has incorrect permissions and or owner/group. I am wondering if anyone knew where the file was located and the correct permissions/owner/group.
View 3 Replies
View Related
May 21, 2010
I am trying to write a shell script in order to automate the process of uploading a file onto an FTP server using the built in FTP commands in ubuntu server (lucid). In order to connect I can use the following:
Code:
ftp wsbeorchids.org.uk
Name (wsbeorchids.org.uk:danielgroves): USERNAME
Password: PASSWORD
In need to pass my username and password in when prompted the prompts. How should I go about doing this? I have tried echoing the values without success. Please not that I am something of an amateur with scripting.
View 6 Replies
View Related
Apr 9, 2011
After upgrading to 5.6 I was trying things out and noticed for some reason the php on my server has stopped working. Anybody have a clue what's wrong ? I did read the release and it did mention the upgrade would then change my php.
View 12 Replies
View Related
Jul 6, 2010
On a fresh installed Lucide machine, I cannot open external hyper links (url) from within evince. I get the following error message:
Unable to open external link
Failed to execute child process "nautilus" (Permission denied)
View 1 Replies
View Related
Feb 25, 2010
I recently migrated my mail server over to a new machine. For some reason, after verifying that the OIDs are correct, MRTG won't graph anything. I've quadruple checked the OIDs and used the strings as well, it won't graph at all. Graphs for RAM, ethernet, packets, etc. are working. CPU is the only thing not working. They work when I use snmpwalk with them and they do populate values. The logs show unknown SNMP vars for cores 1 & 2, but there's no mention of cores 3 & 4 entries in the logs.
View 3 Replies
View Related
Sep 21, 2010
Is it just me, or has 'lock screen' stopped working in a recent update? I updated my install today and after rebooting I can't lock the screen... the screen saver doesn't lock it and if I select 'lock screen' manually from the menu then... nothing happens.
I even created a new user in case there was something weird in my configuration, but logged in as them I can't lock the screen either.
This is obviously a bit of an issue in an office environment as I don't want to have to log out every time I leave my desk.
View 6 Replies
View Related
Jun 2, 2010
My USB stick is this one: [URL] I can't get it to scan my frequencies. PC finds the stick (lsusb):
Code:
Bus 002 Device 005: ID 15a4:9016 Afatech Technologies, Inc. AF9015 DVB-T USB2.0 stick When I plug it in, dmesg shows this:
Code:
[ 5680.696043] usb 2-2: new high speed USB device using ehci_hcd and address 7
[ 5680.834917] usb 2-2: configuration #1 chosen from 1 choice
[ 5680.849872] af9015: tuner id:179 not supported, please report!
[ 5680.852951] Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 10 -> 7
[code]....
But if the directory is created, then after the same command I have
Code:
scanning /usr/share/dvb/dvb-t/lv-Riga
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:2273: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 19 No such device
I found on the internet a firmware for my USB HDTV DVB-T stick named "dvb-usb-af9015.fw" and copied it into /lib/firmware/ but I have not seen any difference with that.
View 1 Replies
View Related
May 31, 2010
We are running CentOS 5.4 x86 on ESX 4 Server. We have a busy Help Desk, a Forum and several name-based websites running. Weve been using CentOS for this 'purpose for several years (different versions) and so far we have never had a problem. On Saturday, I applied all the latest updates including the Kernel updates. I rebooted the server and all seemed well until Sunday morning when I didn't get my Logwatch in the mail. Then I got a telephone call from a customer asking me why I hadn't responded to a Trouble Ticket he had created on Saturday afternoon (creating a TT sends an email via sendmail to all the support staff). I did a few tests and sendmail has just stopped working. The Logwatch had been created and had been sent to root, but all mail for root is redirected to my Mail Server on e different box (GroupWise). There was nothing wrong with the mail server, but sendmail has just stopped.
Fortunately I had created a snapshot before I applied the updates, so I reverted back to the snapshot and mail started working again, but I lost 2 days info because I had run the backup before I applied the patches. Now I see there are 132 Updates available, but there is obviously a problem somewhere in there!
View 2 Replies
View Related
Aug 18, 2010
I built the system with one name and now want to change it.I do the usual things. change the /etc/hosts file change the hostname with the command hostname newname changed /etc/sysconfig/network and then mail stops working. Put it back to the old name and it works fine.So I am guessing I am missing something in the configuration for sendmail. I checked the sendmail.cf file under /etc/mail and no reference back to the hostname was found.I also tried the GUI on the console to change the hostbname.
View 3 Replies
View Related
Oct 1, 2010
I have openssh running it was working last week then an update was done and now ssh does not work. removed the updates and the problem still exists.
Its CentOS 5.5 with all the latest updates for 64 bit!
Issue if as follows:
Connect locally to the loop back ip or remote ip the connection is disconnect right after the correct password is entered.
Here are copies of the log, sshd config.
sshd config:
View 7 Replies
View Related
Jan 21, 2011
My mail server stopped working this weekend, when I got in today I restarted and all the emails came through. The panic_log shows: daemon: accept process fork failed: Cannot allocate memory several times over the course of a few minutes. Can anyone give me advice on troubleshooting this one?
View 1 Replies
View Related
Aug 26, 2011
I have a 2TB hard-drive connecting via a usb port on my server for automatic backups. I noticed the backups had stopped working and then I realize I had lost the ability to communicate with the drive.
/sbin/lsusb gives:
Bus 005 Device 001: ID 0000:0000
Bus 002 Device 003: ID 046b:ff10 American Megatrends, Inc.
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 046b:ff01 American Megatrends, Inc.
Bus 001 Device 005: ID 059f:1018 LaCie, Ltd
[Code]...
View 1 Replies
View Related