Troubleshooting
From Sohowiki
(Difference between revisions)
Line 18: | Line 18: | ||
?></pre> | ?></pre> | ||
+ | |||
+ | ==Website is blank until you reload and then it's fine== | ||
+ | Problem: session_auto_start is set to "off" in your php.ini | ||
+ | Solution: In your php.ini, set session_auto_start = on |
Revision as of 16:54, 18 May 2006
This is place for all miscellaneous tips and solutions gleamed from various customer inquiries and support incidents.
How do I find out my server hostname and IP Address?
Create a .php script that looks like this, upload it to your site, and pull it up in your browser.
<? # Get IP by global var or reverse dns lookup (if global var not set) if ( $_SERVER['SERVER_ADDR'] != "" ) { $my_ip_address = $_SERVER['SERVER_ADDR']; } elseif ( gethostbyname(php_uname(n)) != "" ) { $my_ip_address = gethostbyname(php_uname(n)); } echo "My hostname: [".php_uname(n)."]<br>"; echo "My IP address: [".$my_ip_address."]"; ?>
Website is blank until you reload and then it's fine
Problem: session_auto_start is set to "off" in your php.ini Solution: In your php.ini, set session_auto_start = on