installation on godaddy.com

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
kelley
Posts: 33
Joined: Thu 13. May 2004, 08:02

installation on godaddy.com

Post by kelley »

Hello all,

Well I took the plung and installed phpwcms on godaddy.com and got rid of magnolia CMS and my costly hosting firm.

Everything went pretty well with the install, I was able to get it to see the mysql server. Now http://www.wireless-living.net/index.html shows up along with index.php (blank as it should be) and login.php. But once I login it gives these errors.

Anyone know how I can fix them?

Warning: ini_set, get_current_user, get_defined_constants, get_include_path, php_ini_scanned_files, php_uname, phpcredits, phpinfo, restore_include_path, set_include_path, set_time_limit, version_compare, zend_version, getmyinode, getmypid, getmyuid, getmygid, getopt, getrusage, assert_options, assert, dl() has been disabled for security reasons in /var/chroot/home/content/k/e/l/kelleylaw/html/login.php on line 23

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/chroot/home/content/k/e/l/kelleylaw/html/login.php:23) in /var/chroot/home/content/k/e/l/kelleylaw/html/login.php on line 24

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/chroot/home/content/k/e/l/kelleylaw/html/login.php:23) in /var/chroot/home/content/k/e/l/kelleylaw/html/login.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/chroot/home/content/k/e/l/kelleylaw/html/login.php:23) in /var/chroot/home/content/k/e/l/kelleylaw/html/login.php on line 128


Thanks for the Help,

Kelley
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Hm, ini_set for security reasons? OK - only thing you can do is comment the lines like following in login.php and phpwcms.php

if(ini_get('register_globals')) ini_set('register_globals', '0');


There are some checks for ini_get() and then based on the given value I use ini_set() or set_time_limit().

All you have to do is check if function exists too like this:

Code: Select all

if(ini_get('register_globals') && function_exists('ini_set')) ini_set('register_globals', '0');
or/and

Code: Select all

if(ini_get('safe_mode') && function_exists('set_time_limit')) set_time_limit(0);
you only need to add the

Code: Select all

" && function_exists('ini_set')"
or

Code: Select all

" && function_exists('set_time_limit')"
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
Oliver Georgi
Site Admin
Posts: 9951
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Here is a file with all patched files:

http://www.phpwcms.de/support/patched_f ... 7-2004.zip

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
kelley
Posts: 33
Joined: Thu 13. May 2004, 08:02

Patches

Post by kelley »

Thanks,

That did the job. :-)
Post Reply