solved jamroom permissions settings

soaringeagle
@soaringeagle
9 years ago
3,304 posts
i am in the final stages of getting my site up on my new ubuntu server
but running into issues with some pages not loading many thumbnails and such not loading
i was having issues copying templates to /data/cache but setting that and modules and skins to 777 worked
but everytime i think its fixed a diferent page stops working like system check or system update
is there an easy way to make sure all permissions are correct
edit
i got much more working after doing
find /home/greentechnologyf -type f -perm 644 -print -exec chmod 666 {} \;
and
find /home/greentechnologyf -type f -perm 755 d -print -exec chmod 777 {} \;
still not getting some core pages marketplace
system check
system update etc

edit tried
find /home/greentechnologyf -type f -print -exec chmod 666 {} \;
and
find /home/greentechnologyf -type d -print -exec chmod 777 {} \;
same results
only some core issues i think

ps having the server transfer take longer then expected is costing me quite aa bit so a fast fix will be appreciated



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 08/27/16 06:13:43PM
michael
@michael
9 years ago
7,772 posts
I use this guide when setting up a server and never have to think about 777 666 644 again. Its real good.

https://www.jamroom.net/brian/documentation/guides
soaringeagle
@soaringeagle
9 years ago
3,304 posts
thought i found it when i tried chown it said user didnt exist so added user then chown but still..nothing


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
9 years ago
3,304 posts
i get to the mod_ruid section therses no apxs2
everywhere says to use apt-get install apache-prefork-dev
or apt-get install apache2-threaded-dev
both unable to find package


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
9 years ago
3,304 posts
apt-file search apxs2
returns /usr/bin/apxs2 but theres actualy no directory of that name in usr/bin


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
9 years ago
3,304 posts
hmm found this in error log
adlockssite.com,O=Internet Widgits Pty Ltd,L=phoenixeville,ST=pennsylvania,C=US / issuer: CN=dreadlockssite.dreadlockssite.com,O=Internet Widgits Pty Ltd,L=phoenixeville,ST=pennsylvania,C=US / serial: C44D7117AFF2A86C / notbefore: Apr 29 20:25:33 2016 GMT / notafter: Apr 27 20:25:33 2026 GMT]
[Thu May 05 10:59:47.460424 2016] [ssl:error] [pid 45211] AH02604: Unable to configure certificate 127.0.1.1:8080:0 for stapling
[Thu May 05 10:59:47.464145 2016] [mpm_prefork:notice] [pid 45211] AH00163: Apache/2.4.18 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 mod_python/3.3.1 Python/2.7.11+ OpenSSL/1.0.2g-fips configured -- resuming normal operations
[Thu May 05 10:59:47.464162 2016] [core:notice] [pid 45211] AH00094: Command line: '/usr/sbin/apache2'
[Thu May 05 11:00:05.788648 2016] [:error] [pid 45220] [client 71.225.6.155:56814] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/util.php on line 1408, referer: https://www.dreadlockssite.com/core/admin/global
[Thu May 05 11:00:07.121556 2016] [:error] [pid 45221] [client 71.225.6.155:56815] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/util.php on line 1408, referer: https://www.dreadlockssite.com/core/admin/global
[Thu May 05 11:00:08.205964 2016] [:error] [pid 45218] [client 71.225.6.155:56818] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/util.php on line 1408, referer: https://www.dreadlockssite.com/core/admin/global
[Thu May 05 11:00:09.287670 2016] [:error] [pid 45221] [client 71.225.6.155:56822] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/util.php on line 1408, referer: https://www.dreadlockssite.com/core/admin/global
[Thu May 05 11:00:15.078093 2016] [:error] [pid 45217] [client 71.225.6.155:56830] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/util.php on line 1408, referer: https://www.dreadlockssite.com/core/admin/global
[Thu May 05 11:00:16.155130 2016] [:error] [pid 45218] [client 71.225.6.155:56839] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/util.php on line 1408, referer: https://www.dreadlockssite.com/core/admin/global
[Thu May 05 11:00:17.059714 2016] [:error] [pid 45221] [client 71.225.6.155:56843] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/util.php on line 1408, referer: https://www.dreadlockssite.com/core/admin/global
[Thu May 05 11:00:17.979864 2016] [:error] [pid 45220] [client 71.225.6.155:56850] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/util.php on line 1408, referer: https://www.dreadlockssite.com/core/admin/global
[Thu May 05 11:33:50.484261 2016] [:error] [pid 45221] [client 71.225.6.155:59272] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/util.php on line 1408, referer: https://www.dreadlockssite.com/core/cache_reset


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
9 years ago
3,304 posts
fixed that issue now just down to 1 issue..system check page returns 500 error
nothing in apache error logs

ps weird thing... the dashboard shows a -90% memory used
top shops ram use very low
but not in the - 90% low


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 05/05/16 10:33:15AM
soaringeagle
@soaringeagle
9 years ago
3,304 posts
jr error log shows this (think curls fixed)
[05-May-2016 01:52:34 America/New_York] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/util.php on line 1408 [6]
[05-May-2016 02:09:43 America/New_York] PHP Fatal error: Call to undefined function curl_init() in /home/greentechnologyf/public_html/modules/jrMailGun-release-1.2.0/include.php on line 295 [3]
[05-May-2016 03:16:39 America/New_York] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/lib/mysql.php on line 391 [2]
[05-May-2016 03:16:51 America/New_York] PHP Fatal error: Cannot redeclare jrCore_meta() (previously declared in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/include.php:53) in /home/greentechnologyf/public_html/modules/jrCore-release-5.3.4/include.php on line 53 [1]


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
michael
@michael
9 years ago
7,772 posts
soaringeagle:
i get to the mod_ruid section therses no apxs2
everywhere says to use apt-get install apache-prefork-dev
or apt-get install apache2-threaded-dev
both unable to find package

Yeah its a little old. I just upgraded my local machine and dev server to 16.04 yesterday (and today) so have your answers right here. :)

Yep, prefor-dev is gone, so just install -dev
sudo apt-get install apache2-dev

the curl issue is:
sudo apt-get install php7.0-curl

There are a bunch of those php7.0-????? parts so if you get an "undefined function ......." it probably needs another thing installed:
sudo apt-get install gettext
sudo apt-get install php7.0-mbstring
sudo apt-get install php7.0-mysqlnd
sudo apt-get install php-acp

are other commands I needed to run when something didn't work. Still expecting others to come up too.
soaringeagle
@soaringeagle
9 years ago
3,304 posts
its not sending mail too
i got curl but downgraded php cause 7 i think isnt compatable with somme sites


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 05/06/16 07:19:51AM
soaringeagle
@soaringeagle
9 years ago
3,304 posts
im glad were working on this together mabe retitle it as ubuntu 16.04 guide


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
9 years ago
3,304 posts
ok i goty everything on the server working right
with a few exceptions
the system check page returns a 500 error
many images in sitemap crawler give a 500 error and seem to only 1/2 load
i think these were currupted in transit
i would love to know how to rsync with an option to overwrite any that are smaller or currupted ..


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
michael
@michael
9 years ago
7,772 posts
phpstom has a 'sync' which can compare by file contents. Used rsync once a few years ago, but cant remember much about how it works.
soaringeagle
@soaringeagle
9 years ago
3,304 posts
thnx


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
soaringeagle
@soaringeagle
9 years ago
3,304 posts
michael:
phpstom has a 'sync' which can compare by file contents. Used rsync once a few years ago, but cant remember much about how it works.

i got phpstorm..its complex and confusing (not like setting up a Linux server from scratch..for the 1st time ever isn't)

so can you give me detailed instructions on how to use this


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
michael
@michael
9 years ago
7,772 posts
when you start using it, just think of it as notepad (or any other text editor) and ignore 90% of the buttons.

That should make it easier.

You have your jamroom stuff stored somewhere on your local pc and that maps to the same files stored on your server.

So you need to do 2 things to start:
1. open phpstorm and go to FILE -> OPEN DIRECTORY and that will create a phpstorm project for whatever is in that directory.

then
2. go to TOOLS -> DEPLOYMENT -> CONFIGURATION and setup the server location

There are some screenshots of this step in this doc:

Docs: "Setting up a debugging environment"
https://www.jamroom.net/the-jamroom-network/documentation/development/129/setting-up-a-debugging-environment#c172

once you have your local able to upload to your server, then you can right click the 'projects' panel and chose "sync with deployed to ...."

It will show you all the local files that are different to the server files with an arrow. left to right means they will be copied local to server. right to left means they will be copied server to local.

If you KNOW that you want local to go to server, then use ctrl+a to select all then right click and choose "set copy to right" or whichever way you want to force it to go.

This is useful if your production gets updates from the marketplace and you want to know what changed. after a marketplace update production and local will be out of sync. choose all the base names on the server, then sync. whatever comes down is whatever is changed.
soaringeagle
@soaringeagle
9 years ago
3,304 posts
thats not an option i need it to sync server to server not local i sucked up every bit of my bandwidth for a week downloading only 2/3 of the site with over 500 gigs to go and the upload speeds way lower
i need something that can compare server to server and do it in just a few hours


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

Tags