Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,816 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,147 people online right now. Registration is fast and FREE... Join Now!




what does this mean?

 
Reply to this topicStart new topic

what does this mean?, just showing the files.

†Mash†
9 Aug, 2008 - 12:41 AM
Post #1

New D.I.C Head
*

Joined: 8 Aug, 2008
Posts: 12

I have created a subdomain off of my website... http://practice.clanxhhx.bliztek.com/

I have set the document root: home/clanxhhx/www/practice

In this document root, i created a php file. its called practice.php
inside, i have:
CODE
<html>
<head>
  <title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>


But, if you go here: http://practice.clanxhhx.bliztek.com/ it is only showing the files...its not showing the actual contents of the file =/

Can anyone help?
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: What Does This Mean?
9 Aug, 2008 - 01:02 AM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,480



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
In Apache's configuration there is a file that is refered to as index. Apache will look for this (or any other file set to) as the main document. If one isn't supplied, then the directory listing is shown. You should also disable the ability for others to browse your directory.

Try renaming your file to index.php, & we'll see what that does.
User is online!Profile CardPM
+Quote Post

†Mash†
RE: What Does This Mean?
9 Aug, 2008 - 11:47 AM
Post #3

New D.I.C Head
*

Joined: 8 Aug, 2008
Posts: 12

renaming which file??

Ah, nvm.. i renamed the practice.php to index.php.. now when i go here:
http://practice.clanxhhx.bliztek.com/

its working.

woops, 1 more thing.

How do I disable the ability to allow others to browse my directory?
User is offlineProfile CardPM
+Quote Post

Mommy
RE: What Does This Mean?
9 Aug, 2008 - 02:23 PM
Post #4

D.I.C Head
Group Icon

Joined: 4 Aug, 2008
Posts: 104



Thanked: 2 times
My Contributions
CHMOD'ing your directory.. this can be done with a ftp uploader.
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: What Does This Mean?
11 Aug, 2008 - 11:02 PM
Post #5

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,480



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
In your apache configuration file httpd.conf, you should change your directory permissions to the following :

CODE

Options [Indexes removed] FollowSymLinks Multiviews
AllowOverride None
Order deny,allow
Deny from all


& then restart apache.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 02:48PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month