LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-18-2010, 12:57 PM   #1
yungblood
LQ Newbie
 
Registered: Feb 2007
Distribution: Debian Wheezy
Posts: 10

Rep: Reputation: 0
Question php not working on one vhost, but works on all others.


I just added a ssl vhost. My php files are not running on it, they just get downloaded when I click them.

All my non-ssl vhosts were added by the admin software of my hosting company, but I had to manually add the vhost entry for my ssl vhost.

Here is the entry I added for my ssl vhost:
Code:
<VirtualHost www.vhost.com:443>
   DocumentRoot "/var/www/vhosts/vhost.com/httpsdocs"
   ErrorLog logs/ssl_error_log
   TransferLog logs/ssl_access_log
   SSLEngine on
   SSLProtocol all -SSLv2
   SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM

   SSLCertificateFile /usr/local/apache/conf/ssl.crt
   SSLCertificateKeyFile /usr/local/apache/conf/ssl.key
   SSLCertificateChainFile /usr/local/apache/conf/sub.class1.server.ca.pem
   SSLCACertificateFile /usr/local/apache/conf/ca-bundle.pem
   SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>
I'm sure I'm just missing something simple, but I can't seem to figure it out.
 
Old 12-18-2010, 01:28 PM   #2
yungblood
LQ Newbie
 
Registered: Feb 2007
Distribution: Debian Wheezy
Posts: 10

Original Poster
Rep: Reputation: 0
I got it working. I found the original vhost config files for each vhost. I found I was missing the php lines:

Code:
   <Directory /var/www/vhosts/vhost.com/httpsdocs>
      <IfModule sapi_apache2.c>
         php_admin_flag engine on
         php_admin_flag safe_mode on
         php_admin_value open_basedir "/var/www/vhosts/vhost.com/httpsdocs:/tmp"
      </IfModule>
      <IfModule mod_php5.c>
         php_admin_flag engine on
         php_admin_flag safe_mode on
         php_admin_value open_basedir "/var/www/vhosts/vhost.com/httpsdocs:/tmp"
      </IfModule>
   </Directory>
 
  


Reply

Tags
apacheconf, php, ssl, vhost


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
[SOLVED] Apache2 Multiple SSL vhost in different vhost files, does not work LBM Linux - Software 2 09-24-2010 06:06 AM
PHP: How to change email sender per directory (apache vhost) ciuly Linux - Server 2 09-29-2009 02:21 AM
Contact form using PHP is not working in IE but works in FF. jamesmage Programming 3 09-21-2009 10:24 AM
php mail() not working but mailx works twlilinux Linux - Server 6 07-03-2008 09:16 PM
Apache: Alias is working on ssl vhost but not on mass vhost jonavogt Linux - Software 0 06-07-2005 02:05 PM


All times are GMT -5. The time now is 07:34 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