Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had configured php, mysql , apache with old versions of gd and zlib. Phpinfo showed the earlier versions indicating that the installation was successful. Now for some professional reasons I upgraded libxml to libxml2, gd to 2.0.3, and installed zlib, jpegsrc and png. configured php with ./configure command did make, make clean and make install. All went smoothly. Now when I checked phpinfo page it still seem to show the old values. I also get the error. "imagecreatetruecolor(): requires GD 2.0...." when try to execute a line graph code.
What could be the error???? Its so crazy...
Can somebody pls pls pls shed some light and suggestion into it. Have tried all possible permutations and combinations. Pls HELLLPPPPPP!!!
The GD 2.0 error is due to you not have the gdlib-dev packages installed,you will need to update your packages to include the -dev packages.
I also assume you restarted apache once updating the packages?,otherwise it wont reflect correctly.
Yes I stopped and restarted but no different result. Ohhh I didnt know abt the dev packages for glib. But should I be doing that for libxml2 as well?? Cause even that its showing the old version. And the glib-dev packages are rpms or tar files? And what is the latest version??
Thx.
Last edited by rajnair0278; 03-16-2006 at 05:07 AM.
I always install the -dev packages as well,just to prevent any problems.What distro are you using as you should be able to install them easily.I am not sure what the latest version is of the glib-dev packages,but install what you have,you can update them once you have everything working.
Red Hat Linux 9. I tried installing libgd-devel-2.0.20-2.i386.rpm buit its asking for libgd-devel-2.0.20.i386.rpm. Haveing a hard time acquiring one. My whole day has been wasted in updating and getting this damn server running!!!!!
These should be avalable at a rpm repository like http://dag.wieers.com/home-made/apt/ or dries.ulyssis.org/rpm/
Try using a package manager like yum or apt,setup apt on the server yo are installing,and all you type at the command prompt is "apt-get install lbgd-dev" and it will install everything for you.
Or go to http://rpmfind.net or http://atrpms.net/dist/rh9/, I have looked at these websites and the rpm for gd is gd-1.8.4-11.i386.rpm?. I would suggest you configure apt or yum and let the Operating system update itself on its own.
Thx alot shawn. One more thing. After i download the gd devel-lib do i have to re configure, make and make install php again with mysql, apache, gd, zlib, libxml2 etc or only gd library will do. Or will php automatically detect it. So far i have had a torrid time 'making' php...so wondering if it can be avoided. Everythng else is working pretty well after I just formatted the machine. Thx.
Hi shawn installed the gd library from the path your mentioned earlier. phpinfo didnt recognize it. So re-configured, make and make install, php. But unfortunately phpinfo still shows the old value. What is more surprising is for php I downloaded 5.0 tar file from php.net and installed it. It showed the php version as 4.2.2. I uninstalled it and then downloaded 5.1 tar from php.net. I installed it once again, configured, make and make install php, its still showing 4.2.2. WHat is wrong with my PC?? Is it cause there are two versions currently on my Linux system?? Am not sure. How can I check?? I have alot of line graph programs to be executed and I need gd lib 2.0. Just cant get this server up and running once and for all.??? Please help guys!!!!!!
Hi
I think we are going about this the wrong way,firstly
1. What OS are you running,with version number and Kernel?
2. Lets get the OS to install and update the System and see if that works,before we upgrade the PHP and GD to the latest versions
3. Lets see what happens after we get the system up from the default sources.
Hi shawn, the info you needed : The O.S version is Red Hat Linux 9. Apache 2, Php 5, Mysql 5.0. How do i check the version of kernel??
I checked once again through my system and I seen all the files of php5 that I have installed. But also I see some files like libphp4.so and am also there must several files of version4 somewhere on the system, that I have not installed (I dont know where they came from!!!!). There are also files like libphp5. Now I have one important question. What makes my webserver determine that the verison installed is 4, 5 or whatever??? Probably i may just need to tell the webserver to locate that particular file (php5) from a particular folder, by making some changes in the configuration files like httpd.conf, php.ini or some other ones etc etc.
Do lemme know whatever info you need?? I want to get it resolved no matter what. There is no immediate need for this server to be up and running so have some buffer and time for the time being. Thx for contributing.
Ok..Great
You can check the kernel version by typing "uname -a" at the command prompt
Lets do the following...
1. Reconfigure the Server so it is a clean server,so install it with Apache/PHP/MYSQL etc
2. Then using a package manager,like yum or apt install the packages you require,(sorry not sure if RH9 has a built in package manager) if you can maybe use Fedora Core 4.
3. Once these are installed and you have what you want up and running,then we can procede to upgrade.( I assume it is a test server if you are using MySQL 5??)
4. Then we can take it from there.( I assume this is a LAMP installation??,Linux,Apache,MySQL,PHP) go to www.lamphowto.com..very good website
Thx for providing your email address. That was very kind of you. The kernel version is 2.4.20-8. Shawn no offence. Is it not possible to do some troubleshooting steps on the basis of things you require and see if we can do something. Because one thing I can assure you that the installations are perfectly clean. Step-by-step installation as mentioned in www.lamphowto.com. At present there are several client sites and data on this server. Moving them again and re-configuring is slightly difficult if not impossible. I hope you understand what am trying to say. I will add you to my msn messenger once I create it. In the meantime i have a yahoo address, rajnair0278@yahoo.com. Add me if you have one. Thx again
I see you are having MySQL problems with PhpMyAdmin,I think this might be due to MySQL 5,remember it is a test version still.
Ok I will have a look at the PHP and GD installation and see what i can come up with
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.