Author

Topic: [3 BTC BOUNTY] SimpleCoin PHP nightmare (Read 2255 times)

hero member
Activity: 616
Merit: 522
April 24, 2013, 06:13:26 PM
#10
As it was said, you're missing memcached. You might miss either only PHP module, or both memcached server and PHP module. To install both on Ubuntu:

Code:
sudo apt-get install memcached
sudo apt-get install php5-memcached
sudo /etc/init.d/apache2 restart
legendary
Activity: 910
Merit: 1000
April 24, 2013, 03:35:02 PM
#9
install the php5_memcached and restart apache
newbie
Activity: 55
Merit: 0
July 04, 2012, 05:21:05 AM
#8
There is a package for memcached:

Code:
sudo apt-get install php5-memcached
full member
Activity: 126
Merit: 100
July 04, 2012, 12:35:41 AM
#7
Ok, sounds like we fixed the first error.

Now, it seems that simplecoin needs the memcache module, which is not installed on default. The best guide I could find to do that is here:

http://stevelove.org/2009/09/30/how-to-install-php-memcached-on-an-ubuntu-server/

Hopefully that works.
hero member
Activity: 672
Merit: 500
July 04, 2012, 12:23:52 AM
#6
Ok so I noticed in apache2.conf there was

Include sites-enabled
AND
Include /var/www

I commented out /var/www and restarted apache and the error is gone.

HOWEVER!
The page still wont display at all:
http://phr0stbyt3.com/index.php
Maybe you should post the errors from the error.log instead of letting everybody look at a blank page to guess what the error might be

Error in error.log is:
[error] [client xx.xx.xxx.xxx] [PHP Fatal error: Class 'Memcached' not found in /var/www/includes/requiredFunctions.php on line 57.

edit: until 30 minutes ago I didn't know where to look for errors.
full member
Activity: 126
Merit: 100
July 03, 2012, 07:30:56 PM
#5
First, undo the change to apache.conf.

Next, take out the space between "include" and the left parenthesis.
legendary
Activity: 947
Merit: 1042
Hamster ate my bitcoin
July 03, 2012, 05:35:39 PM
#4
undo changes to conf
use full path in the include
hero member
Activity: 576
Merit: 514
July 03, 2012, 05:32:31 PM
#3
Ok so I noticed in apache2.conf there was

Include sites-enabled
AND
Include /var/www

I commented out /var/www and restarted apache and the error is gone.

HOWEVER!
The page still wont display at all:
http://phr0stbyt3.com/index.php
Maybe you should post the errors from the error.log instead of letting everybody look at a blank page to guess what the error might be
hero member
Activity: 672
Merit: 500
July 03, 2012, 05:20:15 PM
#2
Ok so I noticed in apache2.conf there was

Include sites-enabled
AND
Include /var/www

I commented out /var/www and restarted apache and the error is gone.

HOWEVER!
The page still wont display at all:
http://phr0stbyt3.com/index.php
hero member
Activity: 672
Merit: 500
July 03, 2012, 05:08:14 PM
#1
So I have a ubuntu 12.04 vps running poolserverj flawlessly with LAMP installed.
I followed these instructions for installation of simplecoin listed on github:
Code:
Installation:
1. Extract files into web root directory
2. Create simplecoin database in you mysql instance
3. Run simplecoin.sql in your simplecoin database (This will be used for pushpool & simplcoin)
4. Edit includes/requiredFunctions.php and set the bitcoin & database login info
5. Edit all files in the cronjob folder, set $includesDirectory to the correct server path.
6. setup cronjobs on a staggered schedule. I recommend 10-30 minutes for most. I run payout twice daily.

I cloned simplecoin to /var/www and restarted apache.
After 4 days I am still getting the same error:
Code:
apache2: Syntax error on line 238 of /etc/apache2/apache2.conf: Syntax error on line 20 of /var/www/about.php: Could not open configuration file /etc/apache2/("includes/header.php");: No such file or directory

It is trying to look in /etc/apache2/("includes/header.php"); ... wtf is going on?
Please help before I pull my hair out.
3BTC Bounty

About.php:
Code:
$pageTitle "- About";
include (
"includes/header.php");
?>


About Bitcoins




About This Site

This site is run by completely opensource software.

Hosted on a Xen Virtual Machine

Running Ubuntu

PHP pages served by Apache webserver

Official Bitcoin server

Pushpool Bitcoin pool

Simplecoin front-end


include("includes/footer.php"); ?>
Jump to: