Software :: Use PEAR From Its Shared Directory In Apache2?

Mar 8, 2011

I'm running the turnkey linux version of joomla and I need to use PHP's mail functionality to send a notification email from a page (separate from joomla content) . PHP's native stuff is rather plain and I find myself needing the functionality of PEAR. So I've installed PEAR via aptitude, but it has installed to /usr/share/php.

how do I include these files from php scripts? Firstly, the files are owned by root, the www-data user doesn't have access. It also appears that the permissions on the files may need to be modified. Some php files don't have the execute flag (shouldn't they)? I recognize the point of having a centralized location for updates and sharing, so I don't want to just copy the files to my web directory (/var/www).

View 2 Replies


ADVERTISEMENT

Ubuntu :: Php Pear Seems Broken / Fatal Error: Call To Undefined Method Pear?

May 2, 2011

I'm trying to install a package (validate) from pear.

but the command sudo pear install validate fails with error:

PHP Fatal error:Call to undefined method PEAR::raiseErro() in /usr/share/php/PEAR/REST.php on line 165

Looking around on the internet I found a bug report on debian:url

The fix is to update php5.

So now the question:

How do I update php5 or apply the patch mentioned in this bug report?

View 4 Replies View Related

Fedora Servers :: Pear Installation/configuration / Setting Displayed There For Pear?

Sep 29, 2009

I have pear installed, but I'n not sure I have it configured properly.

When I do a phpinfo(), no where are the settings for pear (meaning where it's located). If I recalled there is supposed to be a setting displayed there for PEAR.

View 4 Replies View Related

General :: PHP Fatal Error - Call To Undefined Method PEAR - RaiseErro() In /usr/share/php/PEAR/REST.php On Line 165

Apr 30, 2011

When running

Pear upgrade

The following error is raised:

View 1 Replies View Related

Fedora Installation :: Yum Install Php-pear - No Package Php-pear Available?

Nov 30, 2009

I am trying to setup APC on my Fedora 7 server but cant install php-pear. There are loads of sites explaining how to do this but they all use "yum install php-pear" which yum cant seem to find??

root@fedora7 [/etc/apt]# yum install php-pear
Loading "fastestmirror" plugin
Repository base is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* base: p3mirror01.prod.phx3.secureserver.net
code....

View 3 Replies View Related

Programming :: Php Pear Installation / Failed To Open Stream: No Such File Or Directory?

Jan 15, 2010

I was attempting the pear installation as per the instructions given here:url

I think i got the installation correct.

Then i tried this program

<?php
require_once 'System/Folders.php';
$sf = new System_Folders();
$home = $sf->getHome();
echo "$home
";
?>

and compiled it as follows:-

php spear.php

to get the results as

Warning: require_once(System/Folders.php): failed to open stream: No such file or directory in /var/www/spear.php on line 3
Fatal error: require_once(): Failed opening required 'System/Folders.php' (include_path='.:/opt/ZendFramework/current/library:/usr/share/php5:/usr/share/pear') in /var/www/spear.php on line 3

how should i correctly set the path in /etc/php5/apache2/php.ini

or how correct is my path statement

include_path = ".:/opt/ZendFramework/current/library:/usr/share/php5:/usr/share/pear"

in /etc/php5/apache2/php.ini

View 1 Replies View Related

OpenSUSE Install :: Error While Loading Shared Libraries: Libvolume_id.so.1: Cannot Open Shared Object File: No Such File Or Directory

May 14, 2010

I upgrade the system from 11.1 to 11.2 seems everything work fine, no error no warning, after a reboot the consol show : mount error while loading shared libraries: libvolume_id.so.1: Cannot open shared object file: No such file or directory. when I try to repair the system the repair tool cannot find the root partion,

View 1 Replies View Related

Ubuntu Installation :: Error While Loading Shared Libraries: Libxcb-xlib.so.0: Cannot Open Shared Object File: No Such File Or Directory

Jan 15, 2010

how to install libxcb-xlib.so.0?When I start one software and it complains that

"error while loading shared libraries: libxcb-xlib.so.0: cannot open shared object file: No such file or directory"

I have lastest libxcb1 installed and searched in my system but didnot find a relevant result.

View 3 Replies View Related

Ubuntu :: Error While Loading Shared Libraries: Libbabl-0.0.so.0: Cannot Open Shared Object File: No Such File Or Directory?

Jan 17, 2010

I installed the latest Gimp beta and it worked fine but then I couldn't open it. I removed it and I reinstalled but it didn't work, so I installed the latest stable version (no beta) and it still does not work, when I open it form Terminal, this is the response:gimp: error while loading shared libraries: libbabl-0.0.so.0: cannot open shared object file: No such file or directory

View 3 Replies View Related

Ubuntu Servers :: Using Apt For Updating From A Local Directory And Samba Shared Directory

Jul 9, 2010

I want to update all the machines in the network from a central repository which is on my master server and whose archive directory is shared through samba.I searched in the man page of sources.list and found that there is an option for this but can't able to implement this. Can anybody kindly tell me the way to do the same.

View 1 Replies View Related

CentOS 5 :: Install Shared Library On 5.2 - Cannot Open Shared Object File: No Such File Or Directory

Feb 11, 2009

I am using Centos 5.2, and I installed all of the available gnome and gnome development libraries available via the "add software" menu item. Still, when running some programs, I get the following error message:

"error while loading shared libraries: libzvt.so.2: cannot open shared object file: No such file or directory"

If I understood it correctly, libzvt.so.2 is part of some gnome libs... where to find and how to install them?

View 5 Replies View Related

Server :: Cannot Access /var/log/apache2/*: No Such File Or Directory

Aug 24, 2009

I am trying to access log file which located in /etc/log/apache2. I could get into the directory using `su`. I was able to run ls command under the directory and everything was file. I could run a command,

ls -d /var/log/apache2/*

However after I switched to my account, I got an error. sudo ls -d /var/log/apache2/* ls: cannot access /var/log/apache2/*: No such file or directory

I want to use this command in a bash script to get a list of log files. Should I write the script as root and run it as root?

View 3 Replies View Related

Server :: Set Process To Output To Apache2 Directory?

Aug 13, 2010

it seemed like the most accurate place. Also apologies for any inaccurate terminology, I'm a bit new at this. Running Apache2 on top of Debian 5.0

Anyway, I have irssi set to output logs to a folder accessible by my web server. User permissions are all set up, so it writes to the folder just fine, but when I access the server index in a web browser (i.e., page that says "index of /[directory] at the top) I cannot see the the directory or the logs that irssi is making. I can ssh in and see the folders and files in the terminal, so they are being created. How can I set it so these are viewable through the web server? I tried restarting the server, no effect.

View 1 Replies View Related

Programming :: Apache2 VirtualHost Non-recurring Directory?

Sep 16, 2010

I didn't know exactly where to put this, but here it goes:For the record, I have Apache2 on Ubuntu.OK so I have a "svn" subdomain for SVN repositories. The repositories are actual separate repositories, not a big one for all. So I'm using SVNPath not SVNParentPath (please don't suggest this as a possible fix).

The problem is I want to be able to list the repositories (or even put a blank page for that matter) at svn.mydomain.com. All repositories have a svn.mydomain.com/myrepository path with a VirtualHost for each. So when I create another VirtualHost just for the / path, it overrides all the SVN VirtualHosts, as it covers / and all sub-directories.

I would like a way to set that VirtualHost to affect just the root directory, without the sub-directories. Or to make the SVN VirtualHosts override it. Either way, is this possible? What approach should I take? Thanks!

View 1 Replies View Related

Ubuntu Servers :: Apache2 : Forward All Requests To Directory ?

Feb 9, 2010

i have a web site and i need to forward all requests to the same page. Basically i would like to show a maintenance page while we are working with our database behind the application and in the meantime i would like to redirect all url in the root directory as following :

http:[url].....

http:[url]....

i tried to perform the action using mod_rewrite in this manner :

Code:
RewriteEngine On
RewriteRule . http://www.mysite.com [L][code].....

The webpage at http:[url]....has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

View 2 Replies View Related

Ubuntu Servers :: Add A Directory In Adition To Default 'www' To Apache2?

May 11, 2011

I have been searching the web and Ubuntu forums all day looking for an answer to what I initially thought would be a simple thing to do. I have set up a lamp server and started creating my network site, however was not long before I ran into an issue with fire fox not allowing me to access locally linked files that are shared on the network which works fine in IE. after several hours of trying to find a work around, I have been unsuccessful in creating a link that would work in both IE and FF.
so I got this bright idea see, to just make the website include the network shared content, unsharing them of course and simply adding them to my Apache server, well the more I read the more confusing it all became. do I use simlinks or do I create a server for each location/hard drive?
I really need a how to for big dummies on adding additional directories to Apache similar to adding virtual directors to IIS for windows.

View 3 Replies View Related

Software :: Apache2 Won't Serve Php5 In Home Directory?

May 21, 2010

Running Ubuntu 10.04

Installed apache2 and php5 and it works in /var/www

but once I point it to a home directory it won't serve php. Normally I have used phpcgi but I am currently trying to use regular php.

Here is my default file.

Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/greensmoothiegirl/public_html
<Directory />

[Code]....

View 4 Replies View Related

Software :: Restart Apache2 Process Every 10 Mins To Clear /tmp Directory?

Aug 31, 2009

I have been working on this for a few hours now and still haven't been able to track down whats going on. I just switched servers and put a fresh debian install on with apache2 + custom suexec + php5(fcgi). now when i upload a file to the site it wont upload, so i tracked down the issue. its the /tmp directory that root tmp. its at 100% so i restart the /etc/init.d/apache2 process and the /tmp directory is automagically cleared to 20% used and i can upload again. so i figure ok its got to be a setting. i looked in all the conf files conf.d the php5 conf files and no where do i have a /tmp directory set. so i think OK I can build a cron to clear the tmp directory every 10 mins till i find the issue, but alas, when i go into the tmp directory There are NO files to delete!!! wtf. holy crap. and all that goodness, this is crazy, how can you have a tmp directory that is not being written to, from all i can see, so i think ok it might be a hard link, i checked, in all root and sub root directories no hard links to tmp, no soft links to temp either. and if i sit in my /tmp directory and do a df -h after some uploads its going from 20% so 23% and up, but i do ls -alh and nothing, then ls -al and watch bytes, nothing , so this is very strange. has anyone encountered something like this? is it possible that this is a hard link thats hidden somewhere or some other extreme function i have never heard of?

View 8 Replies View Related

Server :: Can't See A Shared Directory With Nfs?

Oct 31, 2009

i have an A machine, which has an ftp server (fedora core 8) and is sharing a directory with a machine B (fedora core 8 too), which has no ftp server and nothing special on it.

When machine B try to access to shared directory,there is no problem and works perfect.But when i share a directory on machine B and try to access to it from machine A, it doesn't work. I know that something related with ftp server make sharing work for machine A, but why? or what is it? is there a program or service that i need besides of nfs and rpcbind-portmap?. I had used nfs to share directories and i used rhel 5 to test all this things and happens the same.

View 10 Replies View Related

Ubuntu Servers :: Shared FTP Directory ?

Mar 28, 2011

I am trying to setup 2 individual FTP users. They should both have access to the same directory. They both need to be able to read/write into the directory. But, I want them not to be able to write to each other's files (e.g. delete, remove, rename, etc.).

So let's say the shared directory is: /home/ftp/shared/

UserA needs read/write access to /home/ftp/shared/. UserA should only have write access to his own files.
UserB also needs read/write access to /home/ftp/shared/. UserB should only have write access to his own files.

It would be a unix box of sorts, but that is the only restriction. I could use whatever software. I am currently thinking pure-ftpd or vsftp but I am open to all ideas.

View 1 Replies View Related

General :: How To Create Shared Directory

Jan 28, 2010

iam new to linux. wanted to know-->how to create a shared directory in lunix which should be accessible from windows

View 4 Replies View Related

Fedora :: Creating Local Shared Directory

Dec 18, 2009

I have recently installed Fedora 12 on a desktop PC and as my first experience of Linux, I am really impressed. I have now installed several packages and have reached a point where I would like to share the PC with other user (family members in the same house).My question seems so basic I am almost embarrassed to ask it but could some one explain the best way to create a local shared directory that could be used to store files accessible to everyone (e.g. music, photos, videos, documents etc.)There will be three users and as it is a family PC, they will all have full access.

Reading posts from various forums, I am little confused about what is the best way to proceed (i.e. what is Linux best practice). The simpler of the two methods is to simply make the directory using the mkdir command, followed by the chmod command to assign full access rights. Fore example if the local shared directory is called 'share'. The alternative approach assigns a group, a group administrator etc and then adds users to the group.

View 5 Replies View Related

Ubuntu :: USB Shared Drive - Corrupted Directory

Mar 12, 2010

This is a USB shared drive, with an ext3 partition. The partition is located at /dev/sdb1. I use Samba to share /media/tiga1000/samba/public, and everyone on the network can add/delete files to it. Specifically, this is our media drive, and we upload a lot of pictures to it, since me and my sister are amateur photographers. Under /public/images/camera_pictures/2010, I have 3 directories. 01_january, 02_february, and 03_march. The directory that has been corrupted is 03_march, and when I say corrupted, I mean that I cannot open it. It acts as a unknown file type that can't be opened.

Here is the file properties of it:
Code:
drsmall@mycroft:/media/tiga1000/samba/public/images/camera_pictures/2010$ ls -lah
total 960K
drwxr-xr-x 4 nobody nogroup 4.0K 2010-03-11 21:22 .
drwxr-xr-x 5 nobody nogroup 4.0K 2010-02-18 20:19 ..
drwxr-xr-x 14 nobody nogroup 4.0K 2010-01-31 11:57 01_january
drwxr-xr-x 10 nobody nogroup 4.0K 2010-02-23 15:47 02_february
-r--r--r-- 1 nobody nogroup 938K 2010-03-11 15:46 03_march

How I should go about recovering it. Somehow it lost it's directory switch. Should I unmount the drive and run fsck on it? I would like to be able to recover these images, if it is at least possible!

View 7 Replies View Related

Red Hat / Fedora :: Mounting To A Windows 7 Shared Directory?

May 27, 2010

I have the following line in my fstab:

//192.168.2.100/e:/video /mnt_win_video ntfs defaults 0 0
And when I try: mount -t cifs -o username=usr,password=secert //192.168.2.100/e:/video /mnt/mnt_win_video I get: mount error: can not change directory into mount target /mnt/mnt_win_video

View 4 Replies View Related

Networking :: Correct Syntax For An NFS Shared Directory?

Jun 1, 2009

If I want to share a directory called /home/me, would I go to my /etc/exports file and share /home/me/* or would I share /home/me ? I am unsure of how to type this into the file.

View 2 Replies View Related

General :: Spool Directory Samba Has Been Shared As Printer

Oct 2, 2009

In my samba configuration, I have a strange share.
Share name: MyPrinter
Shared folder: /var/spool/samba
comment = lp
read only = No
print ok = Yes
The spool directory /var/spool/samba has been shared as a printer. What will be the harm caused by it? (I don't know who shared such). And I also wanted to know the security issue due to it..

View 1 Replies View Related

OpenSUSE Install :: Permissions For Shared Directory - R / W For All Users

Sep 12, 2011

I would like to have a directory
Code:
/home/shared
Where all human users have r/w permission for all files and sub-directories under this path. Can I achieve this buy just setting the permissions correctly or do I need to do something else?

View 7 Replies View Related

OpenSUSE Network :: [smb] Lost Access To Shared Directory?

Mar 24, 2010

Unfortunately I haven't been able to figure out yet how to share specific directories only, so I set up my Samba server to share users' home directories (which is not a security issue here since the only possible client is my other machine). My user's home directory contains a symlinked directory on another hard drive partition, which I had to explicitly share to be able to access it from the other machine. This setup has been working for months now, but for a reason that escapes me at the moment it stopped working today, presumably after samba got updated from 3.4.2-1.1.3.1 to 3.4.3-3.2.1.

The error message on the client (Windows XP/SP3) for this one above mentioned directory, and for this directory alone, is "Access denied"; I can access all other directories fine.

View 9 Replies View Related

General :: Shared FTP Directory - Separate User Permissions

Mar 30, 2011

I am trying to setup 2 individual FTP users. They should both have access to the same directory. They both need to be able to read/write into the directory. But, I want them not to be able to write to each other's files (e.g. delete, remove, rename, etc.).

So let's say the shared directory is: /home/ftp/shared/

UserA needs read/write access to /home/ftp/shared/. UserA should only have write access to his own files. UserB also needs read/write access to /home/ftp/shared/. UserB should only have write access to his own files.

It would be a unix box of sorts, but that is the only restriction. I could use whatever software. I am currently thinking pure-ftpd or vsftp but I am open to all ideas.

View 1 Replies View Related

Ubuntu Multimedia :: Moving Sqlitedb To Shared Directory?

May 18, 2011

a lot of ubuntu apps seem to use sqlite3 to store the metadata. some noticable are firefox, shotwell and banshee.

can understand firefox keeping it separate but what if i want to share the music and photos between two users on the same machine.

i've set up a user group (call it "two") that has two users have set up a shared dir under /content/twousers set permissions chgrp & chmod & flicked the sgid bit so that everything is owned by the group.

can then run banshee (or shotwell for that matter) under the primary user (the group owner) and import data (music pictures et al).

try a second user on the same local machine and can see the directories and files - just cant see the metadata in the sqlite db.

any way to get these apps to look for their metadata in the shared directory - doesn't seem like sqlite has a distributed db node mechanism available.

is there any way of assigning a unix evironment variable to do some sort of "directory redirection" - for want of a better term - or an sqlite trigger in the db that connects to the common sqlite?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved