LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-03-2010, 09:16 AM   #1
MeXaHuK
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
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!
 
Old 01-03-2010, 09:41 AM   #2
JokerBoy
Member
 
Registered: Sep 2009
Posts: 140

Rep: Reputation: 23
# 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

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

Last edited by JokerBoy; 01-03-2010 at 09:43 AM.
 
Old 01-03-2010, 10:32 AM   #3
MeXaHuK
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Original Poster
Rep: Reputation: 0
I try, but not works.
Maybe something new in this version.
But try with <?php and php works

Last edited by MeXaHuK; 01-03-2010 at 10:47 AM.
 
Old 01-03-2010, 01:01 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,259

Rep: Reputation: Disabled
Quote:
Originally Posted by MeXaHuK View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 12 PHP? blmartin777 Linux - Server 3 09-14-2007 02:47 PM
Slackware and PHP gawain Slackware 5 02-09-2007 10:48 AM
slackware, apache and PHP from .tgz - problems with PHP szymon Slackware 2 09-06-2004 04:57 PM
PHP with Slackware fuelinjection Linux - General 3 06-09-2004 07:08 AM
Slackware 9 PHP doppelganger Slackware 1 04-22-2003 01:38 PM


All times are GMT -5. The time now is 01:19 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration