I have a PHP library that I’d like to share to several vhosts on my server, but the open_basedir directive is causing troubles. I use ISPConfig 3 to manage the sites. PHP Warning: include(): open_basedir restriction in effect. File(/var/toaster/latest/__server/core/cms.php) is not within the allowed path(s): ([cut:several paths]) in [cut] on line 5 phpinfo() says: Loaded Configuration File: /etc/php5/cgi/php.ini open_basedir: [cut:several
PostgreSQL psql terminal command
I’m trying to get psql to format nicely and am following the docs here. Right now, whenever I do a query on tables with lots of columns, no matter how big I make my screen each line overflows into the next line and producing a whole screen of unreadable junk. The docs (link is above) say there’s a way to
How to kill all processes with a given partial name? [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
C wait3() int* status or int* stat_loc
I indeed to use wait3(). I have been looking what exactly is status/stat_loc but I couldn’t find it anywhere. Any explanation is greatly appreciated! Answer man wait explains the semantics of status:
gdb how to get thread name displayed
There are many threads created in my application. some of the threads name are visible in the gdb while i execute the command ‘info threads’, others are not displayed. How to get all the thread name itself instead of the hex value like 0xb7fe1424 Answer If you upgrade to gdb 7.3 or later, “info thread” will show thread names; at
Linux Shell: VLC programming
Is there a way to manipulate VLC with a Linux shell script without the script waiting for VLC to close. This code keeps running VLC until the file is completed, and then evidently it is to late to pause the file. Answer You need to use dbus interface of VLC. Now, you can use the mpris interface of VLC. It’s
“SO” file conversion to readable format
Is there any way to convert “.so” file into source code or some in readable format. Answer Source code is probably hard, since the .so doesn’t “know” which language it was written in. But you can browse around in the assembly code by doing something like this:
Linux configure/make, –prefix?
Bear with me, this one’s not very easy to explain… I’m trying to configure, make and make install Xfce into my buildroot build directory. When configuring I’m using so that it builds to the right folder, however when it’s compressed and run I get errors from various config files where it’s looking for files in (which of course doesn’t exist.)
Cannot install ruby version on redhat
I have the following problem and whatever I try, nothing helps. I hope someone could help me with this. I have a redhat server and I’m trying to install redmine on it. Redmine needs Ruby >= 1.8.7 to run so I installed it and when I execute ruby -v in the console it says I have version 1.8.7 (so that’s
g++ 4.6.1 compiler error: Error: unknown pseudo-op: `.cfi_personality’
I have a file which compiles without errors or warnings on my macbook pro running osx (snow leopard) using g++ (4.6.1). I just uploaded it to our linux cluster (not run by me) and tried to compile there (also using gcc 4.6.1). This time I many strange error messages with the assembler. How do I interpret the following error? Answer