LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 13 and PHP (http://www.linuxquestions.org/questions/slackware-14/slackware-13-and-php-779556/)

MeXaHuK 01-03-2010 09:16 AM

Slackware 13 and PHP
 
Hi, I have a problem with enable PHP on Slackware 13.
Edit httpd.conf and remove coment from line

# Uncomment the following line to enable PHP:
#
Include /etc/httpd/mod_php.conf

Next I check php module loaded

root@simeon:/etc/httpd# apachectl -M
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
authn_file_module (shared)
authn_dbm_module (shared)
authn_anon_module (shared)
authn_dbd_module (shared)
authn_default_module (shared)
authn_alias_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_user_module (shared)
authz_dbm_module (shared)
authz_owner_module (shared)
authnz_ldap_module (shared)
authz_default_module (shared)
auth_basic_module (shared)
auth_digest_module (shared)
file_cache_module (shared)
cache_module (shared)
disk_cache_module (shared)
mem_cache_module (shared)
dbd_module (shared)
dumpio_module (shared)
ext_filter_module (shared)
include_module (shared)
filter_module (shared)
substitute_module (shared)
deflate_module (shared)
ldap_module (shared)
log_config_module (shared)
log_forensic_module (shared)
logio_module (shared)
env_module (shared)
mime_magic_module (shared)
cern_meta_module (shared)
expires_module (shared)
headers_module (shared)
ident_module (shared)
usertrack_module (shared)
unique_id_module (shared)
setenvif_module (shared)
version_module (shared)
proxy_module (shared)
proxy_connect_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
proxy_ajp_module (shared)
proxy_balancer_module (shared)
mime_module (shared)
dav_module (shared)
status_module (shared)
autoindex_module (shared)
asis_module (shared)
info_module (shared)
cgi_module (shared)
dav_fs_module (shared)
vhost_alias_module (shared)
negotiation_module (shared)
dir_module (shared)
imagemap_module (shared)
actions_module (shared)
userdir_module (shared)
alias_module (shared)
rewrite_module (shared)
php5_module (shared)
Syntax OK

But PHP don't work! Please give me advice!

JokerBoy 01-03-2010 09:41 AM

# nano /etc/httpd/httpd.conf


Code:

# Uncomment the following line to enable PHP:
#
Include /etc/httpd/mod_php.conf

# /etc/rc.d/rc.httpd restart


for me this works :scratch:

btw, try with <?php content ?> , not <? content ?>

MeXaHuK 01-03-2010 10:32 AM

I try, but not works.
Maybe something new in this version.
But try with <?php and php works :)

Alien Bob 01-03-2010 01:01 PM

Quote:

Originally Posted by MeXaHuK (Post 3812568)
I try, but not works.
Maybe something new in this version.
But try with <?php and php works :)

The form <?php ... ?> is the preferred notation because it is more portable across implementations.
The short tags <? ... ?> have to be enabled explicitly in your php.ini file by adding
Code:

short_open_tag = On
and restarting apache.

Eric


All times are GMT -5. The time now is 02:51 AM.