Installing Concrete 5.3 with MAMP on OS X Leopard
Permalink
Previously I'd tried using the OS X tutorial on the Concrete5 site to install Concrete5 on OS X Leopard using MAMP Pro. But I couldn't get it to install.
With Concrete 5.3 and MAMP however, I'm starting to get further - at least I'm getting specific PHP errors which I'm hoping someone here will help me understand and fix them.
After giving the concrete directory inside MAMP read/write access (as described in the tutorial) the setup screen loads but with an error: "You must chmod 755 concrete/libraries/3rdparty/htmldiff.py and disable PHP safe mode."
I've checked the php.ini file at: MAMP/conf/php5/php.ini and it clearly states that PHP safe mode is off.
If I follow the tutorial exactly, which doesn't say to chmodd the file (in the tutorial screen shot you can see the yellow exclamation icon) I get the following error after hitting install:
"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4864 bytes) in /Applications/MAMP/htdocs/concrete/concrete/models/file_set.php on line 22"
Line 22 in the file_set.php file is:
public function getGlobal() {
$fs = new FileSet;
$fs->fsID = 0;
return $fs;
}
If I then start again (delete the concrete database and replace the concrete folder) and run chmod 755 on the htmldiff.py file, I get the following error after hitting install:
"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4864 bytes) in /Applications/MAMP/htdocs/concrete/concrete/helpers/concrete/file.php on line 147"
Line 147 in the file_set.php file is:
public function unSerializeUploadFileExtensions($types){
//split by semi-colon
$types = preg_split('{;}',$types,null,PREG_SPLIT_NO_EMPTY);
$types = preg_replace(self::REGEX_INVALID_EXTENSION_CHARS,'',$types);
return $types;
}
I've tried this 3 times (each time deleting the database and starting again) but the exact same errors occur. Has anyone managed to get concrete5 up and running under OS X Leopard using MAMP?
Any help would be much appreciated.
Cheers
With Concrete 5.3 and MAMP however, I'm starting to get further - at least I'm getting specific PHP errors which I'm hoping someone here will help me understand and fix them.
After giving the concrete directory inside MAMP read/write access (as described in the tutorial) the setup screen loads but with an error: "You must chmod 755 concrete/libraries/3rdparty/htmldiff.py and disable PHP safe mode."
I've checked the php.ini file at: MAMP/conf/php5/php.ini and it clearly states that PHP safe mode is off.
If I follow the tutorial exactly, which doesn't say to chmodd the file (in the tutorial screen shot you can see the yellow exclamation icon) I get the following error after hitting install:
"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4864 bytes) in /Applications/MAMP/htdocs/concrete/concrete/models/file_set.php on line 22"
Line 22 in the file_set.php file is:
public function getGlobal() {
$fs = new FileSet;
$fs->fsID = 0;
return $fs;
}
If I then start again (delete the concrete database and replace the concrete folder) and run chmod 755 on the htmldiff.py file, I get the following error after hitting install:
"Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4864 bytes) in /Applications/MAMP/htdocs/concrete/concrete/helpers/concrete/file.php on line 147"
Line 147 in the file_set.php file is:
public function unSerializeUploadFileExtensions($types){
//split by semi-colon
$types = preg_split('{;}',$types,null,PREG_SPLIT_NO_EMPTY);
$types = preg_replace(self::REGEX_INVALID_EXTENSION_CHARS,'',$types);
return $types;
}
I've tried this 3 times (each time deleting the database and starting again) but the exact same errors occur. Has anyone managed to get concrete5 up and running under OS X Leopard using MAMP?
Any help would be much appreciated.
Cheers
Have tried installing on a completely different leopard machine to see if it was something on my machine but the same thing happens - except I get the first error twice (line 22 of file_set.php) not the second one.
I've been using MAMP 1.7.2 on my MacBook Pro OS X 10.5.6.
And MAMP is my primarily test server for my Japanese translation, and they are all working fine.
I've attached my zip files containing PHP5 setting just in case.
php.ini is stored under /Application/MAMP/conf/php5/
*** If MAMP Pro Application is stored at the same location as MAMP free one.
I am not using MAMP pro. So I don't recommend to use my configuration file directly.
MAMP free version is working fine on Leopard
And MAMP is my primarily test server for my Japanese translation, and they are all working fine.
I've attached my zip files containing PHP5 setting just in case.
php.ini is stored under /Application/MAMP/conf/php5/
*** If MAMP Pro Application is stored at the same location as MAMP free one.
I am not using MAMP pro. So I don't recommend to use my configuration file directly.
MAMP free version is working fine on Leopard
The attachments did the trick in MAMP!
Thanks a lot!
Ruan
Thanks a lot!
Ruan
For htmldiff.py issue, that's the file permission itself.
Just use chmod in terminal to change the target file stored under....
YOUR_MAMP_CONCRETE5_FOLDER/concrete/libraries/3rdparty
And it will work fine (you can check the versions of revisions like Wikipedia have)
Just use chmod in terminal to change the target file stored under....
YOUR_MAMP_CONCRETE5_FOLDER/concrete/libraries/3rdparty
And it will work fine (you can check the versions of revisions like Wikipedia have)
Your Apache and PHP5 settings files seemed to do the trick!
Thanks a lot for your help.
Cheers
Thanks a lot for your help.
Cheers
I too had the same issue.
I did everything you said, chmod'ing the files and used your 2 files (which looked identical) and still no cigar...
I ended up with the error attached.
Any help muchly appreciated, concrete 5 looks just what I am after!
B ;)
I did everything you said, chmod'ing the files and used your 2 files (which looked identical) and still no cigar...
I ended up with the error attached.
Any help muchly appreciated, concrete 5 looks just what I am after!
B ;)
Same but different. The fatal error memory amount is different than the original poster and I have used the php.ini and httpd.config files uploaded here. Even changed the resource system memory amounts, but no go.
Running 10.5.8 OSX
Hope somebody will address this..very frustrating to say the least.
~chris
Running 10.5.8 OSX
Hope somebody will address this..very frustrating to say the least.
~chris
kill it.. the compare versions thing is cute but hardly that useful.
I tried installing concrete5.3.3.1 in Mamp but I get the error:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4864 bytes) in /Applications/MAMP/htdocs/concrete5/concrete/blocks/content/controller.php on line 74
I also tried the files by katz515 but it didn't work, still got the same error, just a different line this time.
Any other ideas on this?
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4864 bytes) in /Applications/MAMP/htdocs/concrete5/concrete/blocks/content/controller.php on line 74
I also tried the files by katz515 but it didn't work, still got the same error, just a different line this time.
Any other ideas on this?
i just enabled Zend Optimizer and eAccelerator in the MAMP Preferences.
Not sure though if it is related in any way. But it worked for me.
Not sure though if it is related in any way. But it worked for me.
Thanks for the info, enabling Zend Optimizer and eAccelerator in MAMP 1.7 did the trick for me as well.
It looks like you need to use my file, and enable ZendOptimizer.