Find programmers and grapic design experts at ScriptLance.com
<? DEW-CODE.COM  
Dew-Code
Welcome, Guest
Please Login or Register.    Lost Password?
404 Not Found error was encountered (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: 404 Not Found error was encountered
#247
johngebw (User)
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
404 Not Found error was encountered 5 Months, 3 Weeks ago Karma: 0  
Hello, I just ran an auto install of DewNewPHPLinks version 2.0.1.0b SEF w/Thumbshots. All looked ok until I tried to go to the site. Gives me this error:
------------------------------------------------------------------
Not Found
The requested URL /linksmgr/directory/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

------------------------------------------------------------------
I took a look at the directory structure and could not locate the "Directory" folder.

Is there something I needed to do after the Auto Install?

Can somebody help?

Thanks

John
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#252
Dewed (User)
Administrator
Posts: 220
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:404 Not Found error was encountered 5 Months, 3 Weeks ago Karma: 7  
The FAQ should have an answer for you.

Keep in mind, there is no "directory" named directory. Its actually a file, a PHP script in fact. The directives in the included .htaccess file tells your web server to treat the "directory" file as a PHP script, despite the fact that it lacks the .php file extension.

Because the directives in the .htaccess file is not precisely what your webserver understands, you are getting a 500 or 404 error (usually its a 500 error, but people just assume its 404

)
 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#323
Spot (User)
Meow!
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Spot of Borg
Re:404 Not Found error was encountered 5 Months, 2 Weeks ago Karma: 0  
So how do you fix it?

Spot
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#324
Dewed (User)
Administrator
Posts: 220
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:404 Not Found error was encountered 5 Months, 1 Week ago Karma: 7  
From the relevent FAQ entry

QUOTE:


There is a .htaccess file needed in the same directory as the directory file. The .htaccess file is included, but some FTP programs/operating systems have issues with such filenames. The included text file, dothtaccess.txt covers the topic as well.

The contents of the .htaccess file should look like this

<Files directory>
ForceType application/x-httpd-php
#SetHandler application/x-httpd-php
#SetHandler application/x-httpd-php5
#ForceType x-httpd-php
</Files>


Depending on your version of Apache you may need to use a different syntax by toggling the commented lines in the .htacess file. (note you likely wont see the 3 newer variations in your .htacess file)

If you download/upload the file in order to edit it, be sure it is uploaded in ASCII mode.

If you have access to it, the directives within the .htaccess file can be put in your apache config file, normally /etc/httpd.conf then the .htacess file is not needed.

An httpd.conf entry might look like this...
<VirtualHost>
ServerName www.mysite.com
DocumentRoot /var/www/html/username
<Directory /var/www/html/username>
Allow from all
AllowOverride All
Order allow,deny
</Directory>
<Files directory>
ForceType application/x-httpd-php
</Files>
</VirtualHost>


 
Report to moderator   Logged Logged  
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
#325
Spot (User)
Meow!
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Spot of Borg
Re:404 Not Found error was encountered 5 Months, 1 Week ago Karma: 0  
That didn't work. I showed this thread to my tech-support and they tried it but said that: "the code files are getting
called from the folder called " directory " which does not exist."

Will there be a bug-fix in the next version?

Spot
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#326
Dewed (User)
Administrator
Posts: 220
graph
User Offline Click here to see the profile of this user
Dew-Code.com
Re:404 Not Found error was encountered 5 Months, 1 Week ago Karma: 7  
I suppose saying " find new host" doesn't help, but clearly your tech support person is not a systems administrator. If they were, they would likely be familiar with this method of executing a web script, where the file lacks the traditional file extension. Really.. everybody is doing it http://www.google.ca/search?hl=en&q=hot+dog&btnG=Google+Search&meta=

See? Google doesn't have a directory named "search" there, its a file, but their webserver has been configured to treat the "search" file as a script, the same as we're trying to do with the directory file.

Likely your webserver is running Apache, version is either 1.3, or 2.2.. possibly 2.0
Its just a simple matter of determining which version you use, and what syntax it wants in the .htaccess file. Or you could just do the caveman "hit it with a club" approach, try each of the syntaxes mentioned in the FAQ.

If this doesn't work ..

ForceType application/x-httpd-php
#SetHandler application/x-httpd-php
#SetHandler application/x-httpd-php5
#ForceType x-httpd-php

Try the next one by moving the commenting #

# ForceType application/x-httpd-php
SetHandler application/x-httpd-php
#SetHandler application/x-httpd-php5
#ForceType x-httpd-php

Still no go ??? Try the next variation.

#ForceType application/x-httpd-php
#SetHandler application/x-httpd-php
SetHandler application/x-httpd-php5
#ForceType x-httpd-php

and so on.

Perhaps your tech support person would find the following links informative..

Apache 2.2 http://httpd.apache.org/docs/2.2/mod/core.html#sethandler http://httpd.apache.org/docs/2.2/mod/core.html#forcetype

Apache 1.3 http://httpd.apache.org/docs/1.3/mod/mod_mime.html#forcetype http://httpd.apache.org/docs/1.3/mod/mod_mime.html#sethandler

Apache 2.0 is not widely used, but the syntax is pretty much the same as 2.2

Finally, I should probably point out, it is possible your webserver is configured to completely ignore the .htaccess file no matter what you put in it. Unfortunatly there are just way too many instant point and click web hosts who know nothing of the underlying technology. ... so no, to answer your question, there is no patch in the foreseeable future. If none of teh variations work, its because they have security overly tight on .htacess file.. and I'll bet ya a cup of coffee, they have no idea how to change it.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/06/10 19:08 By Dewed.
 
Nothing to it but to Dew it !
Dew-Code.com
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Newsflash

Sign up for PayPal and start accepting credit card payments instantly.
Copyright Dew-Code 2008