Current time: 11-26-2024, 02:46 AM Hello There, Guest! (LoginRegister)


Post Reply 
PHP issues on one IP
Author Message
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
Post Reply 


Messages In This Thread
PHP issues on one IP - weaselball - 03-10-2010, 05:43 AM
RE: PHP issues on one IP - kilburn - 03-10-2010, 08:28 AM
RE: PHP issues on one IP - weaselball - 03-11-2010 12:53 AM
RE: PHP issues on one IP - kilburn - 03-11-2010, 02:12 AM

Forum Jump:


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