nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Debian Apache2 Enable PHP and Perl

This is a discussion on Debian Apache2 Enable PHP and Perl within the Web servers forums, part of the Mastering Servers category; Hi, I am trying to set up apache2 with ssl support on ubuntu. I am trying to set up snort ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-03-2008, 01:16 AM
Member
User
 
Join Date: Jan 2008
OS: Debian/Redhat
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pansarevai is on a distinguished road
Default Debian Apache2 Enable PHP and Perl

Hi,

I am trying to set up apache2 with ssl support on ubuntu. I am trying to set up snort for that I need php support.I install php4 and tried with php5 as well.But everytime it asks for download of php file while opening.I have gone through lot of pages in google but still.....
Can anybody help me out in this rather than reading a hell lot of document ..
Thnx in advance.
Reply With Quote
  #2 (permalink)  
Old 05-03-2008, 12:06 AM
agn agn is offline
Member
User
 
Join Date: Feb 2008
OS: OpenBSD/FreeBSD/Debian/Fedora/RHEL
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
agn is on a distinguished road
Default

You should tell apache how to handle php files. Assuming you already have mod_php loaded, add

Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
to apache config.
Reply With Quote
  #3 (permalink)  
Old 20-11-2008, 03:07 AM
Junior Member
User
 
Join Date: Nov 2008
OS: Red Hat 4
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tanweernoor is on a distinguished road
Default

just looked to the question......
simple solution is edit /etc/php.ini

increase the default memory from 8MB to 128M or 256M and if you have heavy data increase a little to execution time
Reply With Quote
  #4 (permalink)  
Old 21-11-2008, 01:11 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You need to enable perl and php modules by typing following command:
Code:
a2enmod php5
a2enmod perl
Then restart apache, to activate new configuration and you are done:
Code:
/etc/init.d/apache2 restart
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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 Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Apache2 performance is awful jdenniss Web servers 1 01-11-2008 02:14 AM
Apache2 has a proxy emdeded !?!? permalac Networking, Firewalls and Security 6 22-05-2008 07:25 PM
Enable or disable services in Debian Linux raj Linux software 1 25-01-2007 03:00 AM
VirtualHost Problems on Apache2 rcordeiro Linux software 3 08-11-2006 10:30 PM
debian apache2 cgi-bin location Linux software 1 24-01-2006 06:44 PM


All times are GMT +5.5. The time now is 03:29 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38