I'm trying to keep up with things by developing for PHP5. My current host still uses PHP 4.4.1, which is a pain. Can someone advise me if I should change host to someone who uses PHP5. I would rather have shared hosting due to budget. If so, who should I use? Otherwise, can someone point me in the direction of a resource that describes how to develop for PHP5 while retaining backward compatibility for PHP4.x so I can write code targeted primarily at PHP5, but also works on PHP4.x?
I was in the market for a new dedicated server after a couple of years with my previous provider. The previous provider did nothing wrong but they were no longer competitive when it came to CPU and memory.
I moved first to geekrack. And I left them after a week and a half as they never were able to get my rDNS records setup.
I found Universal Hosts on this forum and gave them a shot. I had asked for an operating system that they didn't offer normally (Debian 64 bit) and they said that they could do it. However, when my server was setup it was 32 bit Debian instead. They apologized and had Debian 64 bit setup less than 24 hours later.
When I asked them to get rDNS records setup it took a few hours but they were setup correctly and they worked.
Universal Hosts is also a BurstNet reseller but compared to my other attempt at using a BurstNet reseller they are fantastic. While the initial config was incorrect they worked quickly to fix it and were very professional about it.
So after two weeks - so far so good. Keep up the good work UniHosts!
I am running Apache2.2, PHP5.I have been running with virtual hosts on a Windows 7 environment fine for a couple of years successfully, but have just had to move to a Windows 8 environment.It looks like Apache and PHP have installed and are working fine, but my Virtual hosts are now not being recognised. From what I can tell, it is the Windows 8 hosts file that is having a problem, as it looks as though it is now just setup to Block websites.
If I make the host file just have the one line127.0.0.1 localhost entry, then the very first Virtual Host from my apache config file will come up, but the rest are not found.If I put the usual 127.0.0.1 mywebsite.name aliasname is appears as though my website works momentarily and then is blocked..
Recently I stumbled along a host on here with a good rep and that uses direct admin.
Because they were very nice on the live support I signed up to see what direct admin was like.
Its very diferent from cpanel. Some parts seem to be harder to use like the phpmyadmin requires the username and password to the database you created not the control panel username and password like cpanel. Although I guess that could be a good security feature just in case some one gets into the control panel they can not get into the phpmyadmin, then again if they are smart and were able to get into the control panel they could get into ftp and look what the username and password is on the config file for the script you are using.
The bandwidth meter seems to be better in direct admin although I think its acting up for me as its putting yesterdays bandwidth on todays. I was told by the host that it updates every 2 hours and at first it did but now its gone to every day. Oh and unlike cpanel this bandwidth meter includes bandwith used by the control panel.
Niether one from what I can tell counts sftp though at least for the hosts I have right now.
I have just installed PHP5 into my IIS server and want to install projectpier
1st problem: When I go to [url]I get the errorThis Virtual Directory does not allow contents to be listed.
There is an index.php in there but doesn't load even though I have specified it as a default content page in the website..
2nd problem: After I manually browse to the install page I get the following errors:
#Error: /config/config.php is not writable
# Error: /public/files is not writable
# Error: /cache is not writable
# Error: /upload is not writable
I have realised that permissions are not setup right so I went and gave cart blanche access to the folder for any user..it worked but is far from secure.What is the best way to do this?
When installing web applications like this are they usually done from the servers browser where the server is the only one with full access.I tried this and it didn't work.
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.
checking for T1lib support... no checking whether to enable truetype string function in GD... no checking whether to enable JIS-mapped Japanese font support in GD... no checking for fabsf... yes checking for floorf... yes If configure fails try --with-jpeg-dir=<DIR> checking for png_write_image in -lpng... yes If configure fails try --with-xpm-dir=<DIR> If configure fails try --with-freetype-dir=<DIR> configure: error: GD build test failed. Please check the config.log for details.
I think i'm not the only one who is experiencing this problem, take a look here: [url]
Why do PHP.net don't give much importance to this BUG?
I recently installed ubuntu 7.10, and apache2. Both installed with no problems. In my browser i am able to type localhost, and i recieve the "It works" page. I can also start,stop and restart with no problems. However, I cannot install php5. I use synaptic package manager to install, and i added the appropriate lines to the httpd.conf file but i still cannot view .php files. I try to run a simple php page and a dialog box pops up prompting me to open or save the file. If i choose either, the box just pops up again.
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
I've already managed to pick two web hosts for my business that probably won't do the job, so I'm looking for some advice. Primarily we need PHP 5 (with cURL), MySQL 5, easy to implement SSL and some kind of e-mail. I wouldn't imagine using more than 1gb monthly data transfer or needing more than about 20mb of storage.
The database design and all the code was custom written by me and a friend. We are not interested in overly-fluffy GUI's - we like power tools without the finger guards. We'd also like to have good logs of errors, accesses, etc.
Finally, I'm not interested in saving $10 a month to get an overloaded server that goes down now and then. Web host rates are pretty much trivial in comparison with the cost of downtime for this site.
I have installed PHP 5.2.1 (with this guide) working along side PHP 4.4.6, but I am trying to install mailparse into PHP5 and have not had much luck at it.
I think it maybe installing it for PHP 4 and not PHP5 as it seems to be the same date all the time: 20020429 and I believe it should be 2004 or newer from what I have read on Auracle Support Forum.
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'm running cPanel hosting on Centos VPS, apache was last built with PHP 4.4.2. Now I have a client who wants to install mediawiki which requires php5. I don't want to recompile Apache with php5 because I don't know how this could affect my other customers.
Is it possible to run php5 for on a "per account" basis while keeping php4 as the default for the server ?
how do i install php5 on my linux vps centos OS i want to do that installing because right now using php4 and i want to upgrade to php5 and mySql 5 to my vps. i'm on self managed/unmanage server
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)
I'm using Apache2, MySQL5, and PHP5 with CentOS4.6, cPanel 11.
When recompile Apache2 and PHP5 from WHM, there are no options for mbstring, so now my PHP5 doesn't has mbstring.
I tried to install mbstring as below, but I got this message:
Quote:
root@mybox [~]# yum install php-mbstring Setting up Install Process Setting up repositories update 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Reading repository metadata in from local files Excluding Packages in global exclude list Finished Parsing package install arguments No Match for argument: php-mbstring Nothing to do
I also tried:
Quote:
up2date -i php-mbstring
Are there other ways to install mbstring for PHP5?
we've been installing a web-app on a domain controller at work. Previously the app ran on WAMP but the new server has to run IIS, though PHP and MySQL is acceptable for now.
We've jumped through hoops to get it working as well as it is now, but we've hit a few snags which seem common, but none of the solutions work for us.
We were having problems where the MySQL extensions for PHP could not be loaded because of access rights. When we look at a phpinfo() output the MySQL information is completely missing. This happens with any user set in the application pool with the exception of Administrator. When we make that user the one that runs that application pool then the MySQL extensions load fine and the whole system works perfectly. Even if we change it to another admin user the system still won't work.
I'm trying to compile PHP with curl enabled but I cannot get it work.
Here is the part of config.log
.... configure:32740: checking whether to enable calendar conversion support configure:32778: result: no configure:33078: checking whether to enable ctype functions configure:33116: result: yes configure:33416: checking for cURL support configure:33455: result: yes configure:33464: checking if we should use cURL for url streams configure:33482: result: no configure:33492: checking for cURL in default path configure:33497: result: found in /usr configure:33515: checking for cURL 7.10.5 or greater configure:33529: result: libcurl 7.15.5 configure:33538: checking for SSL support in libcurl configure:33542: result: yes configure:33560: checking how to run the C preprocessor configure:33678: result: gcc -E configure:33702: gcc -E conftest.c configure:33708: $? = 0 configure:33740: gcc -E conftest.c conftest.c:201:28: error: ac_nonexistent.h: No such file or directory configure:33746: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" ...
As you can see it shows "ac_nonexistent.h: No such file or directory" I installed both gcc and gcc-c++ libraries but it doesn't work.
I would like upgrading to apache2.X and PHP5.x I have some question about that, can I find details how can I make upgrade without any problem, in cpanel (aptche upgrade ) what modules can I check it befor upgrading I don't know what need to check ?? is my sites working well without problem after upgrading?
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?