I am getting this on my error log

 Cannot serve directory /home/ro265852/public_html/uploads/photos/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.shtml,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html) found, and server-generated directory index forbidden by Options directive

does anyone tell me what it means?

I'm assuming this an apache error? even though you've posted in the javascript category, it doesnt appear to be a client side error. my guess (because im not a php or apache person) based on the error message is that there was no default document (since you didnt specficy one in the URL) found in that directory. Are you trying to browse/display the contents of the directory with the browser?

with regards a URL and web server, if you type www.domain.com/photos and you do not specify a document such as index.html, default.htm, the web server is going to look at the configuration and try to locate an appropriate file to load.

Hi,

try this first.. create a file index.html and save to photos/

If it does not do the trick, you can define directoryIndex directive in .htaccess file.

create .htaccess file and then paste codes below

DirectoryIndex index.html index.php index.cgi index.inc index.tpl index.htm

If you are serving your site on VPS, you can define directoryIndex directive when you create your virtualhost.

<VirtualHost *:80>
    ServerName *.yoursite.com
    DocumentRoot "putyour stuff here as directed by your host"
    DirectoryIndex index.html index.htm index.php index.tpl index.cgi
</VirtualHost>

Lastly, you can also do this in your apache httpd.conf file

<IfModule dir_module>
DirectoryIndex index.html index.shtml index.html.var index.htm index.php3 index.php index.pl index.cgi
</IfModule>

the above will need the dir_module enable

change this (httpd.conf)

#LoadModule dir_module modules/mod_dir.so

to this

LoadModule dir_module modules/mod_dir.so

the thing is that it works locally (wampserver) perfectly these errors appear only when the site is online.

this is the .htaccess file

RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ profile.php?username=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ profile.php?username=$1

RewriteRule ^status/([0-9]+)$ status.php?msgID=$1
RewriteRule ^status/([0-9]+)/$ status.php?msgID=$1

RewriteRule ^roves/([0-9]+)$ roves.php?msgID=$1
RewriteRule ^roves/([0-9]+)/$ roves.php?msgID=$1

RewriteRule ^flow/([0-9]+)$ flow.php?grooveID=$1
RewriteRule ^flow/([0-9]+)/$ flow.php?grooveID=$1

RewriteRule ^messages/([a-zA-Z0-9_-]+)$ messages.php?message_username=$1
RewriteRule ^messages/([a-zA-Z0-9_-]+)/$ messages.php?message_username=$1

RewriteRule ^friends/([a-zA-Z0-9_-]+)$ friends.php?username=$1
RewriteRule ^friends/([a-zA-Z0-9_-]+)/$ friends.php?username=$1

RewriteRule ^friends/([a-zA-Z0-9_-]+)/([0-9]+)$ friends.php?username=$1&page=$2
RewriteRule ^friends/([a-zA-Z0-9_-]+)/([0-9]+)/$ friends.php?username=$1&page=$2

RewriteRule ^timeline/([a-zA-Z0-9_-]+)$ timeline.php?username=$1
RewriteRule ^timeline/([a-zA-Z0-9_-]+)/$ timeline.php?username=$1

and this is my db file the one that connects with the database. Here i call all the paths for the photos

define('DB_SERVER', 'localhost');
define('DB_USERNAME', 'someUSER');
define('DB_PASSWORD', 'somePASS');
define('DB_DATABASE', 'someDB');
$connection = mysql_connect(DB_SERVER, DB_USERNAME, DB_PASSWORD) or die(mysql_error());
mysql_set_charset('utf8',$connection);
$database = mysql_select_db(DB_DATABASE) or die(mysql_error());
//mysql_query ("set character_set='utf8'");

$networkpath = "uploads/head-networks-images/";
$subnetworkpath = "uploads/subnetworks-images/"; 
$path = "uploads/photos/";
$audiopath = "uploads/audios/images/";
$projectpath = "uploads/projects/images/";
$groovepath = "uploads/grooves/";
$textpath = "uploads/texts/images/";
$videopath = "uploads/videos/images/";
$audiopathaudio = "uploads/audios/";
$presspathaudio = "uploads/pressaudios/";
$presspathphoto = "uploads/pressphotos/";
$profile_path="user_profile_uploads/";

$perpage=10; // Updates perpage
$base_url='http://www.rovespier.com/';
$gravatar=0; // 0 false 1 true gravatar image
$rowsPerPage=10; //friends list