Ubuntu Installation :: Reinstall Apache2 - Recreating Config Files

May 11, 2010

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?

View 8 Replies


ADVERTISEMENT

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.

View 2 Replies View Related

Ubuntu :: Uninstall (including Any Config Files) And Reinstall The Windows Manager

Jun 11, 2011

I've destroyed my desktop.

I'm using Ubuntu 11.04 and I would much like to uninstall (including any config files) and reinstall the windows manager.

Is there a set of commands I can run to achieve this?

View 1 Replies View Related

Fedora Installation :: Recreating Boot Partition

Jul 23, 2009

I was creating dual-boot WinXP on my machine with F10 allready installed.

On my 1st try, windows froze when inspecting hardware, so I deleted boot partition with fdisk and then it works.

I installed succesfully XP on last partition on my drive, but XP won't boot because of hal.dll error (forums says it can be repaired by changing boot.ini).

Now what I want is to create new boot partition to reinstall grub.

I'm trying to do that from gparted live cd:

From gparted live, i entered console and did "fdisk /dev/sda".

When i type 'p', here is my output:

Code:

when I try to type 'n' to create a new partition, it tells me "No free sectors available".

Before /boot was on /dev/sda1 (Start@1, End@13), and NTFS was on /dev/sda13.

How can I recreate boot partition?

View 5 Replies View Related

CentOS 5 :: How To Config Apache2 To Host Websites

Jun 25, 2011

any1 know how to config apache so i can use ServerName at my web browser ?

here is what i am trying to do: i need to host a number of web sites at my mac, for example: hostone.com, hosttwo.com, hostthree.com and etc since i need to host more than one website at the same pc, i use name based virtual hosts so i have hostone at 192.168.0.1:1234 and a servername of "hostone" hosttwo at 192.168.0.1:1235 with a server name of "hosttwo" and etc

my question is , how do i config my local settings, so all of my local network computers can access "hostone" site by type "hostone" at their browser and "hosttwo" site by type "hosttwo" at their browser

View 3 Replies View Related

Software :: Apache2 Losing Vhost Config After Few Minutes?

Mar 4, 2011

I have some vhosts set up, and they work once apache is restarted. But, as a few minutes go by, all the vhosts end up going to the default apache "It Works!" page.

I don't think it's the vhost config since it does work initially (and I've triple checked it all by now).

I am running htcache (or whatever the disk caching module is called).

View 3 Replies View Related

Ubuntu Installation :: Can't Reinstall Common Files?

Aug 10, 2010

I ran this line: aptitude purge x11-common and all common files, all the tools I need are gone from my desktop. I have an amd64 with ubuntu +gnome on it.

Is there a way to reverse this --other than installing 1gb of packages one by one?

View 3 Replies View Related

Ubuntu Servers :: Config - Change / Add From The Default OpenSSH Config Files To Get Tunnelling To Work?

Jul 10, 2011

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 george@192.168.1.20 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.

View 3 Replies View Related

Ubuntu Installation :: Tar.gz And Tar.bz2 Files - Unable To Access The Internet To Reinstall The Packages

Aug 10, 2010

I accidentally removed my network manager (gnome) from my system (via synaptic) and hence have not been able to have access to the internet to reinstall the packages. I have experimented with many commands (with help from others) in terminal with little success.

What I now did was downloaded a 'NetworkManager-0.8.0.999.tar.gz' file and a 'NetworkManager-0.8.1.tar.bz2' file (from a different comp) and have placed them onto my desktop. I have read the INSTALL instructions within and it is a tad complex for me as I am new to Linux. I understand I have to extract the files and compile them into a new folder (I think I would choose a file in the /home directory)- how would I go about doing this? Following this, I need to './configure' or 'make' or 'make install' the files

View 9 Replies View Related

Fedora Networking :: How To Reinstall System-config-network

Mar 28, 2009

I want to reinstall "system-config-network" in Fedora10. I have now system-config-network 1.5.95 and I want to have system-config-network 1.4.3 (it is from fedora8)

View 3 Replies View Related

Ubuntu Installation :: Reinstall In Windows 7 - Save My Personal Files In Downlads Folder?

Mar 13, 2010

My Ubuntu Remex Notebook had been install in windows7 by wubi, I want to reinstall it to solve some problems, but how to save my personal files in Downlads folder?

View 2 Replies View Related

Ubuntu Installation :: Remove Unneeded Config Files Automatically?

Jun 18, 2010

1) Whenever a new release of Ubuntu comes out, I've always done a full replacement (Booted up live CD, formatted / and formatted /home) to ensure there's zero incompatibilities, including configuration files in my /home. That has, finally, gotten annoying and I was wondering what the actual chances of a configuration file causing problems was in the 6 months that Ubuntu was released in. Also, special consideration for Gnome 3 (aka gnome-shell) coming out with the current gnome configs.

2)Any way to remove unneeded config files automatically? I don't always use purge when I remove a package just in case I want to reinstall it, well weeks later I def don't want it, is there an apt or dpkg command that will automatically remove them after the package is gone? I know autoclean and autoremove handle orphans and unneeded .deb's

3) How stable is Sidux in reality? Ran it in a VM and had a few errors every so often while using it, but i wasnt sure how much of that was the fact it was a VM. Some say its stable enough for daily use, some say it breaks every other day

View 2 Replies View Related

Ubuntu Installation :: Reinstall The Games Package Or Reinstall The Update?

May 2, 2010

So I was messing around trying to uninstall Nibbles and reinstall since I have an issue starting that game and something happened and removed the submenu under Games called "Logic", which had another whole list of games.

Is it possible to reinstall the games package or reinstall the update?I'm thinking more of the lines of a system restore or something so back 2 days from today.

View 2 Replies View Related

Fedora Installation :: Can't Modify Files Like Shadow Or Config

Aug 3, 2011

1- how I can deactivate selinux and the root password on fedora 15?

2- I can't use copy, cut past in the GUI !!

3- even with (su -) I can't modify files like shadow or config !

View 10 Replies View Related

Ubuntu :: Is There Some Way Of Recreating Or Recovering File I Need?

Aug 11, 2010

I've been using Evolution for several years no without problem. Yesterday I started getting the message"Error while openinghome/name/.evolution/mail/local#inbox".The mail is all there in local/inbox.sbd, but I can't find any way to tell the program this. I've got it all backed up on Dropbox, but can't find any trace of a #inbox. At least nothing with that name that's been recently deleted.Is there some way of recreating or recovering the file I need?

View 4 Replies View Related

Ubuntu :: Recreating Mdadm Array In 10.04 After Upgrade From 9.04?

Jul 31, 2010

I had a raid array working great in 9.04 with mdadm, and I just recently upgraded to 10.04 (clean install) and I'm trying to reassemble the array and having a dickens of a time.When I try to recreate the array with:

Code:
sudo mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sdb /dev/sdd /dev/sdc
I get this:

[code]....

View 9 Replies View Related

Ubuntu :: 10.10 Recreating Swap File After Install Of USBSTICK

Oct 25, 2010

I made a mistake and during the setup created a seperate swap partition and noticed that using this on a usbstick hindered performance. So I want to simply add the swap to the same partition as root and the others. I used this ubuntu help file. Will this suffice:

[URL]

View 16 Replies View Related

Ubuntu Servers :: Apache2 Log Files Not Rotating?

Mar 29, 2010

I can't get my apache2 log files to rotate on an Ubuntu 8.04 64-bit server install.

Does anybody know of logrotate creates an error log somewhere by default?

Here's my /etc/logrotate.d/apache2 file if someone has any insight if I am doing something wrong.

/var/log/apache2/*.log /var/log/apache2/portal/*.log {
weekly
missingok
rotate 52
nocompress

[Code].....

View 9 Replies View Related

Ubuntu Servers :: Apache2 - Cannot Parse PHP Files

May 5, 2010

I have apache2 installed along with php5 and mysql5.0. I have installed them by themselves along with just installing the full LAMP install through terminal. My problem is that I cannot parse php files, it will just download them instead. I did change my apache server to nick/projects (nick is my username). If I navigate to localhost/index.html it works fine but will not parse the php files I have put there. I also have rails working fine in that folder too using apache2.

View 7 Replies View Related

Ubuntu :: Does Apache2 Have A Way To Automatically Delete Temp Files

May 1, 2010

I have a PHP script running on my website that can generate temporary images, but if I clean them up right away, then the browser doesn't have time to render them.Is there some way to make Apache2 delete them after 5 minutes or so?

View 3 Replies View Related

Ubuntu :: Does Apache2 Have A Way To Automatically Delete Temp Files?

Aug 14, 2010

I have a PHP script running on my website that can generate temporary images, but if I clean them up right away, then the browser doesn't have time to render them. Is there some way to make Apache2 delete them after 5 minutes or so?

View 1 Replies View Related

Ubuntu Servers :: Apache2 Cannot Access Image Files

Nov 12, 2010

I have installed LAMP server, I cant access any image files though Apache2.

All other, text document are showing, html, and php etc.

View 1 Replies View Related

General :: Recreating A Column Byte-based File?

Nov 5, 2009

I have a file that stores employee login IDs, names, types, and permissions. Our software reads the information based on byte-columns, so it reads a column as any ASCII character (spaces, letters, numbers, punctuation, etc.). I want to create a web-interface for adding and removing users, and storing the data in a MySQL database. However, if I am creating the files from the MySQL output, I need a way to write to specific column locations in the file ...

User ID: Columns 1-4
User Name: Columns 6-30
Type: 32-40
Permissions: 42-45

I want to use a scripting language, preferably C-Shell, to call MySQL for the data and write the data to the correct columns of the file. I wrote a script that takes the data from the file, and dumps it into the MySQL table, so maybe I can pad the remaining space in the table column to fill with spaces ...

View 12 Replies View Related

OpenSUSE Network :: Apache2 Not Processing Php Files

May 6, 2011

I'm running apache2 and I installed php5 with yast. httpd2 -M states that php5 is loaded. /etc/apache2/conf.d/php5.conf is being included in httpd.conf and it contains:

Code:
<IfModule mod_php5.c>
AddHandler application/x-php .php
AddHandler application/x-httpd-php .php4
AddHandler application/x-httpd-php .php5

[Code]....

The first line was added by me since that's what mime.types actually contains.

php.ini is in /etc/php5/apache2 and since I was not sure apache/php was finding it I added a PHPIniDir "directive" into httpd.conf. I have not changed it.

Test file is the typical /srv/www/htdocs/info.php with <?php infophp(); ?>

Normal index.htm is working fine. php -a is working fine.

I spent a long afternoon around this configuration and I looked in plenty of pages for solutions. I only do occasional system administration so I might have easily overlooked something trivial, but I run out of ideas.

There is a thread in this web site with a similar problem but no solution:

Php5 not recognized in SUSE 10.2 Apache2

What could be missing/wrong if php5 is loaded and the addhandler is defined? How can I further test?

View 9 Replies View Related

Debian :: Apache2 Doesn't Start With Log Files Save To RAM?

Dec 12, 2010

I have apache2 running under debian squeeze on a Seagate DockStar of a USB flash drive. To reduce the wear on the USB stick, I want to move all log files to RAM. What I did was to update create an entry in /etc/fstab to mount /var/log to tmpfs.Things seems to work except apache2. y start apache2, it complains aboutStarting web server:apache2(2)No such file or directory: apache2: could not open error log file /var/log/apache2/error.log.If I create the file, apache2 starts fine. Is there a step or two I am missing so I don't need to do this every time I reboot

View 1 Replies View Related

Software :: After Install LAMP The Apache2 Can't Access Php Files

Feb 24, 2011

After install LAMP, apache2 can't access php files; I can see the info from the phpinfo(); but when I create a php file in /var/www and try to access the file (via web browser), the page is blank. If I change the extension to html I can acces without problems. I checked everythig but I can't understand why any web browser access a blank page. Nothing appears when I'm cheking the error.log file (apache2)

View 12 Replies View Related

SUSE :: Apache2 Reload Error Cannot Load /usr/lib64/apache2/mod_dav_svn.so Into Server?

Nov 19, 2010

I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server

View 9 Replies View Related

Debian :: Apache2 Start Error Starting Web Server: Apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost?

Dec 9, 2009

I am getting this error

Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address 68.178.232.100:80
no listening sockets available, shutting down Unable to open logs failed!

also what is 68.178.232.100

View 1 Replies View Related

Server :: Apache2 And Frontpage Support - Can't Find The Correct Files?

Jun 28, 2011

i want to ask for a guide how to install frontpage extensions on apache2 , i searched a lot but i can't collect the pieces , in the most cases i can't find the correct files..

View 5 Replies View Related

Ubuntu :: All Files Gone After Trying To Reinstall Gnome Panel?

Jun 22, 2010

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.

View 9 Replies View Related







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