Jump to content

wallitin

Member
  • Posts

    6
  • Joined

  • Last visited

wallitin's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. I will defer to your expertise and only use cubecart with professional server management services. Good to know. Thank you for your advice.
  2. In ini.inc.php line 171: // Include a custom ini file, if it exists if (file_exists(CC_ROOT_DIR.'/ini-custom.inc.php')) { include CC_ROOT_DIR.'/ini-custom.inc.php'; } This is executed before classes/session.class.php. Would it help to have something similar in session.class.php? session.gc_probability could be set back to 0;
  3. It would be nice to have a list of php.ini settings for cubecart. I could change the settings in /etc/php5/apache2/php.ini and disable ini_set(); I could change session.gc_probability depending on the server I'm hosting my web site on.
  4. I get an intermittent 'unable to access /var/lib/php5 - permission denied'. It's genererated randomly when session_start() is called from classes/session.class.php line 600. I'm running Ubuntu 14.04. The directory /var/lib/php5 has permissions drwx-wx-wt root root. Apache's group is www-data. From a post on: http://stackoverflow.com/questions/2904862/issues-with-php-5-3-and-sessions-folder "The reason it happens sporadically is that the error occurs when the session garbage collector is run, which I think by default has a 1% chance of running per session initialization. Essentially, the garbage collection is set up to be done by cron jobs on some systems (i.e. Ubuntu/Debian). Some php ini executables like php-cli also try to do garbage collection and that results in the error you got." Since garbage collection is already being handled by a cron job on Ubuntu, the solution is to set session.gc_probability to 0 in /etc/php5/apacha2/php.ini and restart apache2. But ... In classes/session.class.php on line 79 session.gc_probability is set to 15 which would defeat setting it to 0 in /etc/php5/apache2/php.ini. Changing the permissions on the /var/lib/php5 would be a security risk. What is the solution?
  5. I downloaded CC6 beta3 and did a clean install including wiping out the database before I started. The installation went off without a hitch. Well done!
  6. I installed CC6 beta2 on why laptop running Ubuntu 14.04 for testing. The CC6 beta2 installation kept failing. My /var/log/apache2/error.log file showed an error: access denied for user 'www-data'@'localhost' (using password NO) in /var/www/html/classes/db/mysqli.class.php Although, I found the problem to be in /var/www/html/setup/setup.install.php on line 90: $connect = mysql_connect( ... ); It's only a test to see if a connection could be made. I commented it out and added $connect = 1. I also commented out a couple of ifs and an else and let everything inbetween run. CubeCart installed. I see in the file /classes/autoloader.class.php about line 117 it tests to see if the function mysqli_connect() exists. Could this be used in setup.install.php?
×
×
  • Create New...