Jump to content

KakkArlak

Members
  • Posts

    45
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

KakkArlak's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Have you had a look at your webserver configuration ? e.g. the "ErrorLog" line.. That specifies where the error log resides on your server...
  2. So, I finally had time to look at this again, and I think I found what the problem is... The font file in question, well, this whole website is running on an Ubuntu 9.10 desktop edition Apache 2.2 web server, with php 5.2.10 ... but the actual files for the website, resides on a mounted windows server 2003 share... If the files are local, on the machine, it works perfectly. here's the command I'm using to mount the filesystem : mount -t cifs -o username=xxx,password=xxx,netbiosname=xxx,uid=www-data,gid=www-data,ip=192.168.0.2,rw,lfs,dir_mode=0777,file_mode=0777 //192.168.0.2/websites /mnt/websites PS. 777 isn't an issue, seeing that it's a local development server. Any ideas why it can't read the font file on that ? ( It used to work on an old CentOs server I had, but the hard drive failed and I set up a new Ubuntu one. )
  3. Yes, I put on a test page, that thing, with a static path to the font file. It's there, it's "owned" by www-data (webserver) and the file is on a mounted samba share, which is mounted with 0777 permissions.
  4. So, I "had" a server running IIS 6 and php 5.0.3 (CGI) AND working fine... For some other reason, I installed the .NET 3.5 framework, restarted the server (Windows Server 2003 SBS), and then php through IIS stopped working. No settings changed... but loading a php page just times out. Other ASP sites on the same IIS still works fine. On the broken php sites, i can still access .htm, .html or .asp and .aspx files... It's just the .php ones that are broken. A simple php file with <?php echo time(); ?> on it, gives the following: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. No other configuration changed, there's a php.ini file in the doc root of the website, that didn't change at all. PHP version is still the same. PHP works on Apache on the same server... Also as CGI Any idea whats wrong !?!? How do I fix it !?!? Thanks!
  5. Hi, thanks for all the help, but I think I fixed it. Yesterday, I did the same setup on my home pc ( also windows ). .. and after 5min, everything just worked. After a fresh installation. So something on the server here, must be conflicting and causing that problem? So in the end.. I had the idea of running php as CGI, instead of as a module. ( installed the non-safe threaded version at home ) The non-safe on didn't wanna work as a module on the work's server, don't know why, so I'm running php as CGI now, and everything works fine! Except ofcourse, php_value doesn't work... but I'm doing that in a prepend file now. Thanks!
  6. Even though the same code works on other servers? And on this same server, ONE call to that file also works. It's only when it's 2 or more...
  7. Ok, so I have already simplified the code long ago, to a few lines. // in prepend file ini_set('include_path',ini_get('include_path').':\websites\optimalenergy\website'); // output = .;C:\php5\pear;D:\websites\optimalenergy\website // in "test.php" error_reporting(E_ALL); echo ini_get('include_path');echo '<br><br>'; if (isset($_GET['one'])) { echo '<img src="/library/classes/3rdparty/phpthumb/phpThumb.php?src=/media/image/gallery/pack2.jpg&w=300&h=100" />'; } elseif (isset($_GET['two'])) { echo '<img src="/library/classes/3rdparty/phpthumb/phpThumb.php?src=/media/image/gallery/pack1.jpg&w=300&h=100" />'; echo '<img src="/library/classes/3rdparty/phpthumb/phpThumb.php?src=/media/image/gallery/pack2.jpg&w=300&h=100" />'; } If I go ?one , the above works. ( 1 image call to phpthumb ) ... but if I use ?two, it "hangs" ! And, I most certainly believe that phpthumb isn't the problem, because that's being used by us on probably 10 other servers, windows and linux, and there's no problems with that there. So ya, if I remove the line in the prepend file, phpthumb works fine! But then obviously, all the includes on the site doesn't work, because there's no include path, and that's the way it was built. (bad I know, but it was built long ago. Probably +/- 5-6 sites ) EDIT: I think it's a PHP problem, because if I remove phpthumb and do straight image calls, then it works with an include path set. But, on the site, e.g. ajax calls to php files, if there's more than one, it fails! Look at how www.andbeyondafrica.com loads, and you'll see all the requests. Look at an example "real" page loading... It's a gallery page, so there's about 9-12 images loading... or trying to. And then after them some other normal images fail. (PIC attached) [attachment deleted by admin]
  8. Thanks! Yes, I do have the apache php module loaded.. I have tried putting ini_set in an auto_prepend_file .. and it had the same effect. The server doesn't really crash (as in the apache2 service stops), all it does is, any request to apache "hangs" and I have to restart it to get it to work again. I also can't remove IIS on there, because the server is currently being used in a production environment. ( I moved all the sites that were on apache to a linux server though ). Also, can't have 5.3x, because the whole point of getting apache to work on this windows machine, is because I need to run an older php version for some legacy websites using deprecated functions. But, in the meantime, I'm gonna try clean up a bit. (Tomorrow morning only though, when no-one's at the office. GMT 2+ ) Thanks for the help.
  9. Thanks for the reply. I've tried php 5.1.6 and 5.2.6, and it does work on 5.2.10 on another ubuntu server. Only php extensions enabled is mysql and gd2 htaccess does work, although wherever I try to change the include path, it crashes. Wether it's in the Virtualhost, in htaccess, or through ini_set in php. Operating system is Windows SBS 2003. I have a live SBS 2003 machine as well, will test on that once I get to the office. I must admit, the Operating system is messed up. I was not the one who installed it originally. There's probably 10 php installations. Dunno which was installed and/or only extracted source.. I do know, that php 5.0.3 and apache 2.0.x was the last working versions. But I can't use 5.0.3 because it's too old for the Zend_Framework. Did you catch the part in my previous post, where I said it works if the include path isn't changed? and when I don't change it, the include path is ".;C:/php5/PEAR" ... yet, the php that I have running with apache at the moment is under C:/php .... Also, I don't particularely want to use another web server... I guess I could use the existing IIS on the machine, but I generally prefer apache. PS. The IIS shouldn't affect the apache, it hasn't before. They run on different IP addresses.
  10. So, what I did in the end was uninstall Apache 2.0.x I installed the latest Apache 2.2.x , and with it php 5.2.6 .. I noticed that, that wasn't even my issue. Because it still didn't work. I noticed that the "php_value include_path" was breaking my thing! I believe it's a php issue. Because when I changed php, that's when it broke in the first place. Here's the virtualhost : <VirtualHost 192.168.0.11:80> ServerAdmin tech@clickthinking.com ServerName optimalenergy.dev DocumentRoot d:\websites\optimalenergy\website DirectoryIndex index.php index.html default.php #php_value doc_root d:/websites/optimalenergy/website #php_value include_path d:\websites\optimalenergy\website\ php_flag allow_call_time_pass_reference On </VirtualHost> I tried the include path in the virtualhost, in a htaccess file, and in a auto_prepend_file ... none had any effect. I attached my php.ini file.... Any help appreciated! [attachment deleted by admin]
  11. ooooh! I shoulda thought about that. Because I already had problems with the mysql extension for php. I redownloaded a fresh copy of php 5.1.6 to get it to work properly! Will post back if I get some results when checking modules/extension.
  12. Meh, looks like I'm gonna have to re-install. I was wanting to avoid that.. Anyways, Thanks for the help !!
  13. See attached pic for example! The code on that page is : <img src="/phpthumb/phpThumb.php?src=/media/image/gallery/pack1.jpg&w=100&h=100" /> <img src="/phpthumb/phpThumb.php?src=/media/image/gallery/pack2.jpg&w=100&h=100" /> And that file definitely exists, because if I do only one of these, it works perfectly! [attachment deleted by admin]
  14. Thanks! No problems on another server, have tried that. ( Debian Linux vs this Windows one - Newer PHP vs this 5.1.6 ) Tried other browsers, same thing. Script's been working for 2+ years, works on other servers. ( currently on 10+ live servers ) Because of that, I'm convinced it's a server thing. Might not be apache, but anything on Windows SBS 2003. The server is a bit f'up. But redo'ing it isn't an option. The reason I'm trying to put a few sites on it, is because it's old sites that's using deprecated php functions, so I'm running 5.1.6 on it. On our main production/development web server, everything works fine, except the old stuff ofcourse, because it has php 5.2.10 on it.. Any ideas?
  15. Thanks for the speedy replies, will make a plan.! Any help on this by any chance? http://www.phpfreaks.com/forums/index.php/topic,301910.0.html
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.