LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-28-2018, 11:04 AM   #1
Murk
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Rep: Reputation: Disabled
moving .so files between machines


Hello,
I Have a custom built server running linux version 3.10.105 i do not have access to apt/yum or any other package installer.

I've recently installed fileinfo (wget hhtp://pecl.php.net/get/Fileinfo-1.0.4.tgz) but my machine must not have php5-dev installed as i cannot phpize the file (I did not set up this server)

Since i cannot install php5-dev i am wondering if i can phpize and ./configure the file on a machine with a proper OS and than transferring the fileinfo.so file over to the server or does ./configure do something system specific with the file?
Thanks in advance.
 
Old 09-28-2018, 11:30 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Murk View Post
Hello,
I Have a custom built server running linux version 3.10.105 i do not have access to apt/yum or any other package installer.

I've recently installed fileinfo (wget hhtp://pecl.php.net/get/Fileinfo-1.0.4.tgz) but my machine must not have php5-dev installed as i cannot phpize the file (I did not set up this server)

Since i cannot install php5-dev i am wondering if i can phpize and ./configure the file on a machine with a proper OS and than transferring the fileinfo.so file over to the server or does ./configure do something system specific with the file?
Thanks in advance.
Well first, given Linux is just the OS kernel and not a complete system, then "linux 3.10.105" is the kernel version your Linux distribution is using. Based on that version, it looks like CentOS/RHEL or similar your running.

The "./" means the current working directory and the "configure" script checks to see if your system has the necessary build environment to be able to build the software you're trying to compile.

Manually copying shared libraries from one machine to another is a bad idea. You should be using yum instead to install stuff.

What exactly do you mean when you say "i do not have access to apt/yum or any other package installer" ?
 
Old 09-28-2018, 11:44 AM   #3
Murk
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the reply im sure you have already noticed but i am a Linux newbie...

when i run uname -a or cat /proc/version it only gives me the kernel no OS is specified.

when i try to run any apt-get or apt install etc i get "command not found" so i guess I should be asking how can i download php5-dev so i can phpize and make a fileinfo.so.

thank you.
 
Old 09-28-2018, 12:30 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
If you do not have access to the package management system, then you likely do not have the permissions to install any .so files. Except in $HOME with special $PATH type things to use local .so files. If you had permissions you could swap/add the .so files to default locations and run ldconfig to update the cache of known .so files via the /etc/ld.so.conf.d/ files. With quirks of being compiled with the same compiler version or other gotchas.
 
Old 09-28-2018, 03:41 PM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Murk View Post
Thanks for the reply im sure you have already noticed but i am a Linux newbie...

when i run uname -a or cat /proc/version it only gives me the kernel no OS is specified.
Try this instead:

Code:
cat /etc/os-release
Quote:
when i try to run any apt-get or apt install etc i get "command not found" so i guess I should be asking how can i download php5-dev so i can phpize and make a fileinfo.so.

thank you.
Then either you're not using a distribution that uses apt or there is something very wrong with your system. You need to find out which distribution exactly you are using. You could also manually download the right packages and install them with the deb, rpm, etc command - depending on you're distribution.
 
Old 09-28-2018, 03:57 PM   #6
Murk
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks shadow and jsbjsb001 for your replies.

it is not that i am lacking permissions i am simply lacking the linux resources (ldconfig: command not found, rpm: command not found)

running cat: /etc/os-release: No such file or directory same with */etc/*-release

seems like the only ones that do work are uname -a or cat /proc/version which returns: Linux version 3.10.105 (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) )

Therefore i do not even know which specific packages to manually install and dont want to go around installing everything and anything in hopes something works as it is a company server.

Is there another way to make an .so file without phpize? because all i could think of is just creating the so then moving it over to the server.


When i run phpinfo() it states fileinfo IS enabled when i search the server with shh i cannot find fileinfo.so anywhere i even made an if statement to only fire if fileinfo extension is enabled... it fires.

In Synologys web station there is no option to enable fileinfo which makes me think fileinfo is not installed but for some reason phpinfo() is saying it is enabled. I checked every php.ini file on the server and added extension = fileinfo.so to every php.ini / .extension file just to be safe but they all state

PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/fileinfo.so'

the server i am on needs to run update.php for mediawiki but it will not run without fileinfo...

Is there a secret configuration file Synology is hiding? because it seems no matter what i change through web station my php.ini files remain the same checking/unchecking extensions inside the web station does directly effect my phpinfo() printout and can see changes being made... which brings me back around to fileinfo saying it is enabled but where is it?!

I have all the php.ini files extension_dir going to the same location (which does not contain fileinfo.so)

I am running php5.6 FPM/FastCGI with Apache and a reverse nginx proxy any help is greatly appreciated as I've exhausted google and am not getting anywhere and have run out of ideas and of course Synology forums are currently locked.
 
Old 09-28-2018, 04:14 PM   #7
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
You could try the following, but you need to be running the following as the "root" user for it to work.

Code:
cat /boot/grub2/grub.cfg
Scroll down to the line similar to this and post it, using CODE tags - see my signature below if you're not sure.

Code:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'CentOS Linux (4.15.9-1.el7.elrepo.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.15.9-1.el7.elrepo.x86_64-advanced-14ea7d36-8c7a-4269-a1f1-cb2ec439addb'
Just post what it says after the line I've highlighted in bold, and just the first line or two after it.

.so files are compiled programs, the same as executable files are compiled programs. So you can't "make it" as such, but you could write some code and tell gcc to just compile a shared library from that code.
 
Old 09-28-2018, 05:27 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ cat /etc/issue

It's the default MOTD for telnet, but most times there and unchanged.

$ lsb_release -a

Sometimes there, but probably needs installing for minimum installations.

Depending on the distro, pacman, dnf, yast, emerge, and others exist, not just apt or rpm options these days. And by permissions, I mean root. Which some tools are ONLY available to root (system admin) or privileged users (sudo).
 
Old 09-28-2018, 06:49 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Quote:
I Have a custom built server running linux version 3.10.105 i do not have access to apt/yum or any other package installer.

Synologys web station
Is your custom built server a regular Synology NAS device? If so, it runs their own operating system called DiskStation Manager (DSM). I don't know how PHP is configured but you might need to contact Synology directly.

Quote:
Synology America Corp.

+1 425 296 3177 (Support)

Hours of operation: 4AM-9PM, Monday-Friday, PST
 
Old 10-01-2018, 07:45 AM   #10
Murk
LQ Newbie
 
Registered: Sep 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks everyone for your replies yes it does run DSM which is a real pain to get anything done.. but i figured it out and got my wiki updated and running again. Turns out sqlite the database i am using wasn't included in the defaults of the new wiki update just had to add 'sqlite' to $dbTypes in installer.php and then run update.php and it works!! hopefully this saves someone the embarrassing amount of time it took me to figure this out.
 
  


Reply

Tags
apache, php, synology



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving directories between different machines NotionCommotion Linux - Newbie 12 12-08-2017 03:20 PM
Moving LVM Between Machines... sancho Linux - Server 1 03-01-2008 09:38 AM
Directly Moving files to Linux Machines??? ajeetraina Linux - Newbie 1 12-03-2007 02:27 AM
moving a file sequentially to different machines nightly mijohnst Programming 3 12-04-2005 05:44 PM
Moving Mozilla mail folders between machines rharvey@cox Linux - Software 6 02-13-2004 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration