Linux - Will be the death of me

A place For General Chit Chat Etc
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

Something I am use to though is a control panel for the databases. Makes it alot easier to view and see everything.. at least thats what I found.

Don't really need that currently. But I am absolutely amazed at the speed of the VPS. Just.. wow.

With google announcing that page load speed affecting search results and SEO, Im thinking migrating onto the VPS is something to look into.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

YEEEEESSSSSS... YYEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEESSSSSSSSSSSSSSS

Finally compiled app is actually working on server. Using the static compiled app and works a complete treat.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
antus
Site Admin
Posts: 8237
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: Linux - Will be the death of me

Post by antus »

for DB access get mysql workbench, and use standard tcp/ip over ssh for connection. put in the details of your user account for as ssh tunnel connection type in mysql workbench, and the details for the db for direct access. dont run any other kind of online tools, thats what the security scanners the bad guys use tend find and exploit. https://dev.mysql.com/doc/workbench/en/ ... s-ssh.html
Keep in mind that mariadb and mysql are the same thing. mysql was bought by oracle who have cloned red hat enterprise, so the original developers forked it in to mariadb, and redhat, with no love for oracle, went the maria db direction. So far the communities are not nasty toward each other and they play nice and are for all real purposes compatible.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

Thats exactly the kinda of setup Im use to. Godaddy provides a similar online setup from the cpanel.

Perfect, something else to tinker with.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
oldn64
Posts: 256
Joined: Mon May 28, 2018 5:05 pm
cars: Vq Statesman, VE SS wagon, VE Sv6, VY SV8, VL Belina
Location: Country Victoria on a direct road to WINTON

Re: Linux - Will be the death of me

Post by oldn64 »

Just WOW tazzi,

you have come far with your install really glad you have got it running.

Wish you had of shouted out for a vps as I run them for my company and could have thrown one at you... :thumbup: (let the paying customers allow you access :P)

just to back pedal slightly as I am a IT guru, and love helping people get the best out of their IT. Your router what is it, what is it running and how have you configured it? It might be routing but just not properly. I have seen it many times. Background network and server engineering :)

Happy to assist if needed.

Cheers
oldn64
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

Iv gone for a paid VPS service instead of using my own home system. As well.. I got stuck at the router getting it to redirect to my host computer.

So far I have the VPS setup with FTP, apache and a wordpress site. Probably dont actually need wordpress on there.. but I can tinker with new themes/idea at least if wanted.

Im still struggling with permission problems though. While using wordpress, the security plugin (WP Security) is trying to access the .htaccess file in the root directory of the install but keeps throwing a "Could not write to the .htaccess file. Please check the file permissions." whenever I try turn on any of the options.

I have all folders permission set as 755, and all files as 644 currently (As recommended). Site runs fine.
The Owner/group is set to apache, which is what all the tutorials indicate I should have it set as.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

Back to semi square one.

Now trying to execute the file using php... Im getting back a error code 126.
While using root access, am able to execute happily... but back onto apache using php.. the 126 has occured.

So, it cant be permissions issue since Iv just opened that right up as 777 for testing purpoes. Can only think its owner issue somehow... really hating on all this owner stuff.

I know exec is enabled as Im able to run other command in there.

Currently testing with just a 'helloworld' compile linux app which quite literally only outputs the text helloworld. Cant seem to get that going.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
oldn64
Posts: 256
Joined: Mon May 28, 2018 5:05 pm
cars: Vq Statesman, VE SS wagon, VE Sv6, VY SV8, VL Belina
Location: Country Victoria on a direct road to WINTON

Re: Linux - Will be the death of me

Post by oldn64 »

Hello Tazzi,

yes the permissions and ownership can be a nightmare but i find that most people do not understand fully the way this is hung together.

I noticed that in your original post that you had the license site working? is it only wordpress that is not working or am i confused now?

Cheers
oldn64
User avatar
Tazzi
Posts: 3422
Joined: Thu May 17, 2012 8:53 pm
cars: VE SS Ute
Location: WA
Contact:

Re: Linux - Will be the death of me

Post by Tazzi »

So, I have the linux application working when using root access on shell. I can execute the application and it returns back with expected info.

Same with the helloworld application, this runs happily through shell.

The problem is executing the application through apache with PHP. I ran the command exec(whoami) and it returns with apache. I have all the permission set correctly, and have the owner/group set to as apache.. but still no luck!

I read online that plenty of people had success by running the apache server as root (Instead of apache). Reading online says doing that is very bad, and can result in increased chance of exploitation. Regardless, going to give that a go to see if having apache run as root will allow running the applications correctly, at least that will narrow down whats going on.
Your Local Aussie Reverse Engineer
Contact for Software/Hardware development and Reverse Engineering
Site:https://www.envyouscustoms.com
Mob:+61406 140 726
Image
User avatar
antus
Site Admin
Posts: 8237
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: Linux - Will be the death of me

Post by antus »

do an ls -aZ <file> on the file and post up the results. it'll either be normal ownership problems, or selinux permissions if you compiled it somewhere else and moved it. If its the first case its a regular misconfiguration, if its the second case the OS is trying to protect you from arbitrary execution through wordpress.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
Post Reply