LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-04-2014, 10:00 AM   #1
frsechet
Member
 
Registered: May 2013
Posts: 30

Rep: Reputation: Disabled
Apache problem on Debian


Hi,

I had to reinstall a server (Debian 6) after an attack last Friday. I had an exact backup of everything so no harm done. BUT.
I reinstalled everything as it was, but I get errors I didn't use to get - especially .htaccess/apache2 related errors. I can't figure it out really, because everything is setup like it was (working) before. This server was hosting websites, and only those with a .htaccess are broken, for example this one, www.festivalbret.com (wordpress).

The error I get in the apache log is
[Tue Feb 04 16:50:54 2014] [error] [client 5.39.219.25] PHP Warning: include_once(/home/salque/albret/wp-content/plugins/capsman/framework/loader.php): failed to open stream: No such file or directory in /home/salque/albret/wp-content/plugins/capsman/capsman.php on line 68

I'm guessing this has to do with mod_rewrite somehow. It is enabled (when I run a2enmod rewrite, it says "Module rewrite already enabled", and of course I restarted Apache). And this exact same install of this exact same website used to run seamlessly before. So something has changed in the Apache config and I don't know where to look.

Please help? :-D
Thanks!
François
 
Old 02-04-2014, 10:55 AM   #2
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 546

Rep: Reputation: 58
It looks more like file:

Code:
/home/salque/albret/wp-content/plugins/capsman/framework/loader.php
doesn't exists and it's required by:

Code:
/home/salque/albret/wp-content/plugins/capsman/capsman.php
 
Old 02-04-2014, 11:04 AM   #3
frsechet
Member
 
Registered: May 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
Yes, I know that this file doesn't exist there. The problem is not that this file doesn't exist, the problem is where "capsman.php" tries to locate this file. This file does exist, somewhere else, but since I reinstalled the server, I get huge problems with php scripts trying to find stuff where it isn't.

As I said, that website worked perfectly, in the same state that it is now, on the same server, with the same Debian version, before I had to reinstall this weekend. And more importantly, I have the same (type of) problem with all the websites that I'm hosting on that server that have a .htaccess file in it. It's not just one of the websites (this one is just an example) - it's all of them, maybe 12 or 15 of them, that used to work seamlessly before I reinstalled, and don't anymore. So it's not a problem with a specific file on a specific plugin of a specific install of wordpress for example, but it's a problem with my apache configuration. I just don't know what is the issue.
 
Old 02-06-2014, 10:33 AM   #4
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 546

Rep: Reputation: 58
You need to make sure that capsman.php is search for loader.php in the right place. Rewrite rules or mod_rewrite don't have anything to do with this, it's more internal (or at least it should be).

Can you write here how line 68 from capsman.php looks like? and where loader.php is really located?
 
Old 02-06-2014, 10:38 AM   #5
frsechet
Member
 
Registered: May 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
Actually, the answer was much simpler than that: I was transferring the files from the local installation (that worked) to the remote server using wget instead of rsync. And, as it appears, wget "forgets" many files in the process. So, although it worked locally and I thought I had the same files on the distant server, I didn't. Hence the file it couldn't find - since I had the same sort of problem with a dozen of websites, I thought it was a server configuration problem, not a file transfer problem - not on all of the websites on the same time!

Case solved... thanks for your help! :-)
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
debian 5 Apache mod_security - problem with installation dlugasx Linux - Server 1 11-04-2009 06:50 PM
Apache 1.3 + apxs + debian Sarge = problem Skaan Linux - Newbie 1 05-26-2005 03:43 AM
Apache problem on Debian 3.0 mahartman Linux - Newbie 1 09-28-2003 09:11 AM
Apache / PHP / Mysql config problem - debian bandit Linux - Software 14 09-03-2003 09:04 AM
Apache 2 with Debian problem Shark Linux - Software 1 11-11-2002 03:06 PM


All times are GMT -5. The time now is 02:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration