openSUSE Forums > openSUSE Build Service (OBS) » Php5 not recognized in SUSE 10.2 Apache2

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-Mar-2009, 12:09
Puzzled Penguin
 
Join Date: Mar 2009
Location: Washington, DC
Posts: 3
cummingsmike hasn't been rated much yet
Question Php5 not recognized in SUSE 10.2 Apache2

When I access a test php file from a browser, it responds with unknown file type dialog box.

I've used Yast on my OpenSUSE 10.2 system to install php5. I've edited configuration files such as httpd.conf per discussion threads here. One thing that doesn't work is the directive 'LoadModule php5_module modules/libphp5.so' because the file libphp5.so isn't in the modules directory.

I'm ready to throw in the towel. I don't want to download and try to install php5 from scratch at this point, right?
Reply With Quote
  #2 (permalink)  
Old 20-Mar-2009, 12:30
AndreasStieger's Avatar
Busy Penguin
 
Join Date: Jun 2008
Posts: 275
AndreasStieger hasn't been rated much yet
Default Re: Php5 not recognized in SUSE 10.2 Apache2

cummingsmike wrote:
> When I access a test php file from a browser, it responds with unknown
> file type dialog box.
>
> I've used Yast on my OpenSUSE 10.2 system to install php5. I've edited
> configuration files such as httpd.conf per discussion threads here. One
> thing that doesn't work is the directive 'LoadModule php5_module
> modules/libphp5.so' because the file libphp5.so isn't in the modules
> directory.
>
> I'm ready to throw in the towel. I don't want to download and try to
> install php5 from scratch at this point, right?


Release 10.2 is out of support, you need to upgrade.
As for the php Module, without remembering when exactly it was
intruduced, just add "php5" to /etc/sysconfig/apache2 and restart the
apache service. (Hmm was a SuSEconfig run requited with 10.2?)

Kind regards,
Andreas Stieger
Reply With Quote
  #3 (permalink)  
Old 20-Mar-2009, 13:19
Puzzled Penguin
 
Join Date: Mar 2009
Location: Washington, DC
Posts: 3
cummingsmike hasn't been rated much yet
Post Re: Php5 not recognized in SUSE 10.2 Apache2

php5 was already added to /etc/sysconfig/apache2:

APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5"

Restarting the apache server had no effect.
Reply With Quote
  #4 (permalink)  
Old 20-Mar-2009, 13:37
AndreasStieger's Avatar
Busy Penguin
 
Join Date: Jun 2008
Posts: 275
AndreasStieger hasn't been rated much yet
Default Re: Php5 not recognized in SUSE 10.2 Apache2

cummingsmike wrote:
>
> php5 was already added to /etc/sysconfig/apache2:
>
> APACHE_MODULES="actions alias auth_basic authn_file authz_host
> authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env
> expires include log_config mime negotiation setenvif ssl suexec userdir
> php5"
>
> Restarting the apache server had no effect.
>
>


Check with "apache2ctl -M".

Kind regards,
Andreas Stieger
Reply With Quote
  #5 (permalink)  
Old 20-Mar-2009, 14:07
Puzzled Penguin
 
Join Date: Mar 2009
Location: Washington, DC
Posts: 3
cummingsmike hasn't been rated much yet
Post Re: Php5 not recognized in SUSE 10.2 Apache2

The php5 module appears to be loaded. Result of apache2ctl -M

Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_default_module (shared)
authz_user_module (shared)
authn_dbm_module (shared)
autoindex_module (shared)
cgi_module (shared)
dir_module (shared)
env_module (shared)
expires_module (shared)
include_module (shared)
log_config_module (shared)
mime_module (shared)
negotiation_module (shared)
setenvif_module (shared)
ssl_module (shared)
suexec_module (shared)
userdir_module (shared)
php5_module (shared)
Syntax OK
Reply With Quote
  #6 (permalink)  
Old 20-Mar-2009, 17:37
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,236
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: Php5 not recognized in SUSE 10.2 Apache2

What does your test PHP file look like? I hope you are using <?php ... >? and not <? ... ?>. Short tags are not supported by default, you should use the <?php form as it's more portable.
Reply With Quote
Reply

Bookmarks

Tags
php5 install


Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2