Fedora Linux Support Community & Resources Center
  #1  
Old 23rd November 2009, 06:24 PM
fth1963 Offline
Registered User
 
Join Date: Mar 2006
Location: Denmark
Age: 50
Posts: 5
linuxfedorafirefox
Question F10>F12 upgrade. PHP pages does'nt work now

I just completed upgrading from F10 to F12. I had a few problems but now everything works just perfect, except my Apache server does'nt execute the PHP pages on the web-server. The php-pages use to work just fine.
I have Apache/2.2.13 (Unix), with PHP 5.3.0 (cli) (built: Nov 17 2009 19:19:17)

I tried to remove alle PHP rpm-packages and install them again with no luck.
I have checked the httpd.conf file and it include the following lines:
AddType application/x-httpd-php .php5
AddType application/x-httpd-php .php
AddHandler application/x-httpd-php .php
and
LoadModule php5_module modules/libphp5.so
I get a msg. from the last line, that the php5 module is already loaded.

I have restarted httpd-service.

I have the following php modules installed:
php-devel-5.3.0-7.fc12.i686
php-cli-5.3.0-7.fc12.i686
php-common-5.3.0-7.fc12.i686
php-5.3.0-7.fc12.i686
php-pdo-5.3.0-7.fc12.i686
php-mysql-5.3.0-7.fc12.i686


Any clues to what can be wrong/missing?

Edit: Sorry folks. Its solved
Seems that in the new versions of PHP/Apache with F12 you need to write
<?php .....?>
and not just
<? ... ?>
Reply With Quote
  #2  
Old 1st December 2009, 06:06 PM
AlexDudko Offline
Registered User
 
Join Date: Mar 2007
Location: Ukraine
Posts: 381
linuxubuntufirefox
Why not just editing php.ini and enabling short tags?
Reply With Quote
  #3  
Old 1st December 2009, 10:57 PM
CD-RW's Avatar
CD-RW Offline
Registered User
 
Join Date: Nov 2006
Posts: 555
linuxfedorafirefox
Quote:
Originally Posted by fth1963 View Post
Edit: Sorry folks. Its solved
Seems that in the new versions of PHP/Apache with F12 you need to write
<?php .....?>
and not just
<? ... ?>
That's been the recommended way of switching to php mode for a long time. The other modes can be confused with other language parsers

http://stackoverflow.com/questions/2...eptable-to-use

http://webforumz.com/blogs/alexgeek/...php-short-133/
Reply With Quote
  #4  
Old 12th January 2010, 06:29 AM
markdk Offline
Registered User
 
Join Date: Jan 2009
Location: New Zealand
Posts: 57
windows_xp_2003firefox
Thanks, solved my apache/php issue also

Thank you for this solution.
I enabled the short tags option and my php pages were being served correctly again so that is definately my problem (although my config had always had short tags off, guess it was ignored in the fc10 rpm versions).

Turned short tags off again and started hunting.
Eventually found a few stray <? lines embedded in some include files I hadn't touched in years but were referenced by most of my pages.
So thanks to this solution being posted all fixed.
Reply With Quote
Reply

Tags
php apache httpd f12

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IP address when dhcpd does'nt answer Bussenot Servers & Networking 1 22nd November 2008 06:51 PM
Firefox and Privoxy: some pages work incorrectly s-strong Using Fedora 0 15th October 2006 09:02 PM
Keyboard does'nt work FC4 (anakonda)!!! jacek EOL (End Of Life) Versions 2 12th December 2005 07:13 PM
web pages need internet explorer...any work around? liquidbw Using Fedora 8 29th October 2005 01:51 AM
YUM and FC3 still does'nt agree svarreby Using Fedora 4 9th November 2004 05:11 PM


Current GMT-time: 14:33 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat