Ubuntu :: Reinstall The FTP Servers They Won't Start Because The Config Files Are Gone?
Mar 31, 2010
I built out a headless VMWare v2.0.2 Server. I managed to work all that out but now I'm having some trouble getting my virtual machines on the server. I installed both proftpd and vsftpd but neither server lets me log in. 'Login Failed' is always returned (using the only account on the machine - created during the install).
So I decided to install samba, but samba chokes on large files. I tried over and over again to copy a 10GB VMDK file over samba and it gets to 5% or so and suddenly tells me there is a network problem and dies (which there is no network problem as these machines are all on the same subnet plugged into the same gigabit switch).
So now I'm back to FTP. Unfortunately when I ran apt-get remove proftpd, it didn't remove any of the config files (/etc/proftpd/*) so I manually deleted them. Now when I try to reinstall the FTP servers they won't start because the config files are gone. What's the apt-get syntax to completely uninstall these servers as if they had never been installed so I can start clean? I really don't want to have to do a complete system re-install just to fix 300KB FTP servers.
I've deleted /etc/apache2 and did run: Code: sudo apt-get -o DPkg::Options::="--force-confmiss" --reinstall install apache2.2-common to get the default config back.
But starting the server via: Code: sudo /etc/init.d/apache2 results in:
Code: Syntax error on line 161 of /etc/apache2/apache2.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration line 160-163 look like this:
Code: <Files ~ "^.ht"> Order Allow,Deny # line in question Deny from all </Files>
The funny thing is that the exact same definition is in a debian lenny server config on another server. So why did this install a not working config?
I just removed apache2 via: Code: sudo aptitude remove apache2 sudo rm -r /etc/apache2 and reinstalled it via: Code: sudo aptitude install apache2 which also did not fix the config bug?
For testing I installed apache2 on another ubuntu 9.10 and did just copy the folder /etc/apache2 to my local installation - this fixed the problem. Still, why cant I reinstall apache2 with a working config?
I'm running Ubuntu Server 11.04 with OpenSSH, trying to create an ssh tunnel (for web traffic) to it from my (also Ubuntu) laptop. This is the command I'm using to create the tunnel:
Code: ssh -ND localhost:8080 firstname.lastname@example.org I had it all working on a virtual machine.. which was deleted What settings/lines do I need to change/add from the default OpenSSH config files to get tunnelling to work? I've Googled and AllowTcpForwarding is set to yes, as is X11Forwarding.. but it still doesn't work. Chrome can connect to the server, but says the connection was closed before any data was sent.
First off. I'm not using Ubuntu Server. But I'm trying to get XAMPP set up so I can test Wordpress themes I make. Using 9.10. I got XAMPP installed using the Instructions from Apache Friends. When I went to Localhost I got the language page. Selected English but nothing happened.
Something is wrong with the XAMPP installation :-( I searched and found a couple Index.php files. Deleted one. And now when I go to localhost I get a "Index of" page.I removed the XAMPP folder, Deleted Apache, PHP from Synaptic(They got reinstalled when i reinstalled XAMPP btw). Installed LAMP but it still does it. Maybe reinstall XAPP and copy the index.php files from another Comp?.
I am trying to setup my webserver and I am trying to make a website to run under suexec but somehow I cannot start my apache it directly fails and SELinux is giving me errors and don't really know what to do with it, it is giving me some command to type but not sure if this will make my server less secure. The SELinux error is as follow:
Code: Summary: SELinux prevented httpd reading and writing access to http files.
Detailed Description: SELinux prevented httpd reading and writing access to http files. Ordinarily httpd is allowed full access to all files labeled with http file context. This machine has a tightened security policy with the httpd_unified turned off, this requires explicit labeling of all files. If a file is a cgi script it needs to be labeled with httpd_TYPE_script_exec_t in order to be executed. If it is read-only content, it needs to be labeled httpd_TYPE_content_t, it is writable content. it needs to be labeled httpd_TYPE_script_rw_t or httpd_TYPE_script_ra_t. You can use the chcon command to change these contexts. Please refer to the man page "man httpd_selinux" or FAQ [URL] "TYPE" refers to one of "sys", "user" or "staff" or potentially other script types.
Allowing Access: Changing the "httpd_unified" boolean to true will allow this access: "setsebool -P httpd_unified=1"
Fix Command: setsebool -P httpd_unified=1
I will write down how I did setup my server so maybe you can see a mistake I did. First I changed my Apache httpd.conf I added the following to it: Code: NameVirtualHost 192.168.1.2:80 <VirtualHost 192.168.1.2:80> ServerName localhost DocumentRoot /var/www/html DirectoryIndex index.html index.html index.shtml index.php </VirtualHost>
Then I created the username "ulyaoth" with the group "ulyaoth" as I specified with my suexec, then I created all the directories as specified in my httpd.conf and "chown ulyaoth:ulyaoth (dirname)" them to the right group and username.
For some applications i still have windows XP installed. Because of the fact that Windows has to be reinstalled once a year (it's only windows ) I deleted the MBR accidentely. Now I can't start Fedora again. hen I start Linux using the Installation CD of Fedora 10 my partition is not mounted automatically because I am using LVM.
The hard drive that I used with Slackware64 has died, so it's time to reinstall and start from scratch.I have been using Slackware64 for over a year now and I enjoyed it...but now with a fresh start, I'm thinking about either going to Slackware64 -Current or going to the 32 bit version.Things I wanted in Slackware64, but couldn't get, were WINE, Skype and VirtualBox. I could have gotten those if I went "MultiLib" but I didn't want to do that, I wanted a pure 64 bit system.If you had to redo your system again, would you stick with your current O/S or would you change it up.
I have been having some problems with virtualbox starting. So here is the issue: When I start a VM I get the following: Code: Kernel driver not installed (rc=-1908). The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. reinstall the kernel module by executing
I am seeing quite a few entries about the usb. I am not sure if that is common or if its unrelated. I am running x86 11.3, and virtualbox 4.0.4 I have tried to uninstall, and even go back to 3.2
I can't seem to reinstall Postfix. I followed a guide and couldn't get it to work. After I retried a few times I gave up and deleted all files and folders I could find related to Postfix. Well I realized what the issue was and now that I want to try reinstalling Postfix it won't allow me.
When I type:
Code: sudo apt-get install postfix Reading package lists... Done Building dependency tree Reading state information... Done postfix is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 1 not fully installed or removed.
Trying to add printers to a new install, and system-config-printer doesn't start. CUPS is working, and I am able to add and manage printers using http://localhost:631, but I would prefer to use the applet.
Code: lee@tycho:~$ system-config-printer Traceback (most recent call last): File "/usr/share/system-config-printer/system-config-printer.py", line 104, in <module>
Similar problems (possibly different causes) include [URL], from only three weeks ago, but no responses, and this one [URL], which I don't think is the issue because I don't seem to have an "extra" python install at /usr/local/bin/python.
yesterday I uninstalled evolution - thats where the horror started. Today I had my whole gnome panel on top missing, which makes it practically impossible to work on netbook remix. Then I tried to follow instructions in this post.[URL] hile trying to run that stuff in the terminal that I went into with strg-alt-f1, I think I either created a new user (with the same name???) or something else happened, ANYWAY NOW AFTER RESTARTING ALL FILES IN MY HOME FOLDER ARE GONE, SO ARE ALL MY SETTINGS. the programs are oddly still there, even the additional ones that I installed. but for the rest all settings, passwords and files are like after a fresh ubuntu installation to clean hard disk. btw i run lucid lynx on an eeepc 1008ha.
I set up Kubuntu today because the keyboard input was messed up in GNOME, due to some file being corrupted. Does anybody know how to replace GNOME files in Kubuntu? I'm new to it, trying to find my way around.
I've just done a fresh install of ubuntu 10.10 and it works great, but I was feeling adventurous one day and mess up my sound experimenting with different drivers.What I am asking is what would be all the programs I could reinstall to get it back to the original install?I've all ready tried Code:sudo apt-get --purge --reinstall install libasound2What other programs could I try?
I have a mysql database and i use it with apache for my webpages. And I guess it dosen't start when the computer starts so I have to manually start it with "sudo /etc/init.d/mysql start" This returns fail so i went to '/var/run/mysqld/' and the folder was empty. I don't know if this is the problem or not. How can I fix this?
First of all, ntfs-config does not appear in the menu in openSUSE 11.4 Gnome 2.32. When I try to start it using the run command(Alt + F2) it gives the following error in a small window: Insufficient Rights. You need administrative rights to start this application. I then try to run it as root (su -l or su) and it gives the following error:
All these packages and others are already installed in my computer.
I am running a recently installed minimal install. I am having some fun building the system up but trying to keep things slim. I have installed the ATI catalyst drivers working from the tutorial here under 'Installing the Restricted Drivers Manually': [URL]... After successfully getting the ATI driver running, I realise I really don't need or want it and am wanting to uninstall it completely and return the config to the way it was. Some of that I can do with the aid of some of the links I have found but installing the ATI drivers no doubt killed some of the packages that were there in the first place (graphics was fine in the first place incidentally). Question: What might these squashed packages be so I can reinstall them and have graphics setup as it was before I installed the ATI drivers and how can I remove all trace of the ATI drivers?
I have a Fedora 11 into a virtual environment (ESX) I remove all interfaces but with the command system-config-network I see my previous configuration How can I remove/clear all my network configuration to start another time to config?
I'm planning to take a custom-built machine presently running Windows Home Server and convert it to a Ubuntu server to support the same backup functionality, but also allow me to support other server functions as well (WHS is great for backups and as a file server, but that's about it). The machine has two 1TB 7200 RPM drives. As the primary use for the machine is backups of files stored on the server as well as on the local PCs, I'd like to configure the box to support redundancy across both drives - So if one fails, I still have my data. What would be the recommended configuration of the drives to support this? I plan on using Bacula for the backups (clients and server).
I'll assume the disk format won't be NTFS.If one of the drives fail and its the boot drive, how easy is it to recover the data from the other drive? Just want to make sure there isn't some form of security that would prevent me from reading the data.
I'm new to Linux with only a bit of Unix experience, but I figure I have to start somewhere (and I have a bit of technical expertise, just with the Windows platform) This will also let me start playing with the LAMP stack.
I have searched some about Bind9 and have it installed in my server. Now I'm looking for a Tools like mysqlBind and I found unxsBind is the next version of mysqlBind (These tools help you config BIND DNS with MySQL). But the issue is: I don't know how to Install it in Ubuntu - there just say how to install with Centos.