Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 20:04:34

Author Topic: php script  (Read 6399 times)

0 Members and 1 Guest are viewing this topic.

Offline Xopop

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
php script
« on: 2013-04-16, 15:38:50 »
I have a problem

I want to run a cron job through the command /usr/bin/curl http://www.url.com/dir/file.php , but after a while cron job stops working. When I wanted to run a php file via the link after 60 seconds throws error 504 Server is nginx and how to increase the time of php script.

ps. sorry for the bad English, and if there's a subject I'm sorry but I have not found
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php script
« Reply #1 on: 2013-04-16, 15:53:32 »
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Xopop

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: php script
« Reply #2 on: 2013-04-16, 16:13:17 »
Sorry for the incomplete information. The point is that you want to do some php script that has a running time longer than 180 seconds my browser constantly throws error

504 Gateway Time-out
nginx/1.3.15.

Would you please help me and tell which is the parameter in question. I installed the latest version Kloko everything works only with the execution of this php script is the problem.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Xopop

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: php script
« Reply #3 on: 2013-04-16, 16:45:26 »
My confing is

A. Kloxo-MR: 6.5.0.f-2013031809

B. OS: CentOS release 5.9 (Final) i686

C. Apps:
   1. MySQL: mysql-5.0.95-5.el5_9
   2. PHP: php53u-5.3.23-1.ius.el5
   3. Httpd: httpd-2.2.23-3.el5
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.3.15-2.el5
   6. Qmail: qmail-toaster-1.03-1.3.22.mr.el5
   7. Dns: bind-9.9.2-3.P2.el5

D. Php-type (for Httpd/proxy):

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:           928        580        348          0          0          0
   -/+ buffers/cache:        580        348
   Swap:            0          0          0

I do not know which parameter to change to be executed by the end of the crypt that does not eject

504 Gateway Time-out
nginx/1.3.15
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php script
« Reply #4 on: 2013-04-16, 18:37:40 »
Try first with apache (in 'switch applications') and mod_php_ruid2 (in 'web server configs'). Have the same issue or not?!.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Xopop

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: php script
« Reply #5 on: 2013-04-16, 23:51:23 »
Apache is working on. but as I start I wanted to WordPress ngins if you can? apache use to much resurse (ram and cpu) and page load it`s to long...
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline prandah

  • Senior Member
  • *
  • Posts: 344
  • Karma: +0/-0
    • View Profile
    • https://www.bowo.name
Re: php script
« Reply #6 on: 2013-04-17, 17:54:53 »
If you will use nginx as proxy
You can choose in webserver
But, if you still got 504 bad gateway try run
 sh /script/fixweb; sh /script/fix-chownchmod
Then tru to restart service sh /script/restart-services
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Xopop

  • Junior Member
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: php script
« Reply #7 on: 2013-04-18, 20:27:58 »
Quote from: "goblog"
If you will use nginx as proxy
You can choose in webserver
But, if you still got 504 bad gateway try run
 sh /script/fixweb; sh /script/fix-chownchmod
Then tru to restart service sh /script/restart-services

still not working 504 error: (
Apache works fine but I have a problem with Apache about the slow load nginx is much faster. If you can give me a suggestion which parameters to change because I measured the time after 60 seconds throws 504 error.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.044 seconds with 18 queries.

web stats analysis