antiblock
Elveron

Rota4

Membro
  • Content Count

    103
  • Joined

  • Last visited

Posts posted by Rota4


  1. Install mod_fcgidcd /usr/ports/www/mod_fcgidmake install cleanAdd next line to /usr/local/ect/apache24/httpd.conf fileLoadModule fcgid_module libexec/apache24/mod_fcgid.so4.1 Installing PHP5.4cd /usr/ports/lang/php5make configmake PREFIX=/usr/local/php54 PHPBASE=/usr/local/php54 install cleanIf you got this errorerror: xml2-config not found. Please check your libxml2 installation.Try this:cd /usr/ports/textproc/libxml2/make reinstallPre configure PHP54 to make sure it works.Add next lines to to /usr/local/ect/apache24/httpd.conf file.<Directory "/usr/local/www/apache24/data">...Options ExecCGIOptions +IndexesAllow from all</Directory><IfModule mime_module>...AddType application/x-httpd-php .phpAddType application/x-httpd-php-source .phps</IfModule>Create new file /usr/local/ect/apache24/Includes/httpd-fcgid.conf with the next content:<IfModule mod_fcgid.c>AddHandler fcgid-script .phpFCGIWrapper /usr/local/php54/bin/php-cgi .phpFcgidMaxRequestLen 134217728</IfModule>Change DirectoryIndex directive in file /usr/local/etc/apache24/httpd.confDirectoryIndex index.html index.htm index.php4.2 Installing PHP5.3cd /usr/ports/lang/php53make configmake PREFIX=/usr/local/php53 PHPBASE=/usr/local/php53 install clean DISABLE_CONFLICTS=14.3 Installing PHP5.2cd /usr/ports/lang/php52make configmake PREFIX=/usr/local/php52 PHPBASE=/usr/local/php52 install clean4.4 Configuration all PHP5.XCreate php.ini file for each php verson: /usr/local/php5X/etc/php.iniuser_ini.filename = "php.ini"date.timezone = Europe/KievIn this way you can override php_value and php_flag variables, because PHP installation as FCGI doesn't allow to override these variables via htaccess ( cause 500 error ).You can override php_value and php_flag per-directory level, just need to create php.ini in the directory where you want to override these variables.P.S. user_ini.filename is not supported by PHP52, so you have to override these variables in the main php.ini file /usr/local/php52/etc/php.inidate.timezone needed to avoid following WarningWarning: phpinfo() [function.phpinfo]: It is not safe to rely on the system's timezone settings.For using another FCGI Wrapper instead of default php54, just add into htaccess:For php53FCGIWrapper /usr/local/php53/bin/php-cgi .phpFor php52FCGIWrapper /usr/local/php52/bin/php-cgi .php4.5 Installing PHP5.4 extensionscd /usr/ports/lang/php5-extensionsmake PREFIX=/usr/local/php54 PHPBASE=/usr/local/php54 install cleanSelect neccessary extensions which you need to have.If you got this errorerror: Please reinstall the libcurl distributionTry this:cd /usr/ports/ftp/curlmake reinstallIf you got this errorStop in /usr/ports/x11/libXau.put the following in your /etc/make.conf:WITHOUT_X11=yesFor each failed extension, trycd /usr/ports/[portdir]make deinstallmake cleanmake distcleanmake cleanmake rmconfigAnd Then resintall it (with PREFIX if needed)Reinstall libjpegcd /usr/ports/graphics/jpegmake reinstallReinstall freetype2cd /usr/ports/print/freetype2make reinstall4.6 Installing PHP5.3 extensionscd /usr/ports/lang/php53-extensionsmake PREFIX=/usr/local/php53 PHPBASE=/usr/local/php53 install cleanSelect neccessary extensions which you need to have.4.7 Installing PHP5.2 extensionscd /usr/ports/lang/php52-extensionsmake PREFIX=/usr/local/php52 PHPBASE=/usr/local/php52 install cleanSelect neccessary extensions which you need to have.Please be sure you have instaled all these extensions for all PHP versionsCURL, GD, MYSQL, MYSQLI, PDO, PDO_MYSQL, MBSTRING, MCRYPT, ZLIB, ZIP, SOAP, LDAP, OPENSSLFONTE: http://webcodingstudio.com/blog/freebsd-92-server-configuration-apache-php-mysql-dns-samba