Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

don't see any pages anymore???


Go to End


2 Posts   1960 Views

Avatar
chilleze

Community Member, 5 Posts

13 December 2009 at 9:21pm

Hi there,
got a problem with my site, nearly finished it and suddenly when i go to my site, i get this error:

Not Found
The requested URL /sapphire/main.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Here is the htaccess file:

AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml
AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml

### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>

suPHP_ConfigPath /home/user/public_html/

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} !(\.gif$)|(\.jpg$)|(\.png$)|(\.css$)|(\.js$)

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ###

Should the htaccess be changed?

I searched the forum but did not come up with a result, help be much appreciated.

cheers

Avatar
chilleze

Community Member, 5 Posts

14 December 2009 at 6:07am

Just got mail from my host (Lunarpages), and i'm really lost here, find mail below. What can i do now as my site is about 99% finish, anybody?

A technician responded to your ticket with:

Hello,

On our recent monitoring of the shared server where your account is currently on, we have noticed that your /home/user/public_html/sapphire/main.php script was causing severe issues, as you can see below

user 20 0 32332 18m 5168 R 22.8 0.5 0:00.44 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 18 0 31748 17m 5128 R 21.3 0.4 0:00.41 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 19 0 29672 15m 4868 R 17.1 0.4 0:00.33 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 18 0 29704 15m 4904 D 16.6 0.4 0:00.32 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 19 0 32668 18m 5128 R 15.6 0.5 0:00.44 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 18 0 37312 23m 5500 R 14.0 0.6 0:00.62 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 19 0 26968 12m 4796 R 12.4 0.3 0:00.24 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 16 0 37776 23m 5532 S 11.4 0.6 0:00.61 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 20 0 26160 12m 4784 R 11.4 0.3 0:00.22 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 19 0 26132 12m 4784 R 10.9 0.3 0:00.21 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 18 0 36044 23m 5344 R 10.4 0.6 0:00.61 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 16 0 37628 23m 5540 S 10.4 0.6 0:00.63 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 20 0 29232 15m 4856 R 10.4 0.4 0:00.31 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 20 0 25684 11m 4768 R 10.4 0.3 0:00.20 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 17 0 34348 21m 5332 R 10.4 0.5 0:00.53 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 17 0 33724 20m 5332 R 10.4 0.5 0:00.53 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 20 0 28628 14m 4800 R 10.4 0.4 0:00.32 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 17 0 24764 11m 4776 R 10.4 0.3 0:00.20 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 19 0 34108 20m 5328 R 9.9 0.5 0:00.49 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 17 0 24792 11m 4792 R 9.9 0.3 0:00.19 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 20 0 28696 14m 4800 R 7.3 0.4 0:00.31 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 19 0 29216 15m 4912 D 7.3 0.4 0:00.34 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 22 0 28956 15m 4904 R 7.3 0.4 0:00.33 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 18 0 23532 9720 4736 R 7.3 0.2 0:00.14 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 19 0 29484 15m 4904 D 6.7 0.4 0:00.34 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 19 0 29280 15m 4904 D 6.7 0.4 0:00.34 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 16 0 37264 23m 5532 S 5.7 0.6 0:00.61 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 19 0 29948 15m 4904 R 5.7 0.4 0:00.34 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 16 0 37304 23m 5536 S 5.2 0.6 0:00.61 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 16 0 37100 23m 5536 S 5.2 0.6 0:00.62 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 19 0 28964 15m 4904 D 5.2 0.4 0:00.33 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
user 16 0 37100 23m 5536 S 4.7 0.6 0:00.63 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php

user User.net
CPU Usage 6.17%
Memory Usage 0.66%
MySQL Usage 0.6%
Top Process %CPU 34.0 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php
Top Process %CPU 30.0 /usr/local/php5/bin/php-cgi /home/user/public_html/sapphire/main.php

Since this was destabilizing our whole server, we were forced to rename your script to /home/user/public_html/sapphire/main.php.disabled.contact.support in order for you to review your coding and avoid such issues from happening.

Please note that if this incident is found to be happening again, we will have no other choice but to disable your script by means of chmod 000 and chown root:root until you can provide us with the actions you are going to take in order to solve this issue.

We apologize for any inconvenience this might have caused.

Please advise how would you like to continue.