LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2010, 08:57 PM   #1
Helstedxd
LQ Newbie
 
Registered: Aug 2010
Posts: 21

Rep: Reputation: 0
Exclamation 404 Problem with rewrite_engine


Hi everyone

I am trying to install xmoovStream on my server.
when i open xshelper i says:
Code:
The Apache rewrite_engine module or other URL rewriting equivalent should be enabled for nice urls
so i googled around and found i could use the command:
Code:
a2enmod rewrite
, then i get "Module rewrite already enabled", then i googled som more and found out that i should edit the /etc/apache2/sites-available/default file from
Code:
...
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
...
To:
Code:
...
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
...
then i go to xshelper/ and now i get a error 404 error, but i can still access my main page, that dont uses .htaccess

how to fix this?

//Helstedxd
 
Old 10-15-2010, 11:52 PM   #2
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
This is always the most hated answer, begin by debugging /etc/hosts and /etc/sysconfig/network.
 
Old 10-16-2010, 05:07 AM   #3
Helstedxd
LQ Newbie
 
Registered: Aug 2010
Posts: 21

Original Poster
Rep: Reputation: 0
as you may know, this is the newbie forum, and i don't know how to debug them? :I
 
Old 10-16-2010, 05:14 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,890

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
You should post the .htaccess.
Also you might take a look at apache logs to see what page it's trying to retrieve and gives the 404 error.

Regards
 
Old 10-16-2010, 05:26 AM   #5
Helstedxd
LQ Newbie
 
Registered: Aug 2010
Posts: 21

Original Poster
Rep: Reputation: 0
nvm i found the error -.-' it was an error in rewritebase thanks anyway
 
Old 10-16-2010, 08:46 PM   #6
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
Quote:
Originally Posted by Helstedxd View Post
as you may know, this is the newbie forum, and i don't know how to debug them? :I
First you would want to setup an A record in DNS that is not going to be a website, such as myserver.mydomain.com. Never use www.mydomain.com or any web hosting sub domain as it will cause problems down the road. This should point to the primary (first) IP address mounted on the server.

Code:
myserver.mydomain.com. IN A 12.34.56.78
The setup /etc/hosts

Code:
127.0.0.1     localhost.localdomain     localhost
::1           localhost6.localdomain6   localhost6
12.34.56.78   myserver.mydomain.com     myserver
Once completed then reboot the server, this is one of the few events that Linux needs to be rebooted. Even if you do not have problems now and everything is working it is still a good idea to go through these steps. If will save you tons of headaches down the road.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bugzilla3 Error 404 Not Found problem qhhatman Linux - Newbie 8 09-13-2009 10:45 PM
404 not found? jabos Mandriva 6 06-21-2007 12:48 PM
404 page taken over? Keyser Sose Linux - Software 9 01-09-2005 01:26 PM
An Interesting and different 404 Asificare General 1 07-15-2003 10:29 PM
(404)error johncla Linux - Networking 1 03-25-2001 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration