Mystified! Some PHP files parsed and not others!
Posted by: markowe (---.dynamic.sbb.co.yu)
Date: March 27, 2008 04:04PM

Weird... I can run phpmyadmin for example, and it works fine, but Apache doesn't seem to parse anything in my wamp/www directory - even though I had it working before (I had to reinstall because of other reasons). It just serves up an unparsed PHP file. It's pretty much a fresh install of wampserver 2.0 - but something MUST be causing problems. I mean, phpmyadmin is written in PHP, right?! So why is it ignoring my php files (which are from an existing Joomla installation which works, though I have tried a simple phpinfo file too)

I have been through ALL the solutions that are on this forum and others:

- short tags used - NOPE
- php5 module loading in Apache - YEP (why would phpmyadmin and sqlitemanager work otherwise?)
- Addhandler added for php (actually, is there by default)

This must be some kind of configuration thing - maybe it's serving php properly from some directories but not others?! Or maybe it's a Windows, or browser problem?

Many thanks in advance for your help - I don't have much hair left!

markowe



Edited 1 time(s). Last edit at 03/28/2008 08:45AM by markowe.

Options: ReplyQuote
Re: Mystified! Some PHP files parsed and not others!
Posted by: markowe (---.dynamic.sbb.rs)
Date: March 29, 2008 04:10PM

Bah... Just to let you know, after much headbanging it turned out that this was an .htaccess issue - my production .htaccess (which works on the live site) has no intention of working on the local site. I certainly couldn't find anything that was overriding php parsing in it either. Any ideas on that one? Don't know why my .htaccess wouldn't work locally anyway - it is using mod_rewrite - I have never had much luck using that locally.

Options: ReplyQuote
Re: Mystified! Some PHP files parsed and not others!
Posted by: yfastud (Moderator)
Date: March 29, 2008 11:50PM

Quote

it is using mod_rewrite
Did you enable mod_rewrite yet? BTW, most host use *nix and of course your settings would not work on windows :-(

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Mystified! Some PHP files parsed and not others!
Posted by: markowe (---.dynamic.sbb.rs)
Date: March 30, 2008 06:23PM

Hi, yes, mod_rewrite is active.

Oh.. duh.. I don't know much about 'nix, but it never occurred to me that they wouldn't be compatible - I mean, Apache is Apache, right..?

I really wanted to get a Joomla installation working locally which would be identical to the live version, but I can see that ain't gonna happen - I had to turn off the SEF module for a start...

Don't suppose anyone has a solution for this..?

Options: ReplyQuote
Re: Mystified! Some PHP files parsed and not others!
Posted by: yfastud (Moderator)
Date: March 30, 2008 07:32PM

Joomla??? You don't need mod-rewrite or htaccess for it; just follow my simple Setup Joomla guide in Setup Applications guide on my personal website ;-)

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote
Re: Mystified! Some PHP files parsed and not others!
Posted by: xhoud01 (---.126.48.77.kve.cz)
Date: April 01, 2008 03:50PM

markowe Wrote:
-------------------------------------------------------
> Weird... I can run phpmyadmin for example, and it
> works fine, but Apache doesn't seem to parse
> anything in my wamp/www directory - even though I
> had it working before (I had to reinstall because
> of other reasons). It just serves up an unparsed
> PHP file. It's pretty much a fresh install of
> wampserver 2.0 - but something MUST be causing
> problems. I mean, phpmyadmin is written in PHP,
> right?! So why is it ignoring my php files (which
> are from an existing Joomla installation which
> works, though I have tried a simple phpinfo file
> too)
>
> I have been through ALL the solutions that are on
> this forum and others:
>
> - short tags used - NOPE
> - php5 module loading in Apache - YEP (why would
> phpmyadmin and sqlitemanager work otherwise?)
> - Addhandler added for php (actually, is there by
> default)
>
> This must be some kind of configuration thing -
> maybe it's serving php properly from some
> directories but not others?! Or maybe it's a
> Windows, or browser problem?
>
> Many thanks in advance for your help - I don't
> have much hair left!
>
> markowe


HI I HAVE EXACTLY THE SAME PROBLEM AND HAVE NO IDEA WHAT IS WRONG. I WAS TRYING TO INSTALL MY PHP APACHE AND MYSQL INDEPENDENTLY ON MY VISTA PC. UNFORTUNATELY I WAS NOT ABLE TO RUN ANY OF MY PHP FILES. SO I DECIDED TO DOWNLOAD WAMPSERVER.

I CAN ACCES localhost/index.php (main page) also mysqladmin etc. Unfortunately I am not able to parse any other files located in the same directory or in my project category.

I am trying to solve this almost 2 days and I am done on the floor and no power left.



Edited 1 time(s). Last edit at 04/01/2008 03:56PM by xhoud01.

Options: ReplyQuote
Re: Mystified! Some PHP files parsed and not others!
Posted by: xhoud01 (---.126.48.77.kve.cz)
Date: April 01, 2008 04:07PM

PROBLEM SOLVED. I USED EASYPHP BEFORE BUT I FORGOT TO DELETE ONE FOLDER.

ONCE I DELETED IT ... WAMP WAS WORKING FINE

Options: ReplyQuote
Re: Mystified! Some PHP files parsed and not others!
Posted by: markowe (---.telenor.co.yu)
Date: April 02, 2008 09:31AM

Ah, yes, that can mess things up. I also cleared the registry of all kinds of references to Apache services etc. as it seems a previous installation hadn't removed them properly.

Quote

Joomla??? You don't need mod-rewrite or htaccess for it;

I do, because my live site has SEF links enabled using Artio - it's got quite complex and I didn't really want to revert to non-SEF links because that would be sure to break some links. But I had to just give up in the end because I couldn't reproduce the same environment locally so mod_rewrite would work properly with Artio...

Options: ReplyQuote


Sorry, only registered users may post in this forum.