Title --------- MIGRATED Miva Merchant Virtual Machine: Apache Configuration File ( httpd.conf ) Symptom ---------- Incorrect paths to any of the configuration in this file can cause a number of errors - Error: mivaroot is not defined - Call to undefined function - Many others - Browser tries to download .mvc files Solution ---------- Some of the steps required to resolve this issue need a level of server access that will not be available to most end users. If you are a MIVA Merchant end user experiencing this problem, you may have to forward this information to your Host, ISP, or Systems Administrator. Open the httpd.conf or server sites include configuration file. NOTE: Your server UNIX/Linux flavor may differ from the paths and or commands below so adjust the instructions accordingly if needed. Edit the Apache Configuration file httpd.conf NOTE: Your server UNIX/Linux flavor may differ from the paths and or commands below so adjust the instructions accordingly if needed. First locate the httpd.conf and then edit it, dont forget to restart httpd when your done comandline>locate httpd.conf /etc/httpd/conf/httpd.conf comandline>vi /etc/httpd/conf/httpd.conf Below is a template of directives that need to be added to the httpd.conf # BEGIN FILE: httpd.conf # # BEGIN MIVA VM GLOBAL CONFIGURATION (SERVER SAFE MODE) # The paths that start with /mivavm-v5.13/ assume you extracted the MIVA VM distribution to a dir 'miva' from / AddType application/x-miva-compiled .mvc Action application/x-miva-compiled /cgi-bin/mivavm SetEnv MIVA_CONFIGURATION_FILE /path/to/the/file/you/are/editing #SetEnv MIVA_CONFIGURATION_FILE_SECURE /path/to/the/secure/file/you/are/editing # MvCONFIG_DIR_MIVA and MvCONFIG_DIR_DATA are the paths to a particular sites web and data directory # Add the next two lines to the blocks for each site # SetEnv MvCONFIG_DIR_MIVA /var/www/html # SetEnv MvCONFIG_DIR_DATA /var/www/mivadata # Use the following 2 directives if you plan on using ~user accounts # SetEnv MvCONFIG_DIR_USER public_html # SetEnv MvCONFIG_DIR_USERDATA mivadata SetEnv MvCONFIG_SSL_OPENSSL /lib/libssl.so.0.9.7f SetEnv MvCONFIG_SSL_CRYPTO /lib/libcrypto.so.0.9.7f SetEnv MvCONFIG_DIR_CA /mivavm-v5.13/certs/* openssl-0.9/
or
openssl-1.0/
* New in v5.12 or higher of Miva Merchant Empresa
* If your UNIX distribution uses OpenSSL v0.9.x, you must change the value of HTTP_MvCONFIG_DIR_CA to end in "openssl-0.9"
* If your UNIX distribution uses OpenSSL v1.0.x, you must change the value of HTTP_MvCONFIG_DIR_CA to end in "openssl-1.0"
SetEnv MvCONFIG_COMMERCE_LinkPoint /mivavm-v5.13/lib/commerce/linkpoint.so SetEnv MvCONFIG_DATABASE_mivasql /mivavm-v5.13/lib/databases/mivasql.so SetEnv MvCONFIG_DATABASE_mysql /mivavm-v5.13/lib/databases/mysql.so
# NOTE: restart httpd after you edit the httpd.conf file # END MIVA VM GLOBAL CONFIGURATION (SERVER SAFE MODE) # # END FILE: httpd.conf Restart the apache web server after you edit the httpd.conf file As of Apache 1.3 Apache.org has provided a script called apachectl which can be used to start, stop, and restart Apache. It may need a little customization for your system, see the comments at the top of the script. If apachetl is not available use your normal apache restart command. comandline>apachectl restart
|