CodeIgniter Forums
Please help me. No output at all. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Please help me. No output at all. (/showthread.php?tid=49532)



Please help me. No output at all. - El Forum - 02-23-2012

[eluser]Unknown[/eluser]
It works well in my own environment. Bug when I copy the whole project to another server, No output at all. And No error message at all, although I have turned on the error reporting.

I doubt this server is ok. so I add some code with wrong format in index.php, it will output an error message. and if I remove those lines, Nothing output again.

that environment is:
apache
php 5.3.2
apache Apache/2.2.15 (Unix)

please help me.


Please help me. No output at all. - El Forum - 02-24-2012

[eluser]Chathuranga Tennakoon[/eluser]
the information you have provided is not enough to give an exact solution for the problem you are facing. but anyway i will suggest some general tips which might help you to figure out where the problem lives.

1. first check whether your Apache server is working without any issues.

2. then check whether the required privileges have been granted for your project directory(including sub directories). sometimes you may have granted all (read, write and execute )privileges only for root.


3. then check whether your database server is running and database that you are trying to connect is available. (with provided user name and password)


if it doest work pleas \e let me know with more details with your problem.




Please help me. No output at all. - El Forum - 02-24-2012

[eluser]Unknown[/eluser]
[quote author="Chathuranga Tennakoon" date="1330068345"]the information you have provided is not enough to give an exact solution for the problem you are facing. but anyway i will suggest some general tips which might help you to figure out where the problem lives.

1. first check whether your Apache server is working without any issues.

2. then check whether the required privileges have been granted for your project directory(including sub directories). sometimes you may have granted all (read, write and execute )privileges only for root.


3. then check whether your database server is running and database that you are trying to connect is available. (with provided user name and password)


if it doest work pleas \e let me know with more details with your problem.

[/quote]

Thank you for your reply~~
1. My apache works well, and so does php. I can visit other php files in this server successfully.
2. I checked all the directory, as "drwxrwxr-x admin admin". and my apache is runing under user admin.
3. I am sure the database server is running. I can connect to the mysql server from this server directly.

I doubt if any special module is needed by apache? The apache in the server that works well(Server A) is different from the server that returns no output(Server B).

Loaded Modules(server A):
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
auth_basic_module (shared)
auth_digest_module (shared)
authn_file_module (shared)
authn_alias_module (shared)
authn_anon_module (shared)
authn_dbm_module (shared)
authn_default_module (shared)
authz_host_module (shared)
authz_user_module (shared)
authz_owner_module (shared)
authz_groupfile_module (shared)
authz_dbm_module (shared)
authz_default_module (shared)
ldap_module (shared)
authnz_ldap_module (shared)
include_module (shared)
log_config_module (shared)
logio_module (shared)
env_module (shared)
ext_filter_module (shared)
mime_magic_module (shared)
expires_module (shared)
deflate_module (shared)
headers_module (shared)
usertrack_module (shared)
setenvif_module (shared)
mime_module (shared)
dav_module (shared)
status_module (shared)
autoindex_module (shared)
info_module (shared)
dav_fs_module (shared)
vhost_alias_module (shared)
negotiation_module (shared)
dir_module (shared)
actions_module (shared)
speling_module (shared)
userdir_module (shared)
alias_module (shared)
rewrite_module (shared)
proxy_module (shared)
proxy_balancer_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
proxy_connect_module (shared)
cache_module (shared)
suexec_module (shared)
disk_cache_module (shared)
file_cache_module (shared)
mem_cache_module (shared)
cgi_module (shared)
version_module (shared)
php5_module (shared)
proxy_ajp_module (shared)

Loaded Modules(server B):
core_module (static)
authz_host_module (static)
deflate_module (static)
log_config_module (static)
env_module (static)
expires_module (static)
headers_module (static)
setenvif_module (static)
proxy_module (static)
proxy_http_module (static)
proxy_balancer_module (static)
mpm_worker_module (static)
http_module (static)
mime_module (static)
asis_module (static)
dir_module (static)
alias_module (static)
rewrite_module (static)
so_module (static)
ssl_module (shared)
cgid_module (shared)


Please help me. No output at all. - El Forum - 02-24-2012

[eluser]InsiteFX[/eluser]
Check for white space before the openning PHP tag

Do not use the closing PHP tag use a comment block instead.

Make sure you are not saving your files with the BOM!