Run Php4 For .php4 Files And Php5 For .php [httpd.conf]
First off my error: apache force downloads .php4 files
Background:
Im attempting to run php4 and php5 at the same time. I had php 5 installed with the server when I got it.
I have installed php 4 from the source like this:
Code:
./configure --with-apxs=/usr/local/apache/bin/apxs --prefix=/PHP4 --without-mysql
I then copied the php.ini file to /PHP4/php.ini
In my httpd.conf Im loading and adding both php 4/5 modules like so:
Code:
LoadModule php4_module libexec/libphp4.so
LoadModule php5_module libexec/libphp5.so
AddModule mod_php4.c
AddModule mod_php5.c
Then later in the httpd.conf Im trying to tell apache to handle .php4 files with PHP 4 and .php with PHP5
Code:
AddType application/x-httpd-php .php
AddType application/x-httpd-php4 .php4
I restarted apache to load the new conf. .php files still use PHP5, but for some reason .php4 files are being downloaded, not running with PHP 4.
If I use htaccess to application/x-httpd-php4 php, .php files also force download. What am I missing?
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Php4 / Php5
i am getting Internal Server Error while accessing php5 pages. cat .htaccess AddHandler application/x-httpd-php5 .php Premature end of script headers: /usr/local/cpanel/cgi-sys/php5
View Replies!
View Related
Php4 + Php5
We have a server runing both php4 + php5 and had someone set it up that way when we got the server. but now i cant find who did it for us. And would like to hear how to do it. Im not the best with this kind of stuff and thats why i hire someone to do it lasttime I been reading on cpanel.net but nothing is up to date!
View Replies!
View Related
Upgrading Php4 To Php5
I have a client who is currently running their own linux machine and has php4 installed (mad I know ) Anyways, I have been asked to make some scripts for them, however I am wanting to use php5 rather than php4 as that is what I am accustomed to not to mention it's still got support for it. Does anyone know of any good online resources on how to upgrade to php5? or better still, how to install php5 and run both 4 and 5 on the same server (using Apache)
View Replies!
View Related
Downgrading From PHP5 To PHP4
I have an application that runs on PHP4 but the server I have has PHP5. The server has the following packages: php-mbstring-5.0.4-10.5 php-5.0.4-10.5 php-mysql-5.0.4-10.5 php-gd-5.0.4-10.5 php-pear-5.0.4-10.5 php-ldap-5.0.4-10.5 I need to downgrade to the following packages so I can use the application: php-mbstring-4.3.11-2.8 php-ldap-4.3.11-2.8 php-pear-4.3.11-2.8 php-gd-4.3.11-2.8 php-4.3.11-2.8 php-mysql-4.3.11-2.8 The papplication is not available for PHP5. When I start uninstalling packages is giving the following errors: [root@localhost ~]# rpm -e php-5.0.4-10.5 error: Failed dependencies: php >= 4.0.4 is needed by (installed) squirrelmail-1.4.7-4.fc4.noarch php = 5.0.4-10.5 is needed by (installed) php-pear-5.0.4-10.5.i386 php = 5.0.4-10.5 is needed by (installed) php-mysql-5.0.4-10.5.i386 php = 5.0.4-10.5 is needed by (installed) php-mbstring-5.0.4-10.5.i386 What will be the best way to downgrade these packages?
View Replies!
View Related
CentOS 5 - PHP4 + PHP5 And CPanel
I'm wondering if anyone here has successfully used PHP 4 and 5 on CentOS 5 with cPanel. I believe the OS does not have official RPMs for PHP4. Would I run into any problems if I use 3rd party RPMs? [url] I know it can be done, I'm just looking for any insight from someone who has tried it.
View Replies!
View Related
Running PHP4 And PHP5 Concurrently.
I currently have PHP 4.3.11 installed on my CentOS box and would also like to have PHP 5 installed for users to enable on their domains if they wish. I know GoDaddy offers their customers the option to enable PHP 5 parsing by tweaking the htaccess file in their root directories a tad. See their knowledgebase article: [url] I would like to do something similar but before doing so would like to know if this is even worth doing and if so, what advantages it would offer our customers who program. Do scripts written in php4x work on php5 servers? Is it to the point now where web hosts should be phasing out php4 in lieu of php5? Are there any guides for accomplishing this that might help me out? running to Apache 2 servers and proxying one to the other isn't the way I would like to do this.
View Replies!
View Related
Updating Php4 To Php5 On Centos
I am on a softlayer server with centos 4.x installed. I have a custom php 4.4.6 installed along with eaccelerator 0.95. This is what I need: PHP 5 with: zlib jpeg mysql freetype gd my current configure string is: './configure' '--with-apxs2=/usr/sbin/apxs' '--with-mysql' '--enable-wddx' '--with-ldap=shared' '--with-mysql--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring' '--with-zlib' '--enable-exif' '--with-gd=/usr/local' I want to update to PHP5, but I want to make sure I have all the extras I need. I'm also worried that if I install PHP5 that eaccelerator will break. Will that need to be reinstalled? Could someone walk me through this procedure? I can ask SoftLayer to upgrade PHP5, but I doubt they will touch eaccelerator.
View Replies!
View Related
PHP4 & PHP5 Not Working Correctly
I have suPHP installed in FastCGI mode. PHP5 is my default installation but I have it setup so that PHP4 can also run. At least that is my intention. I have PHP5 working without a problem. PHP4 is loading if I add the directinf x-httpd-php4 .php into my .htaccess file. HOWEVER: PHP (via phpinfo) is trying to load the config file from /usr/local/etc/php5/cgi/php.ini when it should be from ....php4/cgi/php.ini Where do I go to fix this? Or is there a second directive that I need to load in the .htaccess file? Also... In either php5 or php4, if I put a php.ini file into a directory, it is suppose to load that one. However, it is not doing this either.
View Replies!
View Related
Install PHP5 As CGI With PHP4 Already Installed
1) Download PHP 5.x and do the usual cd /usr/local/src [url] 2) Compile php as in a new directory such as /usr/local/php5 Use the same ./configure line required but with the following changes: --prefix=/usr/local/php5 --exec-prefix=/usr/local/php5 --program-suffix=5 --enable-force-cgi-redirect --enable-discard-path 3) Compile and install make make install IMP Steps : cp php.ini-dist /usr/local/php5/lib/php.ini cp /usr/local/php5/bin/php5 /usr/local/cpanel/cgi-sys/php5 chown root:wheel /usr/local/cpanel/cgi-sys/php5 4) Edit httpd.conf and add lines below:: AddHandler application/x-http-php5 .php5 Action application/x-http-php5 /cgi-sys/php5 Just use .php5 and it will invoke php5. # CGI configuration for PHP4 Action application/x-httpd-php4 /cgi-sys/php4 AddType application/x-httpd-php4 .php4 .php .php3 .php2 .phtml # LibPHP5 configuration LoadModule php5_module modules/libphp5.so AddType application/x-httpd-php .php5
View Replies!
View Related
Unexpected Character Input Error When Running Php4 And Php5 Together
CentOS - I had php4 running and php5 as cgi but then decided I wanted to have it the other way around i.e. run php5 standard and php4 as cgi. php5 is now running fine but php4 bombed with this error: Code: Unexpected character in input: '?' (ASCII=15) state=1 in /usr/local/cpanel/cgi-sys/php4 I fixed it by doing the following: EDIT php.ini file: Normally in /usr/local/php4/lib/php.ini Under ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; UNCOMMENT this line Code: ;cgi.fix_pathinfo=0 (i.e. remove the ";" infront) and CHANGE 0 to 1: Code: cgi.fix_pathinfo=1 This is for Linux and must be done with root via SSH Not sure if this will help anyone, but I thought I'd post it anyway.
View Replies!
View Related
CPanel 11 & Php5 & Php4
in latest cPanel, there is option to compile both php4 & php5. by default .php page will be parsed by php5 and .php4 will be parsed by php4 engine. but i want to reverse the method. by default .php should be parsed by php4 engine and .phpx or .php5 should be parsed by php5 engine. how can I do this? can't i install apache 2x while using both php4 & php5. cPanel did not recommend apache 2x with php4.
View Replies!
View Related
LAMP:httpd Doesn't Run After Installing PHP5
After install MySQL and Apache, everything went well, I tested web server and it was OK. but after I installing PHP, httpd just simply don't run. When I tried to run httpd, nothing was happened as showing below [root@localhost ~]# /usr/local/apache/bin/apachectl start [root@localhost ~]# ps aux |grep httpd root 2809 0.0 0.2 4988 672 pts/0 S+ 06:52 0:00 grep httpd [root@localhost ~]# ----------------------------------------- CentOS 5 MySQL: 5.0.41 httpd-2.2.4 PHP-5.2.3 ------------------------------------------ Installation Details groupadd -g 103 mysql useradd -u 103 -g mysql mysql groupadd -g 104 web useradd -u 104 -g web web MySQL ./configure --prefix=/usr/local/mysql --with-extra-charsets=all --enable-thread-safe-client httpd ./configure --prefix=/usr/local/apache --disable-status --disable-asis --disable-cgid --disable-userdir --disable-cgi --with-mpm=worker --enable-so --enable-deflate --enable-rewrite PHP ./configure --disable-all --with-apxs2=/usr/local/apache/bin/apxs --with-pcre-regex --with-zlib-dir --with-dom-xslt --with-dom-exslt --with-gd --with-jpeg-dir --with-png-dir --with-ttf --with-freetype-dir --enable-gd-native-ttf --enable-gd-jis-conv --with-iconv --enable-mbstring --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --enable-pdo --enable-sockets --with-dom --with-xmlrpc --with-xslt-sablot --enable-xslt --enable-soap --enable-zip --enable-libxml --enable-simplexml --enable-exif --with-pear --enable-xml httpd.conf User web Group web ------------------------------------------------------------
View Replies!
View Related
PHP Disabled Functions (HTTPD.conf)
is it possible to set the disabled functions list for PHP in apache's HTTPD.conf per virtual host? i want a bunch of functions disabled for everyone except the default host (me). I tried the php_admin_value way and when i look at phpinfo() it shows that the master is disabled and the local is not disabled (exactly what i want) but they arnt actually enabled for me
View Replies!
View Related
Libcurl Does Not Load In PHP4
Using zencart, can't get https to work with paypal express. https and PHP work otherwise. Have gone through troubleshooting with zencart and the configuration between the cart and paypal is okay. However, openssl does not appear to be configured in libcurl based on phpinfo- (curl CURL supportenabled CURL Informationlibcurl/7.16.4 zlib/1.2.3) which is strange because, after a clean install of libcurl, curl shows this- (curl 7.16.4 (powerpc-apple-darwin8.10.1) libcurl/7.16.4 OpenSSL/0.9.7l zlib/1.2.3 Protocols: tftp ftp telnet dict ldap http file https ftps Features: IPv6 Largefile NTLM SSL libz) The setup includes MacOSX 10.4.10 Tiger on a Mac G4, PHP 4.4.7, MySql 4.1.22. PHP was also rebuilt from scratch, before libcurl, because configure was missing on the original OSX installation, and was downloaded from PHP.net. The new libcurl was built to include openssl. I start with a clean configure and makefile on each build. The last configure looked like this: './configure' '--prefix=/usr' '--with-zlib' '--with-xml' '--with-zlib-dir=/usr' '--with-openssl' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--with-mysql=/usr' '--with-mysql-sock=/var/mysql/mysql.sock' '--enable-sockets' '--enable-dbx' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--without-pear' '--with-gd' '--with-jpeg-dir=/opt/local' '--with-png-dir=/opt/local' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--with-apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--enable-trans-sid' Both configure and build get through although there are warning messages, and the PHP module installs. Am attaching copies of the zipped configure and make logfiles rather than listing the many warnings in both, although build log primarily shows these type of errors in several extensions: /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'add_assoc_name_entry': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:246: warning: pointer targets in passing argument 2 of 'add_next_index_stringl' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:258: warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'add_assoc_asn1_string': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:267: warning: pointer targets in passing argument 4 of 'add_assoc_stringl_ex' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'asn1_time_to_time_t': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:290: warning: pointer targets in passing argument 1 of '_estrdup' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_x509_parse': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:897: warning: pointer targets in assignment differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'php_openssl_make_REQ': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:1207: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:1207: warning: pointer targets in passing argument 4 of 'zend_hash_get_current_key_ex' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:1280: warning: pointer targets in passing argument 3 of 'zend_hash_get_current_key_ex' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:1280: warning: pointer targets in passing argument 4 of 'zend_hash_get_current_key_ex' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export_to_file': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:1959: warning: pointer targets in passing argument 4 of 'PEM_write_bio_PrivateKey' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_pkey_export': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2010: warning: pointer targets in passing argument 4 of 'PEM_write_bio_PrivateKey' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_private_encrypt': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2520: warning: pointer targets in passing argument 2 of 'RSA_private_encrypt' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2529: warning: pointer targets in initialization differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_private_decrypt': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2576: warning: pointer targets in passing argument 2 of 'RSA_private_decrypt' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2592: warning: pointer targets in initialization differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_public_encrypt': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2639: warning: pointer targets in passing argument 2 of 'RSA_public_encrypt' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2649: warning: pointer targets in initialization differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_public_decrypt': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2696: warning: pointer targets in passing argument 2 of 'RSA_public_decrypt' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2714: warning: pointer targets in initialization differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_sign': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2775: warning: pointer targets in passing argument 3 of 'EVP_SignFinal' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2778: warning: pointer targets in initialization differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_verify': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2813: warning: pointer targets in passing argument 2 of 'EVP_VerifyFinal' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_seal': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2888: warning: pointer targets in passing argument 4 of 'EVP_EncryptUpdate' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2907: warning: pointer targets in initialization differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c: In function 'zif_openssl_open': /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2975: warning: pointer targets in passing argument 3 of 'EVP_OpenInit' differ in signedness /users/mea/Desktop/stufftobuild/php-4.4.7/ext/openssl/openssl.c:2977: warning: pointer targets in passing argument 4 of 'EVP_DecryptUpdate' differ in signedness From what I know the best option would be to get PHP, curl and ssl to work on the current platform. Any ideas on what could be going on and what it would take to get this to work?
View Replies!
View Related
Php4 Extension (eaccelerator) Not Loading Anymore
Server : pentium IV 3.0 Ghz debian 3.1 kernel 2.6 apache2 php4.3.10 Some months ago I installed php4 on this server , and added eaccelerator.net , mostly with this site as guide. Everything worked fine. Few days ago I realize I hadn't updated this server for a while. I run 'apt-get update' and 'apt-get dist-upgrade' . A whole lot of things get updated, and after that I perform a reboot, as adviced by the update script. The next day I experiment a bit with the profiler of xdebug . I manage to install it , play around with the results, but decide to uncomment it from php.ini again as it is not that helpfull to me and it makes quiet big log files too. Today I notice this server is getting very big loads. Normally on peak evenings it would float around 2-4 , with sometime jumps to 10-12 but always quickly recovering and working well. But on this evening it kept rising, stayed around 30-60 for most of the time, and even hit up to 85 . It only lowers when the busy hours are really over. So I look around everywhere , and then after a few hours I notice that eaccelerator is not visible in phpinfo(); anymore. This is the only weird thing I could find, and I assume this caused a big difference on the performance. I dont know why exactly it went away. Maybe it was the server update, wich touched a lot of files. But I thought it was not supposed to update any configuration files, not without warning at least. I could also have been the xdebug script, wich also uses 'phpize' to install and also required editing in php.ini . I really wish I noticed the lack of eaccelerator after the update but before trying xdebug. So I try to install eaccelerator again. Unpack from source, phpize, make, etc etc, just as last time. I edit php.ini to make sure the load command and settings of eaccelerator are still there and reload apache. I check phpinfo(); , but nothing changes. I try it all again to be sure, but still nothing. I check the location of the .so files, yes they are still there and the rights of the files look ok. I edit php.ini again and uncomment 'extension=mysql.so', and reload apache. I notice a mysql error on my site as expected. So that means I'm really editing the right php.ini file and that I can influence the extensions that are loaded. I add the mysql extension again and reload apache. I load an old php.ini backup file, from right after first installation of this server. The eaccelerator settings are there too already, but if I try it and reload apache : no difference. I reboot my server again, because .. well sometimes it helps. But not with this. phpinfo(); still says no eaccelerator. I check another server, exact same specs, same php+eaccelerator installation on the same day as the first one. I compare versions of apache/php/php extensions/zend extensions and all numbers I can find. Everything still looks the same, except server 1 does not have eaccelerator and server 2 still has. I'm shomehow out of things to check now. I'm pretty sure eaccelerator has a big influence on the performance of my heavy php site, and I want it back. Everything looks ok, the files are there, the settings in php.ini are there, it should work ... but it doesnt. No errors or warnings anywhere, just phpinfo(); saying that eaccelerator has not been loaded and the high loads are confirming this. It will either be a very complicated solution, or a very simple one, but I'm just looking over it. Does anyone has any tips on where to look or what to try ? Thanks.
View Replies!
View Related
Install GD For PHP4 On Red Hat Enterprise Linux, Version 4 From SSH
I only know basic commands for SSH and have been trying for hours to get GD installed for PHP4. I have tried: # apt-get install php-gd bash: apt-get: command not found apt-get install php4-gd bash: apt-get: command not found # up2date -i php-gd Fetching Obsoletes list for channel: rhel-i386-es-4... Fetching Obsoletes list for channel: rhel-i386-es-4-extras... Fetching rpm headers... Name Version Rel ---------------------------------------------------------- The following Packages were marked to be skipped by your configuration: Name Version Rel Reason ------------------------------------------------------------------------------- kernel 2.6.9 55.0.2.ELPkg name/pattern kernel-devel 2.6.9 55.0.2.ELPkg name/pattern kernel-hugemem-devel 2.6.9 55.0.2.ELPkg name/pattern kernel-smp 2.6.9 55.0.2.ELPkg name/pattern kernel-smp-devel 2.6.9 55.0.2.ELPkg name/pattern php-gd 4.3.9 3.22.5Pkg name/pattern The following packages you requested were marked to be skipped by your configuration: php-gd None of these things work and I was wondering if anyone knew how to get this to work without recompiling PHP.
View Replies!
View Related
Httpd.conf
I tried that recently to install PHP 4 & PHP 5 on the same server - without any luck, i stumbled into a massive hole. the existing httpd.conf was replaced and there was a backup made - stupid me accidently deleted this backup file and was left this a non-working copy of httpd.conf - if anyone can help me it would be much appreciated. root@server1 [~]# /etc/init.d/httpd configtest Warning: DocumentRoot [/dev/null] does not exist Syntax OK
View Replies!
View Related
Apache 2.2 And Httpd.conf
I recently updated to apache 2.2 and when I went to check /usr/local/apache/conf/httpd.conf I noticed that a lot of the stuff was missing from what I usually see in apache 1.3 Was a new file created when the update was finish? I used easyapache to make the update. I was actually looking to change the Keepalive Timeout MinSpareServers MaxSpareServers MaxRequestsPerChild Etc... But it doesn't look like it's in there.
View Replies!
View Related
Apache 2 - Httpd.conf
how should I optimize httpd.conf on my server. Apache was set up by my friend, unfortunately it started to "stuck" lately during peak time. Browser is connecting to a website for a long time before it actually starts to load it. My current setup: Timeout 300 KeepAlive On MaxKeepAliveRequests 300 KeepAliveTimeout 15 MinSpareServers 2 MaxSpareServers 5 StartServers 5 ServerLimit 650 MaxClients 650 Server: Intel Quad-Core Xeon X3220 @ 2.40 GHZ 4x 2GiB Kingston ECC Not-Registred 667Mhz 2x 150GiB RaptorX 10k RPM, sw raid 1
View Replies!
View Related
Optimizing Httpd.conf...
I remember seeing a website/forum where you couldn't post your server stats and httpd.conf settings and experts would give advice on settings you should use. Does anyone know the url to this site, or site similar to it
View Replies!
View Related
Set Value For Httpd.conf
I have a box: Dual Opteron 248 - 2GB RAM, Centos 4.x, Cpanel / WHM, does anyone can help me set value in httpd.conf for better? Set "Timeout" Set "KeepAlive" Set "KeepAliveTimeout" Set "MinSpareServers" Set "MaxSpareServers" Set "MaxRequestsPerChild" Set "HostnameLookups" I've got many emails from cpanel that httpd fail, check in apache logs i cant find any error
View Replies!
View Related
Optimize Httpd.conf
I am running Plesk 8 Server, RH Linux EL4 3.0GHz 1GB Ram. My httpd.conf setting is as below: <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 150 MaxRequestsPerChild 1000 </IfModule> best optimized values for my server. My server oftenly goes down due to large number of http processes.
View Replies!
View Related
Apache Httpd.conf
tuning apache configurations, and would like to seek for some opinions on how I should optimize my httpd.conf The server is primarily for downloads, serving file sizes that are around 100~200MB. how I should configure my apache so it'll allow a better/faster/more stable environment? Hardware Specs: Intel Xeon 3220 Quad-Core (2.4Ghz) 2GB Ram My current httpd.conf ServerTokens None ServerRoot "/etc/httpd" PidFile run/httpd.pid Timeout 20 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 ## ## Server-Pool Size Regulation (MPM specific) ## # prefork MPM <IfModule prefork.c> StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 </IfModule> # worker MPM <IfModule worker.c> StartServers 4 MaxClients 500 MinSpareThreads 25 MaxSpareThreads 100 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule>
View Replies!
View Related
Httpd.conf For A Forum
if these settings are decent for a busy forum, if not what should be changed? Timeout 25 KeepAlive On MaxKeepAliveRequests 40 KeepAliveTimeout 10 MinSpareServers 8 MaxSpareServers 20 StartServers 12 MaxClients 150 MaxRequestsPerChild 140 I have around 50-100 members/guests online at a time, with at least 20 robots(Search engine bots) online.
View Replies!
View Related
Httpd.conf To Set My Virtualhosts
I always used httpd.conf to set my virtualhosts and it worked perfect. Untill now. All domains I point to my IP get's pointed to first virtual host folder. And it doesnt care about other settings. My config: Code: <VirtualHost *> ServerSignature Off ServerAlias omgwtf.com ServerAdmin rytis@s.lt DocumentRoot /var/www ServerName blahblah.com Options -Indexes </VirtualHost> <VirtualHost *> ServerSignature Off ServerAlias blahblah.com ServerAdmin rytis@z.lt DocumentRoot /var/www/epo ServerName blahblah.com Options -Indexes </VirtualHost> And it doesnt care about that I set xyz.com to /var/www/epo, it just loads /var/epo. I have restarted apache.
View Replies!
View Related
Httpd.conf + IP-based Blacklist
I'd like to keep an IP blacklist, and have Apache enforce it. Because I want it to apply server-wide, I want to use it in httpd.conf, not .htaccess. Rather than constantly editing httpd.conf by hand, I'd like to keep a file of IPs, and have Apache read that file and use it as the argument for a "deny from..." directive. Try as I might, I cannot find any documentation, nor any examples, of this usage. Is this something that's possible? (It turns out that Apache doesn't honor /etc/hosts.deny, hence this question.)
View Replies!
View Related
Modifying Httpd.conf Indirectly
Given that I am using cpanel, is there a way to modify httpd.conf so I can enable mod proxy without having to do it directly? This is what I am instructed to do. Quote: Have you checked you have mod_proxy enabled? To enable mod_proxy uncomment it's LoadModule line in the httpd.conf file. You may have to ask your host.
View Replies!
View Related
Recommend Httpd.conf Values
I have a linux vps with 384mb dedicated and 1GB burst RAM. I am using it to host phproxy web proxy sites. Can you please recommend good values for the following Apache/1.3.37 httpd.conf settings? Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 2 MinSpareServers 32 MaxSpareServers 64 StartServers 8 MaxClients 256 MaxRequestsPerChild 500
View Replies!
View Related
Need The Best Setting (httpd.conf And My.cnf )
Processor InformationProcessor #1 Vendor: GenuineIntelProcessor #1 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #1 speed: 2000.219 MHzProcessor #1 cache size: 4096 KBProcessor #2 Vendor: GenuineIntelProcessor #2 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #2 speed: 2000.219 MHzProcessor #2 cache size: 4096 KBProcessor #3 Vendor: GenuineIntelProcessor #3 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #3 speed: 2000.219 MHzProcessor #3 cache size: 4096 KBProcessor #4 Vendor: GenuineIntelProcessor #4 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #4 speed: 2000.219 MHzProcessor #4 cache size: 4096 KBProcessor #5 Vendor: GenuineIntelProcessor #5 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #5 speed: 2000.219 MHzProcessor #5 cache size: 4096 KBProcessor #6 Vendor: GenuineIntelProcessor #6 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #6 speed: 2000.219 MHzProcessor #6 cache size: 4096 KBProcessor #7 Vendor: GenuineIntelProcessor #7 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #7 speed: 2000.219 MHzProcessor #7 cache size: 4096 KBProcessor #8 Vendor: GenuineIntelProcessor #8 Name: Intel(R) Xeon(R) CPU L5335 @ 2.00GHzProcessor #8 speed: 2000.219 MHzProcessor #8 cache size: 4096 KB 4GB RAM 150G Disk
View Replies!
View Related
Httpd.conf Help On A 256mb VPS By Webkeepers
I am using a VPS provided by webkeeprs, and actually my site got quite amount of traffic everyday, sometime when it at peak, by then website won't load, and got blank page. Check with the resourses used, I only got 256mb in ram, and it always show "RED" and which had consumed 240mb on ram already at peak time. Here is my setting of my httpd.conf file, I am looking for some expert who may give me a hand on this setting: ============================================================= ServerTokens ProductOnly ServerRoot "/etc/httpd" PidFile run/httpd.pid Timeout 180 KeepAlive On MaxKeepAliveRequests 88 KeepAliveTimeout 3 <IfModule prefork.c> StartServers 15 MinSpareServers 10 MaxSpareServers 20 ServerLimit 100 MaxClients 90 MaxRequestsPerChild 30 </IfModule> #<IfModule worker.c> #StartServers 1 #MaxClients 10 #MinSpareThreads 1 #MaxSpareThreads 5 #ThreadsPerChild 1 #MaxRequestsPerChild 0 #</IfModule> Listen 80 LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule authn_file_module modules/mod_authn_file.so LoadModule authn_alias_module modules/mod_authn_alias.so LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule ldap_module modules/mod_ldap.so LoadModule authnz_ldap_module modules/mod_authnz_ldap.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule logio_module modules/mod_logio.so LoadModule env_module modules/mod_env.so LoadModule ext_filter_module modules/mod_ext_filter.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule expires_module modules/mod_expires.so LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule cache_module modules/mod_cache.so LoadModule suexec_module modules/mod_suexec.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule cgi_module modules/mod_cgi.so LoadModule version_module modules/mod_version.so Include conf.d/*.conf ExtendedStatus Off User apache Group apache #ServerAdmin email@msn.com #ServerName UseCanonicalName Off DocumentRoot "/var/www/html" <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> <IfModule mod_userdir.c> UserDir disable </IfModule> DirectoryIndex index.html index.html.var index.shtml index.cfm index.php index.htm AccessFileName .htaccess
View Replies!
View Related
Apache Does Not Restart After Editing Httpd.conf
I am having a problem on my VPS. I am running the latest version of Apache on Windows Server 2K3, and after editing httpd.conf to allow virtual hosts (#Include /conf/extra/httpd-vhosts.conf) and trying to restart the service, an error appears saying the operation failed. I have even tried restarting/starting the service via services.msc If I am not using the default httpd.conf Apache will not restart at all... it is very strange. I have also tried doing a repair of the installation of Apache.
View Replies!
View Related
Subdomain In Httpd.conf Not Working Properly
Added this in the httpd.conf but it is still pointing to the main domain xxxx.com -------------- <VirtualHost *:80> DocumentRoot /xxx/xxx/webmail ServerName webmail.xxxxx.com </VirtualHost> ----------------- whenever i type webmail.xxxxx.com, it will see the content of xxxxx.com.
View Replies!
View Related
|