Page 1 of 1

issue opening image from website

PostPosted: 05. July 2013 04:17
by Jaykappy
I can upload the image to my website folders
I can see the image in the mysql table
I can open the image via explorer

But when I try and open it via chrome i get this error below....

THe url adn folder and image name are correct in the url...
looks like there is no access to the image via xampp...

http://localhost/VisualUpload/uploads/30/42.jpg

Any thoughts?

Thanks



Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.

Error 500

localhost
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7

Re: issue opening image from website

PostPosted: 05. July 2013 04:20
by Jaykappy
Maybe because I locked the xampp folders?
is there a way to take the password off for testing?


Subject
Status

These XAMPP pages are no longer accessible by network for everyone SECURE
The MySQL admin user root has no longer no password SECURE
PhpMyAdmin password login is enabled. SECURE
A FTP server is not running or is blocked by a firewall! UNKNOWN

Re: issue opening image from website

PostPosted: 05. July 2013 04:25
by Jaykappy
i dug into the htaccess file on and see this....I assume this is where I might be blocking the viewing of the image?

C:\xampp\security\htdocs

AuthName "xampp user"
AuthType Basic
AuthUserFile "C:\xampp\security\xampp.users"
require valid-user

Re: issue opening image from website

PostPosted: 05. July 2013 04:29
by Jaykappy
think i found it.....I had the below in the htaccess file in the folder that houses the images....where they were uploaded....I removed it and I was able to see and open the image....what is the below doing?

In the htaccess file...once removed it worked....

Option -Indexes

Re: issue opening image from website

PostPosted: 05. July 2013 04:39
by Jaykappy
This was not an issue in IIS.....seems to be only an apache issue....how to fix?

Re: issue opening image from website

PostPosted: 05. July 2013 11:23
by JJ_Tagy
That command is not a bug. Apache uses it to allow (or in this case deny) access to a folder by navigation alone. Your site must link a file from it.

http://wiki.apache.org/httpd/DirectoryListings

As for the XAMPP folder being locked, that has nothing to do with this unless you are referencing a file inside. We don't see your scripts or htaccess so we can only guess.

Re: issue opening image from website

PostPosted: 05. July 2013 12:50
by Altrea
An "HTTP Error 500" will be logged somewhere.
We can only guess what is going on without the information of your
  • \xampp\apache\logs\error.log
  • \xampp\php\logs\php_error_log