Page 1 of 1

PHP files behave weird

Posted: Tue Sep 21, 2010 11:53 am
by raulbolanos
Hi guys,

I just have installed(virtual) the Enterprese Server version of SuSe 11 (i586)

I just need a few things to work on my project and they are:

Apache2
PHP5
MySQL
and Zend Optimizer up to 3.0 version


I have installed this components from YaST and downloaded Zend from the official URL.

I want to run a software, which has been developed in php. The software works fine under Ubuntu and now, I need to migrate to SuSE.

I just tried to open the website and it should display an interface to configure the DataBase and this is not shown, instead I see code snippets, I believe it's not showing the entire code but some segments of it, not even classes but it does the generated code.

I believe PHP5 may be corrupted somehow.

What could be?

Thanks for your time.

Re: PHP files behave weird

Posted: Tue Sep 21, 2010 1:39 pm
by ell0bo
this is more system admin stuff... however...

Usually when downloading packages, you need to download one that will tie the two together. Check in the apache's .conf file (httpd.conf off the top of my head) for anything that has to do with php. add module, registering types, that kind of thing.

you can run a sudo find / -name httpd.conf to location the conf file.

If it's not there... then you're really going to have fun. I'm not sure what the default settings are, I usually build my lamp stack from scratch, but you can run a grep of the apache directory looking for anything that references php. If you find nothing, odds are you need the apache-php5 module installed (dunno the package for your system).