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?
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.
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
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!
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)
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?
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.
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.
I need to install php4 alongside php5. In the tutorials section i saw methods for people who already have php4 installed but not php5. I need to do this the other way around,
I already have PHP 4 installed on my server and now i want to install php5 on same apache instance but different port.I want to configure the system so that on one port php4 runa dn on second port PHP5 run.
I had a small question about ODBC. I created a new connection to a MySQL database with the 'ODBC Data Source Administrator' on my Win 2008 / IIS 7 webserver.
In this administration panel the ODBC data source works just fine. When I fill in the required values I receive the list of available databases and pressing the "test" button results in a successful connection.
But when I want to use this connection in other software, a C++ application and a PHP application, they supply me with errors "Couldn't connect to database", etc.
So the ODBC connection is correct (so are the credentials in the software 100% sure of that), but software can't use the connection. Because the software worked perfectly on an older server I think I'm missing out on some sort of setting which enables applications to use the connection (or something like that).
Latest Plex installed on a fresh machine. Have tried both Ubuntu 12.04 and 14.04 and cannot seem to have my website work correctly regarding URL rewrites. Its enabled in apache...
When I deny all other traffic for the "System policy for incoming traffic" to secure the server by only allowing the explicit ports I've requested to open, my server stops operating correctly.
It appears when I set the "System policy for incoming traffic" to deny, it appears to be disrupting various functions such as web traffic over ports 80/443, FTP, SSH, they either work extremely slow or don't work at all.
I brought this up with my Plesk license provider and they stated that the Plesk firewall doesn't add any tracking for ephemeral ports, therefore if you set the policy to drop for incoming/outgoing, it's not going to allow proper TCP communication since the return socket can't be opened. Also that the firewall is an explicit deny system rather than explicit allow based system.
Am I doing something wrong? All I want to do is to block all ports other than the ones I've set to allow. Is this how it is supposed to work?
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-
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?
I am being rejected by Hotmail when sending mail from my VPS. I want to send mails from punbb and OSCommerce, with various website hosted on one VPS/Cpanel/LAMP solution. And with sendmail or SMTP, it'a always the same : passing almost every ISP except Hotmail/Gmail. I also always get this part in my email header regardless of which website i'm sending email from :
Code: Received: from host.locker4adream.com ([74.200.75.7]) by host.locker4adream.com with esmtpa (Exim 4.68) So I think it's the host.locker4adream.com part that makes me rejected. Because it's almost the only line in the email header that is different when I am using Outlook/Thunderbird to send mail. This ip (74.200.75.7]) is mine and I never spammed or anything.
So i asked my host ro add rDNS. And I added this line to my DNS zone on my mail domain: Code:
lockeradream TXT "v=spf1 mx a ptr ip4:74.200.75.7/32 ip4:74.200.81.156/32?all" I am really out of solutions! Can anyone tell me if the SPF record stated above is ok?