Hi, I’m new to OpenSuse, coming over from Fedora 8, and I must say it looks and feels like a great OS. However, I have twice now done a clean install of OpenSUSE 11 and then attempted to install apache2/PHP/mySQL (LAMP, via YAST > Patterns > Web and LAMP server).
The install appears to go well, (YAST is great) and apache2 service starts ok, however, I can’t get it to parse a php page. I’ve installed apache/php4 several times previously and managed to get is all running okay, but this apache2/PHP5 has be baffled.
I’ve altered the index.html file that was installed to:
| ken_yap;1846840 Wrote:
|> Try removing the space between <? and php.
| That should fix the problem.
| The full opening tag for PHP scripts is <?php (or <? for short).
| So, the PHP_INFO script should look like the following…
Thanks for that. Sometimes its whats right in front of you that you can’t see!
Note: Using shortened php tag (<?) does not work, only <?php. I presume this must be a php5 requirement. I’ve only ever used p4p4/apache, now have php5/apache2.
The shortened tags being off is the default for PHP currently, yes…
shouldn’t be used anyway.
| Thanks for that. Sometimes its whats right in front of you that you
| can’t see!
| Note: Using shortened php tag (<?) does not work, only <?php. I presume
| this must be a php5 requirement. I’ve only ever used p4p4/apache, now
| have php5/apache2.
| Cheers guys.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
Im new to linux, I’ve installed apache2,php5 and mysql using yast. Im trying to run my first php script “hello world” but when I tried to open it by clicking, a window asking for open with… comes out. When I opened it using firefox a blank output came out. Please help!