PHP4 And 5 On Win2003

Jun 14, 2008

how I could have both PHP4 and PHP5 work on a Win2003 server. Currently PHP5 is installed and works.

View 1 Replies


ADVERTISEMENT

Run Php4 For .php4 Files And Php5 For .php [httpd.conf]

Jan 28, 2007

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 2 Replies View Related

Win2003 Hosting

Feb 8, 2008

I'm working on a web project, using ASP.NET and Sql Server, and am curious at W2k3 hosting. Do hosts give you a remote desktop login to configure whatever you need to configure?

View 6 Replies View Related

No SQL Express On Win2003 Web

Feb 15, 2007

According to microsoft, Only SQL Express 2005 can be installed on windows 2003 web edition. N other sql server editions allowed. Sure, ok. So I downloaded express (SQLEXPR_ADV.EXE) and go to install. Install always stops (shuts down) with no warning ...

smooth Microsoft, really smooth.

-- And before anybody chimes in. Yes .net 2.0 and 3.0 are installed.

View 1 Replies View Related

Does .htaccess Run In Win2003

Jan 19, 2007

does .htaccess run in windows 2003?

View 5 Replies View Related

Do Win2003 Require CALs For IIS

Apr 2, 2008

i don't think win2003 Standard need CALs for IIS6 or does it?

View 1 Replies View Related

IIS Win2003 SMTP Setup

Jan 25, 2008

I have win2003 server running IIS hosting an asp website, I am wanting to use CDONTS to send emails.

I am no pro and not really sure what I am doing with setting up the server for SMTP. I have installed SMTP Virtual Server but do not know what settings I need or what else I need to setup to get it to work.

I have always used hosted space before where it is all setup for me.

How do I go about it?

View 0 Replies View Related

Win2003 Max Memory Allowed

Nov 28, 2007

* I have a Windows 2003 Professional Edition server with 8GB installed.

* /PAE is enabled to use more than 4GB memory
multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Windows Server 2003, Enterprise" /fastdetect /NoExecute=OptOut /PAE

* I can see 8GB installed in the Task Manager

* This server is not for hosting but for running some cpu intensive applications. (I am not into webhosting industry)

But the maximum I ever seen been used is 4.66GB, and after that I run often into "Memory allocation failed" "Out of memory exception" application error.

How to use the full 8gb? Or is my box configured to use 8gb? Or is it dependent on application. Do I need a memory manager third-party software?

View 2 Replies View Related

Dos Attacks On Apache2 (win2003)

May 5, 2007

Im running a windows 2003 web edition server with apache 2.2.4 installed and a ported module; mod_dosEvasive, my server is vurnable for some sort of single machine dos attack. Not only my own server is vurnable but basically ANY apache 2.2.4 win32 server, even without additional modules (lik php) installed ( i checked by installing apache2 on 4 machines, all vurnable)

The tool used to attack apache is described here:
[url]

When attacked by the specific syn flood attack apache2 becomes useless and doesnt send any responses out anymore. When the attacker stops sending this flood Apache starts responding again.

how to secure a windows apache server against such an attack?

View 2 Replies View Related

They Trying To Login To My Win2003 Server

Feb 26, 2007

Running A Windows 2003 Server at co-location. I just looked at my event viewer security log and am stunned to see thousands of Failure Audit logon attempts. They have been trying since Saturday at 9:43pm, till currently. Almost all of them failed, but a few were successfull. All of the successfull attempt appear to be:

Successful Network Logon:
User Name:
Domain:
Logon ID: (0x0,0x2E9F395)
Logon Type: 3
Logon Process: NtLmSsp
Authentication Package: NTLM
Workstation Name: DAS
Logon GUID: -
Caller User Name: -
Caller Domain: -
Caller Logon ID: -
Caller Process ID: -
Transited Services: -
Source Network Address: 125.82.7.86
Source Port: 0

How do I lock this down? How can I block these guys from trying to login? The IPS are coming from all over the world though. I did whois for a few, and they range from Poland, Russia, to China.

View 14 Replies View Related

Connecting Remotely To Win2003 Server?

Aug 30, 2007

I have a problem connecting to my win2003 server from my work. The thing is that everything is turned off. I dont have administration rights. The remote connection in win xp doesnt work, telnet also dont work. Im behind proxy, all ports are closed. Is there any way, to install software on my server or smth else, so somehow i could connecti to my server remotely? I need to be able to connect to gui interface or maybe just be able to start programs, which crashed.

View 12 Replies View Related

Running Disk Check On Win2003

Mar 21, 2007

I suspect there is bad sector in the disk. How do i check it w/o turning the server offline?

View 3 Replies View Related

LF: Toronto-based Win2003 Hosting W/Req.

Oct 31, 2007

I'm trying to find a reputable dedicated host whos datacenter is located in toronto (no Quebec DataCenters plz) and can meet my below requirements:

1) Windows 2003 Server ()
2) 1~2 TB Bandwidth
3) allow/offer up to /24 ip block (with IP jurisdiction of course)
4) Private VPN hosting allowed
5) Managed preferred

Does anyone know of a company that can do the above?

Please do not PM me regarding your offers, as I will not check PM that often.

View 2 Replies View Related

Setup SMTP Server On WIN2003 Apache

Nov 24, 2007

I don't have any SMTP server

Its a dedicated unmanaged server that has windows 2003 and apache running. I heard you need IIS to enable SMTP on a Windows machine but I don't want to run IIS because I feel Apache is better.

View 4 Replies View Related

Can We Run Both PHP4 And PHP5 Together

Jul 27, 2008

We have a client which site requires PHP4, not PHP5 to run. Can we run both PHP versions alongside each other? Apparently, their site will only work in PHP4. We are running Plesk 8.3.0 for Linux.

View 8 Replies View Related

Php4 / Php5

Jan 26, 2007

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 7 Replies View Related

Php4 + Php5

May 13, 2007

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 3 Replies View Related

VPS With 1and1: How Do I Downgrade From 5 To Php4?

Sep 12, 2008

im still getting used to VPS and im a bit puzzled on how to select php 4 instead of running 5.

Plesk 8.3.0

View 7 Replies View Related

Php5 Performance Vs Php4

Jul 24, 2009

Is there any difference in performance if you upgrade from php4 to php5? Or can it reduce the average server load?

View 12 Replies View Related

Upgrading Php4 To Php5

May 4, 2008

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 5 Replies View Related

CPanel 11 & Php5 & Php4

Oct 25, 2007

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 6 Replies View Related

Downgrading From PHP5 To PHP4

Apr 25, 2007

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 2 Replies View Related

Php4 & Php5 On Centos

Jun 23, 2007

Is it possible/advsisable to run them both on a Cpanel Server?

View 3 Replies View Related

Libcurl Does Not Load In PHP4

Oct 9, 2007

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 3 Replies View Related

Conflicts Upgrading From Php4 To Php5

Apr 8, 2009

My server currently has php 4.4.7 installed. I was wondering what potential issues (if any) there might be upgrading to 5.2.9?

Is there anything that might break code written for php4? (other than predefined functions with identical names)

View 7 Replies View Related

CentOS 5 - PHP4 + PHP5 And CPanel

Jun 2, 2008

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 4 Replies View Related

PHP4 & PHP5 Not Working Correctly

Jun 7, 2008

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 9 Replies View Related

Install PHP5 As CGI With PHP4 Already Installed

Aug 12, 2008

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 1 Replies View Related

How To Upgrade Php4 To Php5 On CentOS 4.6

Jul 7, 2008

How to upgrade php4 to php5 on CentOS 4.6?

View 4 Replies View Related

Running PHP4 And PHP5 Concurrently.

Oct 21, 2007

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 5 Replies View Related

Updating Php4 To Php5 On Centos

Aug 27, 2007

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 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved