Jump to content

php shows directory and source code


jkewlo

Recommended Posts

hello my name is johnny

 

i am not new to php but new to installing it

i have installed lastest stuff out

 

apache, php, mysql, even wamp

 

well of course i have installed it.

 

but when i goto localhost/ it shows my folders i have which is

 

Index of /

 

* Thumbs.db

* up/

* wow/

 

now if i goto up/

it shows all my files

Index of /up

 

* Parent Directory

* Thumbs.db

* _notes/

* admin.php

* admin/

* adminprocess.php

* ban.psd

* banner.png

* calander.php

* chat.php

* chat/

* check.php

* config.php

* dir.php

* download.php

* forgotpass.php

* getChat.php

* imageupload.php

* include/

* index.php

* leavecomment.php

* login.php

* logout.php

* member/

* news.php

* newsprocess.php

* office/

* process.php

* processFiles.php

* processcomment.php

* profile.php

* reg.php

* reg1.php

* reg2.php

* signup.php

* tom/

* upload.php

* uploadForm1.php

* uploadForm2.php

* useredit.php

* userinfo.php

 

etc...

 

now when i goto localhost/up/index.php it shows the source code of the .php

 

how do i correct this i have moved the .dll to system32 folder and the .ini to windows folder

please it would be great if you could help me get this installed thanks a bunch!

 

~Johnny

Link to comment
https://forums.phpfreaks.com/topic/50894-php-shows-directory-and-source-code/
Share on other sites

unfortunately I cannot be of much help here, but the php is not being parsed at the server level. Anytime you see the actual source code on screen it means that the PHP interpreter is not being called to parse the source.

 

I did not have a *lot* of luck installing PHP on a windows system, but I do remember that you need to add a new environment variable pointing to the php.exe file. I believe that this is where I had the issues before. I got it all jiving together a couple times, but I ended up saying f*ck it and I installed XAMPP. I am now trying my hand at managing a *real* LAMP server on UBUNTU Linux 6.01.

 

I hope this helps some

 

Nate

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.