473,396 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Php V Apache

Hi,

I am total newbie when it comes to Php and Apache so i apologise if this doesnt make sense but i will do my best from what someone has told me:

Okay, I am hosting my website from home using Apache, I am trying to use PHP for my gallery and have installed Imagemagick to do so.

but now when i am trying to view my pictures i get a square box with NO GD in it. What is it that i am doing wrong? I am running windows XP Home.

Off another post i saw this help board so i created a test.php and copied and pasted the information below into it.:

So the first thing we need to do is try and find and run the 'convert' command.

<?
header('Content-Type: text/plain');
system("exec 2>&1; type convert");
system("exec 2>&1; convert -version");
system("exec 2>&1; convert -list type");
?>


Upload the above PHP and look at it via the web.
This will run three commands to see what is present. If convert on the command PATH, and if so where is it. What version is it. And what font does IM thing it has access to.

If you only see errors, then the "convert" is not on the command line path, and your ISP provider did NOT initialise the web server PATH properly.

If this is the case you will need to find out exactly where it is located and use something like this for you PHP scripts, which makes your script less portable.


<?
$im_path="C:\Program Files\ImageMagick-6.3.2-Q16" (Not sure if this is correct, it is where my Convert.exe is placed)"
header('Content-Type: text/plain');
system("exec 2>&1; $im_path/convert -version");
system("exec 2>&1; $im_path/convert -list type");
?>




If you get "ldd" library errors, the LD_LIBRARY_PATH is wrong, and the ISP has definitely fallen down on the job, and you need to report the error, and have them fix the web servers LD_LIBRARY_PATH environment variable.


The message i got back from the first script was:

'exec' is not recognized as an internal or external command, operable program or batch file. 'exec' is not recognized as an internal or external command, operable program or batch file. 'exec' is not recognized as an internal or external command, operable program or batch file.


and the message from the 2nd script was:

&1; $im_path/convert -version"); system("exec 2>&1; $im_path/convert -list type"); ?>

Once i told the person i was using running it on Windows XP using Apache he replied:

Than you need to do more work on the PHP installation.
Most likely you will have not exist APIs in the PHP, so you will have to turn on
the PHP exec function.


I have no idea what he means, can someone please help this newbie?
Mar 23 '07 #1
5 2765
Motoma
3,237 Expert 2GB
Perhaps you should post your question on the board you originally found the messages on.
Mar 27 '07 #2
Not sure if this note makes it any easier but:

Hi Anyone,

I am looking for help with PHP and ImageMagick.

I have loaded up some pictures onto my website, but it is taking a long time for them to open, hence why someone advised me to use PHP. However when i have done the:
Code:
<?php

phpinfo();

?>


That brought up alot of information which i dont think i need to detail, apart from the part that says:

Quote:
Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
.

I am guessing that maybe it is something to do with my configuration of my .ini file. Someone also advised me to download Xampp, which i have done, now i have got all these .ini files, and not sure which one i am editing or where i am editing it.
C:\Program Files\PHP
E:\Apache
E:\Apache\Apache2\htdocs\Apache XAMPP\xampp\php
E:\Apache\Apache2\htdocs\Apache XAMPP\xampp\php
E:\Apache\Apache2\htdocs\Apache XAMPP\xampp\php
E:\Apache\Apache2\htdocs\Apache XAMPP\xampp\apache\bin
E:\Apache\Apache2\htdocs\Apache XAMPP\xampp\php\php4
E:\Apache\Apache2\htdocs\Apache XAMPP\xampp\php\php4
E:\Apache\Apache2\htdocs\Apache XAMPP\xampp\php\php4


I have even set up a test.php file and loaded it up and i get the image box with "NO GD" in it.

thanks
Gary
Apr 16 '07 #3
Motoma
3,237 Expert 2GB
Perhaps it is an issue with your code?
Apr 17 '07 #4
Perhaps it is an issue with your code?

So do you have any idea of what i should be putting it my code to make this work????
Apr 17 '07 #5
This issue has now been sorted, thanks to all that tried to help
May 2 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mike | last post by:
I am sure that I am making a simple boneheaded mistake and I would appreciate your help in spotting in. I have just installed apache_2.0.53-win32-x86-no_ssl.exe php-5.0.3-Win32.zip...
5
by: Grant Collins | last post by:
Hi I am writing a web based application as part of a small project that I am undertaking using servlets beans and jsp. I already have one servlet - bean - jsp page working and I have written...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
19
by: Alex Madon | last post by:
Hello, I am testing a web application (using the DBX PHP function to call a Postgresql backend). I have 375Mb RAM on my test home box. I ran ab (apache benchmark) to test the behaviour of the...
0
by: zhenya.tkachenko | last post by:
Hi! Have a problem with mod_auth_mysql. Compilation and installation of module done ok: # /usr/local/apache/bin/apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz...
6
by: MaiyaHolliday | last post by:
Hello, I've recently installed apache on a new computer, and cannot figure out why my site will not process any includes. (it was working on my old one) There are no errors on the page such as...
3
by: amanjsingh | last post by:
Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke...
0
rsrinivasan
by: rsrinivasan | last post by:
Hi All, When i run my JSP program, ihave the following exception. How i solve this problem? HTTP Status 500 - ...
6
by: josequinonesii | last post by:
I've searched, I've read, I've tested and re-read numerous post but to no avail yet... Quite simply, the settings I've applied to my httpd.conf, httpd-vhost.conf and my hosts files simply does not...
2
by: ramprakashjava | last post by:
sorry still that error exist , how to avoid this deprecated method overriding in my netbeans ! In Bundled tomcat log it shows Dec 30, 2009 9:03:45 PM...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.