Page 1 of 1

index.html working but index.php is not?

PostPosted: 16. January 2013 12:03
by KeepIt100
so the server is working mysql is working, but for some reason all my .php files are saved as notepad files and when I try and go to my site it wont read them as .php files but if I go to the site and use something like index.html it works fine but index.php no go? anyone know how to change my .php files back to the correct format? I tryed "open with" but don't know what program I should select to open them with. any help greatly appreciated, tried Google can't find anything.
I edited the file with notepad and somehow it turned them all into notepad files and .php files not working now

Re: index.html working but index.php is not?

PostPosted: 16. January 2013 17:12
by Altrea
PHP files can't be simple opend like html files, they need to be interpreted.
So instead of opening the files, you must request them by your browser.

Re: index.html working but index.php is not?

PostPosted: 17. January 2013 02:29
by KeepIt100
The files was working and viewable until I edited one of the files and saved and they all turned into notepad files now when I access the site they don't show up at all, if I access the site via index.html it shows "it works" if I access it by index.php it shows nothing and doesn't load, I can log into phpmyadmin fine as well

Re: index.html working but index.php is not?

PostPosted: 17. January 2013 03:30
by KeepIt100
http://ip/index.html works fine http://ip/index.php not working

Re: index.html working but index.php is not?

PostPosted: 17. January 2013 03:38
by KeepIt100
http://ip/wordpress/index.html is also accessible I created the .html to check but all my files in wordpress not reading?

Re: index.html working but index.php is not?

PostPosted: 17. January 2013 03:42
by KeepIt100
also my http://ip/xampp/ page working, wordpress is installed and everything but when I edited httpd-xampp.conf windows and saved it changed all my files to notepad and now wont show them when I access my wordpress folder

Re: index.html working but index.php is not?

PostPosted: 17. January 2013 06:15
by Altrea
Let me summarize:
  • phpmyadmin is working
  • The orange XAMPP administration page is running

Both of them are written in php, so: PHP is working perfectly.
Your file is not. So the issue must be something inside your file

KeepIt100 wrote:I edited httpd-xampp.conf windows and saved it changed all my files to notepad and now wont show them when I access my wordpress folder

Windows just changes the default program for files for quick opening, that has absolutely nothing to do with how Apache thinks to act with that file.

Re: index.html working but index.php is not?

PostPosted: 17. January 2013 06:39
by KeepIt100
but no php file is assessable, no matter if I make a test page or use one from wordpress

Re: index.html working but index.php is not?

PostPosted: 17. January 2013 06:41
by KeepIt100
only thing I edited in httpd-xampp.conf was allow all then saved, I reinstalled 2 times and tried everything again from scratch still no luck

Re: index.html working but index.php is not?

PostPosted: 17. January 2013 08:09
by hawkmaster
Hello
is it possible that your DirectoryIndex is wrong?

DirectoryIndex index.html

Re: index.html working but index.php is not?

PostPosted: 17. January 2013 08:35
by KeepIt100
no html working fine its .php files having the problem

Re: index.html working but index.php is not?

PostPosted: 17. January 2013 18:32
by Altrea
KeepIt100 wrote:but no php file is assessable, no matter if I make a test page or use one from wordpress

XAMPP Administration Panel and phpmyadmin are using .php files too.
Test it out yourself: http://localhost/xampp/index.php

Your problem is a third party issue (either from wordpress, rewriting, own files, etc). We can't provide for third party products, sorry.