#1  
Old 28th December 2010, 16:00
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default PHP5 and Apache

So I've tried to use Falko's howto for installing php and mysql, with no luck. I try to open the info.php all I get is the actual code of the page. When I look at the apache2 httpd.conf file I don't see any php module loaded. I'm not sure what to do.

Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 29th December 2010, 15:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Which tutorial (URL) are you referring to?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 29th December 2010, 19:06
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

This is the link:

http://www.howtoforge.com/installing...fedora-13-lamp

Thanks Falko
Reply With Quote
  #4  
Old 29th December 2010, 19:42
vikas027 vikas027 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb

Hey,

You can follow these simple steps RHEL / CENTOS 5.5 onwards for LAMP setup.

Code:
1) # yum groupinstall "Web Server" "MySQL Database" --nogpgcheck

2) # yum install php* mysql* httpd* --nogpgcheck
   # chkconfig --level=235 httpd on
   # chkconfig --level=235 mysqld on

3) # cp -p /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf_orig
   # vim /etc/httpd/conf/httpd.conf
   {
   ...
   ...
   ...
   # At the end 
   <VirtualHost *:80>
       ServerAdmin root@mail.example.com
       DocumentRoot /var/www/html
       DirectoryIndex index.php index.html
       ServerName mail.example.com
       ErrorLog logs/mail.example.com-error_log
       CustomLog logs/mail.example.com-access_log common
   </VirtualHost>
  }
  
4) Check Apache syntax
  
  # httpd -t
  Syntax OK

5) Create PHP test file
  
  # vim /var/www/html/index.php
    {
    <?php
    
        phpinfo();
    
    ?>
    }
    
6) # service httpd restart

7) Check if PHP page is opening well.

   # elinks http://192.168.1.100
   # elinks http://192.168.1.100:80
   # elinks http://mail.example.com
   # elinks http://mail.example.com:80
__________________
==> VIKAS <==

LINUX SYSTEM ADMINISTRATOR


__________________________________________________

* RHCE - 805009991336981
* Registered Linux User - 484205
* Sun Certified System Administrator for Solaris 10 OS
Reply With Quote
  #5  
Old 30th December 2010, 17:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Did you run this step?
Code:
yum install php
Also, what's the output of
Code:
getenforce
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 30th December 2010, 19:19
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

The output is Disabled
Reply With Quote
  #7  
Old 30th December 2010, 19:21
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Vikas, it didn't work. Would the results be affected if I'm using port 80?

By the way, is FTP safe?
Reply With Quote
  #8  
Old 30th December 2010, 19:44
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default

By the way, I should explain. I'm creating a file server with webdav capabilities and ftp functionality. Currently I'm using Fedora 13 but I'm considering going into Ubuntu desktop/server or Debian directly. For the time being I'm also using the computer as my work desktop. Any comments on that? Don't need anything long just your personal preference! Thanks!
Reply With Quote
  #9  
Old 30th December 2010, 19:51
vikas027 vikas027 is offline
Junior Member
 
Join Date: Oct 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by lefloresg80 View Post
Vikas, it didn't work. Would the results be affected if I'm using port 80?

By the way, is FTP safe?
Those were exact steps. Tell me where you got stuck along with error logs.
__________________
==> VIKAS <==

LINUX SYSTEM ADMINISTRATOR


__________________________________________________

* RHCE - 805009991336981
* Registered Linux User - 484205
* Sun Certified System Administrator for Solaris 10 OS
Reply With Quote
  #10  
Old 7th January 2011, 23:24
lefloresg80 lefloresg80 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Thanks.. I just made a clean install of Ubuntu Server and did the howto and it worked great. Now I'm just trying to get FTP to work well. I'm having issues with the permission to download from the FTP client
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
php5 and php4 at the same time Hans Installation/Configuration 15 22nd October 2008 13:02
ispconfig breaks php5 in apache ? Randy Installation/Configuration 2 28th October 2006 12:20
Apache / php5 recompile HOWTO adrenalinic Installation/Configuration 2 15th June 2006 14:20
eaccelerator installation - can't find php5-config tom Programming/Scripts 9 15th May 2006 15:36


All times are GMT +2. The time now is 09:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.