Current time: 11-22-2024, 02:32 PM Hello There, Guest! (LoginRegister)


Post Reply 
PHP issues on one IP
Author Message
weaselball Offline
Newbie
*

Posts: 7
Joined: Jul 2009
Reputation: 0
Post: #1
PHP issues on one IP
Using ISPCP v1.0.3 on Ubuntu 8.10 Intrepid

We moved a virtual domain to its own IP address so that they could have an SSL cert. The site itself is working fine. However, the PHP config isn't being read from /var/www/fcgi/example.com/php5/php.ini

If you try to use a phpinfo call on any of the other virtual domains, it comes back and tells you its been disabled for security reasons.

If you call it from that specific domain, it shows a default php config.

I'm stumped, can anyone point me in the right direction to get their config loaded from the correct location?
03-10-2010 05:43 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: PHP issues on one IP
Just copy the virtualhost as generated by the panel (look in /etc/ispcp/ispcp.conf) and add the SSL directives. It should be a no-brainer...
03-10-2010 08:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
weaselball Offline
Newbie
*

Posts: 7
Joined: Jul 2009
Reputation: 0
Post: #3
RE: PHP issues on one IP
That's exactly what I did. The only things I changed from the original configuration were the listening IP and the SSL directives. That's why I'm so confused. Here's the config:

Code:
<VirtualHost 192.168.254.9:443>

    <IfModule suexec_module>
           SuexecUserGroup vu2028 vu2028
    </IfModule>

    ServerAdmin     webmaster@example.org
    DocumentRoot    /var/www/virtual/example.org/htdocs

    ServerName      example.org
    ServerAlias     www.example.org example.org *.example.org vu2028.admin.example.org

    SSLEngine On
    SSLCertificateFile /etc/ssl/certs/example.org.crt
    SSLCertificateKeyFile /etc/ssl/certs/choicetechhost-pass.pem

    Alias /errors   /var/www/virtual/example.org/errors/

    RedirectMatch permanent ^/ftp([\/]?)                http://admin.example.org/ftp/
    RedirectMatch permanent ^/pma([\/]?)                http://admin.example.org/pma/
    RedirectMatch permanent ^/webmail([\/]?)    http://admin.example.org/webmail/
    RedirectMatch permanent ^/ispcp([\/]?)              http://admin.example.org/

    ErrorDocument 401 /errors/401.html
    ErrorDocument 403 /errors/403.html
    ErrorDocument 404 /errors/404.html
    ErrorDocument 500 /errors/500.html
    ErrorDocument 503 /errors/503.html

    <IfModule mod_cband.c>
        CBandUser example.org
    </IfModule>

    # httpd awstats support BEGIN.

   ProxyRequests Off

   <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>

   ProxyPass                    /stats  http://localhost/stats/example.org
   ProxyPassReverse             /stats  http://localhost/stats/example.org
  
    <Location /stats>
        <IfModule mod_rewrite.c>
            RewriteEngine on
            RewriteRule ^(.+)\?config=([^\?\&]+)(.*) $1\?config=example.org&$3 [NC,L]
        </IfModule>
        AuthType Basic
        AuthName "Statistics for domain example.org"
        AuthUserFile /var/www/virtual/example.org/.htpasswd
        AuthGroupFile /var/www/virtual/example.org/.htgroup
        Require group statistics
    </Location>

   # httpd awstats support END.

    # httpd dmn entry cgi support BEGIN.
    ScriptAlias /cgi-bin/ /var/www/virtual/example.org/cgi-bin/
    <Directory /var/www/virtual/example.org/cgi-bin>
        AllowOverride AuthConfig
        #Options ExecCGI
        Order allow,deny
        Allow from all
    </Directory>
    # httpd dmn entry cgi support END.

    <Directory /var/www/virtual/example.org/htdocs>
        # httpd dmn entry PHP support BEGIN.
        # httpd dmn entry PHP support END.
        Options -Indexes Includes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # httpd dmn entry PHP2 support BEGIN.
    <IfModule mod_php5.c>
        php_admin_value open_basedir "/var/www/virtual/example.org/:/var/www/virtual/example.org/phptmp/:/usr/share/php/"
        php_admin_value upload_tmp_dir "/var/www/virtual/example.org/phptmp/"
        php_admin_value session.save_path "/var/www/virtual/example.org/phptmp/"
        php_admin_value sendmail_path '/usr/sbin/sendmail -f vu2028 -t -i'
    </IfModule>
    <IfModule mod_fastcgi.c>
        ScriptAlias /php5/ /var/www/fcgi/example.org/
        <Directory "/var/www/fcgi/example.org">
            AllowOverride None
            Options +ExecCGI -MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_fcgid.c>
                Include /etc/apache2/mods-available/fcgid_ispcp.conf
        <Directory /var/www/virtual/example.org/htdocs>
            FCGIWrapper /var/www/fcgi/example.org/php5-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "/var/www/fcgi/example.org">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    # httpd dmn entry PHP2 support END.

    Include /etc/apache2/ispcp/example.org.conf

</VirtualHost>

If you do a phpinfo against that site, it comes up with the most basic PHP config. 16M memory-limit, etc.
03-11-2010 12:53 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: PHP issues on one IP
Can you post the output that you get when executing "apache2ctl -S -M" please?
03-11-2010 02:12 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)