Courier Mail Server Forum Index Courier Mail Server
www.courierms.ru
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PHP выдаёт пустые страницы

 
Post new topic   Reply to topic    Courier Mail Server Forum Index -> Courier Mail Server 3.xx
View previous topic :: View next topic  
Author Message
Линда Кайе
Newbie
Newbie


Joined: 10 Jun 2010
Posts: 5
Location: Лингрин

PostPosted: 03 Mar 2014 3:39 (Mon)    Post subject: PHP выдаёт пустые страницы Reply with quote

Поставила PHP 5.3.3, указала путь к екзешнику (php-cgi.exe), даже проверила, как он сам по себе работает - нормально. Открываю в броузере php файл с сайта - пустая страница. CourierMS просто ничего не возвращает.

Судя по всему, та же проблема с Perl и файлом 404. CourierMS 3.02.

Что я делаю не так?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
NAMOR
CMS Developer


Joined: 15 Oct 2005
Posts: 1079

PostPosted: 03 Mar 2014 14:08 (Mon)    Post subject: Reply with quote

В php.ini должно быть так:
cgi.force_redirect = 0
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Линда Кайе
Newbie
Newbie


Joined: 10 Jun 2010
Posts: 5
Location: Лингрин

PostPosted: 03 Mar 2014 14:42 (Mon)    Post subject: Reply with quote

Спасибо!

// А можно оффтопиком про 404? Что в поле ввода его "адреса" должно быть? Относительный URL? Полное имя файла на локальной файловой системе? Или что? У меня пустая страница, и всё тут.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
NAMOR
CMS Developer


Joined: 15 Oct 2005
Posts: 1079

PostPosted: 03 Mar 2014 15:33 (Mon)    Post subject: Reply with quote

Справка CMS wrote:
Адрес страницы ошибки 404: если запрошенный клиентом ресурс не найден, то клиенту, помимо ошибки 404, возвращается страница с указанным адресом.
Примеры адресов: /404.html, /cgi/error.php?code=404.

Соответственно, для этих примеров в корневой папке сайта должен находиться файл 404.html или cgi\error.php.
У меня работает. Отображаются и html- и php-страницы ошибки.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Линда Кайе
Newbie
Newbie


Joined: 10 Jun 2010
Posts: 5
Location: Лингрин

PostPosted: 03 Mar 2014 16:12 (Mon)    Post subject: Reply with quote

Опечатка в адресе =_= Значит всё правильно делала, но буковку лишнюю оставила =_=

Спасибо!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Courier Mail Server Forum Index -> Courier Mail Server 3.xx All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group