Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Apache not working properly - Accidentally deleted /var/www

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
nunogt
Tux's lil' helper
Tux's lil' helper
Posts: 134
Joined: Wed Dec 08, 2004 7:45 pm
Location: Lisbon, Portugal

Apache not working properly - Accidentally deleted /var/www

  • Quote

Post by nunogt » Sun Sep 25, 2005 8:22 pm

I accidentally deleted the folder /var/www and all its subfolders while testing apache2 index page. I re-emerged it hoping it would restore the missing subfolders but it doesn't. So now I have no htdocs folder and other folders apache usually needs, like the cgi-bin and the subfolders which containg images and file icons.
How do I restore apache to its default configuration and folder structure?

Thanks in advance :)
Top
HydroSan
l33t
l33t
User avatar
Posts: 764
Joined: Thu Mar 04, 2004 5:43 pm
Location: The Kremlin (aka Canada)
Contact:
Contact HydroSan
Website

  • Quote

Post by HydroSan » Sun Sep 25, 2005 8:30 pm

Try this:

Code: Select all

emerge -C gentoo-webroot (forgot the actual name of the package)
rm -r /var/www
mkdir /var/www
chown apache:apache /var/www
emerge gentoo-webroot
/etc/init.d/apache2 stop && /etc/init.d/apache2 start
See if that works.
I was a Gangster for Capitalism, by Major General Smedley Butler.

Server status: Currently down, being replaced with fresh install - 20% completed.
Top
nunogt
Tux's lil' helper
Tux's lil' helper
Posts: 134
Joined: Wed Dec 08, 2004 7:45 pm
Location: Lisbon, Portugal

  • Quote

Post by nunogt » Sun Sep 25, 2005 10:57 pm

HydroSan wrote:See if that works.
Excellent, worked like a charm. It restored my missing folders. Thanks a lot :)

By the way, the package name is "gentoo-webroot-default"
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic