MY hosting comp. is saying this to me
"index.php is running as a process every time someone accesses the page"
and that this is causing my drupal instalation to crash server. its shared but they say it a script problem. If i understand correctly this is supposed to happen everytime drupal shows page as index right?! Anyway my account is being suspended and site is offline and it will be like this until i fix "the script" as they say. I asked them do i need dedicated server and they say no, that it must be some script problem as that its waisting alot of resources that it shouldnt use.

"A php script shouldn't even take up 1% of the CPU if coded correctl" they say
"index.php is self-replicating itself as a proces"
"This is very unusual behavior for a php script that is coded correctly"

they say to me. So i dont know what to do. Where to search for errors, when i access my drupal instalation it works fine. I run devel module and pages go rather quickly i mean appear without much problem. in few seconds. But seems like when more ppl are using it then server gets hung up. Any ideas, where to start, what to do, who to hire?

Using drupal 6.8
-CCK, filefield, imagefield
-comments
-image, imagecache, imageAPI GD2
-views, FCK, taxonomy ofcourse and pathauto and token
-form filter and fivestar also and custom theme (could custom theme with preprocess and stuff like this break stuff?)

thanx on any help
Marry xmas

Comments

mm167’s picture

1. index.php is the drupal core script to handle any income html page request. Normally it will NOT run for a long time. If it runs for a long time, check your system LOG.

2. if the hosting company is so un-friendly to help you, FORGET it. Find another host.

If the host can show u the system log, u may see clearly what's wrong in your script.

For trouble shooting, u need helps from your host. Host is not just bandwidth + disk space.

DONT waste your time with this host. Even it is FREE!!

markosef’s picture

Well they say they did everything they could. Like they told me everything they can, but it so little. I got this from them. This doesnt mean much to me. Well anything. Its not a dedicated hosting, i have reseller account where i can setup lots of bandwith and space, but still get that lousy 25% of resources. But its rather well respected and more expesnive hosting firms. I just talked with my colegue about their support, its not like talking to a wall but seems like its talking to computer rather then support. I ask for some logs, some data, anything that i could use and i got only this. And saying my "script" is bad. Maybe it is...

mysite 4064 5.3 0.5 47400 23660 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4082 4.6 0.5 46996 23272 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4084 5.0 0.4 43160 19944 ? RN 14:46 0:00 | \_ [php]
mysite 4097 5.2 0.5 45864 22116 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4120 4.0 0.4 43012 19036 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4180 6.0 0.3 37952 14024 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4198 3.0 0.1 31404 5696 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4128 4.7 0.4 42192 18148 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4130 3.7 0.3 39796 15828 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4135 3.7 0.3 39796 15824 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4148 6.0 0.4 41412 17492 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4152 5.0 0.3 39796 15960 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4192 4.0 0.1 32604 6900 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4156 5.3 0.4 40892 17016 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4163 5.0 0.3 39796 15792 ? RN 14:46 0:00 | \_ /usr/bin/php /home/mysite/public_html/index.php
mysite 4053 5.8 0.6 51024 27392 ? RN 14:46 0:00 \_ /usr/bin/php /home/mysite/public_html/index.php

mm167’s picture

if u are a reseller, or wanna to be a reseller, u better get a more helpful host as your biz partner.

markosef’s picture

No i am not reseller. just took reseller account for my clients...

Blueeeeie’s picture

Hi,

Just to check, did you enable page caching? Also, if your hoster's connection between the web and database server is not optimized well, it can cause performance problems too.

You should consider switching to more Drupal friendly hosters.

http://drupaldiy.com/selecting-right-webhost-drupal

---
www.drupaldiy.com - Showcase your Drupal site