Recent Topics

1 Sep 17, 2007 05:28    

My b2evolution Version: Not Entered

Hi, I'm sorry for creating a new post but all my searches didn't help my problem.
OK, so I have been using my website for quite a while. Updated it not long ago at a net cafe. Now for some reason whenever I try to access
www.danandjadles.com/admin.php it gives me

Not Found
The requested URL /blog/login.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.37 Server at www.danandjadles.com Port 80

Ok, so I searched the forums to try and see. Looked at permissions, they are set at 644 as one thread recommended.
I went to - http://manual.b2evolution.net/Debugging#Permissions and tried to figure out what

If you have file permission problems, try the following script. Upload it into your "blogs" directory, where "media" is and call it from a browser. It will display a recursive list of the subdirectories in "media" and display info about the permissions that apply to each directory (including and especially user/group permissions).

meant.... do i save this as browser? What format do I upload it as... I feel stupid for asking but that just doesn't make sence to me.

also looking at my cpanelx showing all my /blog files are there... so i don't know why it isn't showing up.

Another thread said they fixed their problem by disabling the modsecurity on their site. All well and good but where is the modsecurity off button??

If anyone can help I would be forever in your debt. I've spent the morning frustrated outta my brain trying to figure it out.

Thanks in advance,
Jade-Elise

2 Sep 17, 2007 12:29

Not Found
The requested URL /blog/login.php was not found on this server.

Well, that's not where the login form should be. It normally is in /htsrv/login.php, so it would seem that your b2evo has for some reason "forgotten" where to look for the htsrv files.

Check in /conf/_advanced.php around line 400:

/**
 * Location of the HTml SeRVices folder.
 *
 * Note: This folder NEEDS to by accessible through HTTP.
 *
 * @global string $htsrv_subdir
 */
$htsrv_subdir = 'htsrv/';                // Subdirectory relative to base

And see if the variable assignmet is correct, and then see if the files are actually there and are readable.

A second thing you should check is the setting of $base_url in /conf/_basic_config.php. Some people have reported that upgrading via Fantastico appends a slash (/) to this URL, and this causes several problems. That definition is araound line 90 and in your case it should say:

* @global string $baseurl
 */
$baseurl = 'http://www.danandjadles.com/';

Check those two things, maybe the second first and the let us know what you found out.

3 Sep 18, 2007 01:31

/**
* Location of the HTml SeRVices folder.
*
* Note: This folder NEEDS to by accessible through HTTP.
*
* @global string $htsrv_subdir
*/
$htsrv_subdir = 'htsrv/'; // Subdirectory relative to base
$htsrv_path = $basepath.$htsrv_subdir; // You should not need to change this
$htsrv_url = $baseurl.$htsrv_subdir; // You should not need to change this

* @global string $baseurl
*/
$baseurl = 'http://danandjadles.com/blog//';

Also... I tried to look in the htsrv folder and it says,
Unable to change directory to /home/danandja/public_html/blog/htsrv! You do not seem to have access permissions! (System Error: Permission denied)
So tried changing the permissions,
/home/danandja/public_html/blog/htsrv chmod failed: Operation not permitted in /home/danandja/public_html/blog

Would this be the reason for the site not logging on?

Thanks :)

5 Sep 22, 2007 02:23

Delete the second slash (/) from $baseurl so it reads:

* @global string $baseurl
*/
$baseurl = 'http://danandjadles.com/blog/';


This is what John replied (his second option).

You must have missed the clue: Fantastico often adds a second slash, so there are two slashes and there should be only one.

Good luck

6 Sep 22, 2007 03:52

Hey, thanks for the reply. Have changed to only have one slash. However when trying to access www.danandjadles.com/blog/admin.php

Warning: main(/home/danandja/public_html/blog/htsrv/login.php) [function.main]: failed to open stream: Permission denied in /home/danandja/public_html/blog/inc/_main.inc.php on line 615

Warning: main(/home/danandja/public_html/blog/htsrv/login.php) [function.main]: failed to open stream: Permission denied in /home/danandja/public_html/blog/inc/_main.inc.php on line 615

Fatal error: main() [function.require]: Failed opening required '/home/danandja/public_html/blog/htsrv/login.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/danandja/public_html/blog/inc/_main.inc.php on line 615

The permissions of _main.inc.php is 644

Any other suggestions??

7 Sep 22, 2007 04:20

Looks like the permission of the blogs/htsrv/ folder is not set correct (you mentioned this before). To set the permission, go to the site of your host and login to the cPanel or equivalent your host provides. In there check the files / folders and you will be able to change the permissions. The administration panel provided by your host should have a good help system to guide you through this proces.

Good luck

8 Sep 22, 2007 04:59

Hmmm it must be something i'll have to take up with cpanel as it says i don't have permission to change the permissions on the htsrv folder. I am unsure how it got to be like that. Is there someway somebody changed the permissions?

9 Sep 22, 2007 05:09

Have a look first before you start to wonder B).
Permissions are sometimes accidentally changed if your host moved the server or did some other upgrade. Also there is a nasty and very sophisticated virus around that sneaks into ftp uploads and changes permissions. But this virus should show up on your computer's virusscanner, so chances are slim you are infected.

Folder settings are usually 755 and file settings are 644.

Good luck

10 Sep 22, 2007 07:49

Yeah it couldn't be a virus, unless the net cafe had a virus (those things are pretty locked down)
Permissions atm are set to 000 and when trying to change to 644 tells me i can't. Tis frustrating :)

11 Sep 22, 2007 08:05

crazyjadles wrote:

Permissions atm are set to 000 and when trying to change to 644 tells me i can't.

If you have something with permissions set at 000 you arent going to be able to do anything. Nothing, nada, nilch.

Thats an issue for someone that has root access on that box -- aka your host.

12 Sep 22, 2007 08:09

cool thanks guys
i appreciate your guru-ness on this subject

13 Sep 22, 2007 08:12

no worries, send off an email to your host, give them the path(s) to whatever directory/files have those permissions, and ask them to reset them for you:

755 for directories, 644 for files.


Form is loading...