[SOLVED]New PHP documents directory

Hi
Now I have to save my files in /srv/http directory if I wanna display page. I would like change this directory to /home/rlk120/php/. Changed line 
open_basedir=/srv/http/:/home/:/tmp/:/usr/share/pear/:/path/to/documentroot
didn't result.
Any ideas how to do it?
Last edited by xorgx3 (2012-06-02 13:26:31)

stryder wrote:BTW since /home is already in open_basedir you need not change that line.
Hmmm - OOTH I think that '/home/' means that it is not recursive. If you want to allow PHP to have acces to /home/ recursively (I would not recommend this), then you should use '/home' without the trailing slash.
As the above post suggests: edit the configfile for your virtualhost-app (or subfolder-app), move the files and double check the permissions.
Zl.

Similar Messages

  • Error when opening a new file: "Could not find the user documents directory"

    Why can't I create a new file and I get this error everytime: "Could not find the user documents directory"?

    Hi Team,
    Please check this forum thread with similar issue.
    Create New gives an error "Could not find the user document directory"
    Regards,
    Devendra

  • Create New gives an error "Could not find the user document directory"

    Fresh installed Adobe Edge Animate CC (2014). When I try to Create New, I get an Error popup "Could not find the user document directory"

    I think this worked!
    I just downloaded an example file and tried opening from outside of the program. At first it gave me some errors but then loaded it up.
    After that I've re-saved it and now I can create new files and open files.
    Before that I also uninstalled old CC programs that were not showing in the Adobe Creative Cloud apps.

  • Getting Error 404 when trying to open php documents in DW CS3 Test server

    I am new to DW, php, MySQL and Apache. I have set up a test
    environment but obviously have done something wrong. I currently
    create my web pages from scratch in notepad and update my site with
    a GUI FTP program, but I know with these new tools, I will
    eventually be able to create the type of web site that I really
    want and need. Every time I try to open any php document in DW CS3
    using the"Preview/Debug in browser" button I get an error 404. The
    browsers I use are ie7.0.5730.11 and Nav 9.0b2 . I know this may
    not even be a DW issue, but I really am at an impasse. Any help
    would be much appreciated.

    Jharek Wolf wrote:
    > As I previously mentioned I am new to Apache also. Are
    you willing to
    > continue helping me?
    It sounds as though you need to be taken through this process
    step by
    step. Even though you say you defined a testing server, the
    fact that
    you didn't have your documents in the server's document root
    suggests
    your site definition might also be wrong.
    First things first. Since you're new to Apache, what happens
    when you
    type
    http://localhost/ into your browser
    address bar? Depending on the
    version of Apache, you should get an Apache test page or
    simply a page
    that says "It works!". If you get neither, it means Apache is
    either not
    running or that it has been incorrectly installed.
    Assuming Apache is working, have you installed PHP? If so,
    put the
    following code into a blank file (there must be no HTML or
    DOCTYPE -
    just the following line):
    <?php phpinfo(); ?>
    Save the file as test.php in the Apache document root. Then
    type
    http://localhost/test.php into
    your browser address bar. If you see a
    page with masses of detail about your PHP configuration, PHP
    is working.
    You can then move to the final stage. Create a new folder
    inside the
    Apache document root. This is where you should store your
    site. If you
    call it "mysite", these are the settings you need in the
    Testing server
    definition:
    Testing server folder: /path/to/htdocs/mysite/
    URL prefix:
    http://localhost/mysite/
    Don't take "/path/to/htdocs/mysite/" literally. It indicates
    the
    location of htdocs/mysite on your local hard drive. Use the
    folder icon
    to the right of the Testing server folder field to navigate
    to it.
    If you're new to PHP, you might find that my book, "The
    Essential Guide
    to Dreamweaver CS3 with CSS, Ajax, and PHP" answers a lot of
    your
    questions. It covers all the Dreamweaver PHP server behaviors
    in detail,
    as well as teaching the basics of PHP and database
    maintenance. You can
    find more details by following the link in my sig.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • How can I make textedit start with a new (blank) document?

    How can I make textedit start with a new (blank) document?
    Instead of it starting up with a dialogue box to select an existing or start a new document.

    @Alley_Cat thanks for the ideas.
    I turned off System Preferences > iCloud > Documents&Data - problem solved.
    I'll use DropBox instead  - it provides the options for a better experience.  I hope Apple keep working on iCloud so that it doesn't go the way of Moble Me.

  • Can I open and render a local .PHP document?

    I have some .PHP documents on my local harddrive. I have Textmate (a text editor) set as the default application to open these documents. However, I would also like to open and render them in Safari. If I click COMMAND-O in Safari to get a Finder window, I can navigate to my .PHP documents, but I cannot open them because they are grayed out. I can't find any preference that would allow me to open them.
    In Firefox I can open a .PHP document in this way and it will render (albeit somewhat incompletely). Is this functionality absent in Safari?

    This doesn't work for me. I enabled web sharing in system preferences and enabled PHP5 by following the instructions here, but when I try to open a .PHP file in Safari, they are still grayed out in the Finder window.
    Is the idea that I need to drop the .PHP files into the Sites directory and view them through Apache? (I'm hoping to be able to just view them from any directory on the harddrive, the same as I can do with Firefox.)
    Message was edited by: billmcn

  • Renaming files in document directory

    Hi,
    in my app I save files to the document directory. Everything works fine.
    But now I want to rename files from within the app. So in my uitextfield I type in the new title of the file and click save.
    How do I do that? I have searched but I couldn't find anything.
    Thanks for your help!

    NSFileManager moveItemAtPath:toPath:error

  • Error in setting the linenum for new expenses document

    Hi all,
    I have created an add-on procedure to add a new expenses document to a selected service call.  Although the code compiles without any errors, when I go back and check the expenses tab in the service call form, the new document doesnt appear in the expenses grid.  I also checked whether the data was saved into the corresponding SCL2 and SCL4 tables.  The new stock transaction is not saved into the service call.  My current code is:
    Public Sub add_StockTransaction(ByVal strGRJobID As String, ByVal srtSTDocNo As String)
            Dim oServiceCall As SAPbobsCOM.ServiceCalls
            Dim oExp As SAPbobsCOM.ServiceCallInventoryExpenses
            Dim bRetVal As Boolean
            Dim errcode As Long
            Dim errmsg As String
            Try
                oServiceCall = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oServiceCalls)
                bRetVal = oServiceCall.GetByKey(strGRJobID)
                If Not bRetVal Then
                    SBO_Application.MessageBox("Failed to Retrieve the record.")
                    Exit Sub
                End If
                oExp = oServiceCall.Expenses
                oExp.Add()
                oExp.DocumentType = "67"
                oExp.DocumentNumber = strSTDocNo
                oExp.DocEntry = strSTDocNo - 99999
                SBO_Application.MessageBox(oExp.LineNum)
                oExp.SetCurrentLine(oExp.LineNum + 1)
                oExp.StockTransferDirection = 1
                oExp.Add()
                oServiceCall.Update()
                bRetVal = oServiceCall.Update()
                If bRetVal = False Then
                    oCompany.GetLastError(errcode, errmsg)
                    SBO_Application.MessageBox(errmsg)
                Else
                    SBO_Application.MessageBox("Successfully added stock transaction to Service Call.")
                End If
            Catch ex As Exception
                SBO_Application.MessageBox(ex.Message)
            End Try
    end sub
    I would appreciate any help as I tried so many ways of solving the problem but couldn't find a solution.  Thank you all in advance.

    Bingo.... I got it.
    Thanks for your hint about the ./.profile. I was setting env variables in .cshrc file and my default shell for "oracle" user was sh.
    Then I changed the default shell for oracle user to csh and viola..... it works.
    root@zngds1gk # su - oracle
    $ id
    uid=100(oracle) gid=101(dba)
    $ setenv
    HOME=/space/oracle
    PATH=/space/oracle/app/oracle/product/10.2.0/Db_2/bin:/usr/bin:
    LOGNAME=oracle
    HZ=100
    TERM=xterm
    SHELL=/bin/sh
    $ exit
    root@zngds1gk # usermod -u 100 -s /bin/csh oracle
    root@zngds1gk # su - oracle
    zngds1gk%
    zngds1gk% setenv
    HOME=/space/oracle
    PATH=/space/oracle/app/oracle/product/10.2.0/Db_2/bin:/usr/bin:
    LOGNAME=oracle
    HZ=100
    TERM=xterm
    SHELL=/bin/csh
    zngds1gk% cat .cshrc
    umask 022
    setenv ORACLE_BASE /space/oracle/app/oracle
    setenv ORACLE_SID adm
    setenv DISPLAY 47.102.212.108:0.0
    setenv ORACLE_HOME /space/oracle/app/oracle/product/10.2.0/Db_2
    setenv PATH /space/oracle/app/oracle/product/10.2.0/Db_2/bin:$PATH
    And now it works...
    Thanks.
    ~Jayant

  • Clipboard from IllustratorCC 17.1 no longer creates "New File" document size in PhotoshopCC 14.2

    This is a headache and a half:
    Typically (Before Photoshop CC Upgrade 14.2 and Illustrator Upgrade 17.1.0) the CMYK Vecor Objects copied from Illustrator would provide an exact document size when creating a new Photoshop Document with Preset: Clipboard.
    In this sample (which worked days before perfectly) the vector object I have in my clipboard is 70"x34.5". It would have opened up a New Photoshop document at 70"x34.5" and I'd select any resolution I wanted. Now, it seems to be copying "Pixels" only from Illustrator. Meaning it gives me only the width of 16.703" x 8.273". This is the correct proportion, but not the correct size. Now I can not do basic tricks in PSD and bring them back over to AI the same exact size as before.
    This is a headache and a half. I have tried changes in AI to the Clipboard preferences, turning off SVG Code for the Clipboard.
    This does not solve it:
    In Photoshop I can not find any preference that talks about file handling or clipboards.
    Temporary Workaround:
    My solution to this is to have to remember my actual dimensions from AI and create my new document by inserting all the information exactly, before pasting the Vectors into Photoshop. This complicates and slows down my workflow.
    Second Solution:
    Saving my artboard to PDF and reopening the artboard into Photoshop seems to retain the original document size data. Still a few extra steps that I never had to make since Photoshop 3.0
    I formally request that the Adobe Team figure out this Clipboard issue from AI to PSD.
    This is not for a lack of understanding of Pixels vs. Vectors. Don't reply with questions to that effect. I know what I am doing here folks.
    Thanks.
    Greg
    www.creativebearings.com

    Sounds to me like you are pasting it as a path. (I paste as pixels).
    But the problem is that you are changing the ppi, while leaving the dimension in total pixels. Before you change the PPI, change the width and height to inches or mm or cm, then change the ppi, then it should paste in just fine.
    Case in point, right now I have a clipboard file that is 125 x 28 pixels at 72 dpi. If I change the dpi to 300, the file will still only be 125x28 pixels. If I change the paramaters from pixels to inches 1.736 x .389"  - then I can change the resolution to 300ppi  which gives me a file that is 521pixels by 117 pixels.
    Now the issue for me is that I have to do this for EVERY file I paste over from illustrator, when prior to the 'update' any new document would be created at the same resolution as the previous document I was working on. So if I was working on 1200 ppi files, the next new one I would make would also default to 1200 ppi regardless of what was in the clipboard.

  • When downloading a file from google drive and save in my phones document directory,the file size is compressed. Why?

    I have downloaded files from "Dropbox" and save in phones document directory,After downloading in document directory,the size of the download file is same as the actual size in dropbox. I can also open it from document directory.Everything is ok. But when I follow the same process for google drive files, the file size is compressed(if actual size of file is 1.2Mb the download file size is 61Kb). So I can not open it from document directory.So, How can i download the actual size of the file in document directory? I am using google api objectivec client for google drive.
    Thanks in advance.

    If an iphone were to try to download a full size document ot photo, it woul overload its own ram, and crash, resulting in a laggy iphone. Therefore it is compresses

  • How to change DEFAULT font and font size on new Pages document

    When I open a new Page document, it always comes in with a default font and font size. I know how to change those settings on the open document.
    I want to know how to change the ~default~ font and font size so that a new Page document always opens with those default settings.
    -Thanks for your service to the community.

    Hi Lionate
    Welcome to the forum.
    Make a document to your liking.
    Change the Body style and any other styles in :
    +Menu > Show Styles Drawer > click on the little triangle next to Body > redefine Style from Selection+
    Capture the page:
    +Menu > Format > Advanced > Capture Pages… > Name it > OK+
    +Menu > Format > Advanced > Manage Pages… > Delete other Sections/Pages > OK+
    Save as a template:
    +Menu > File > Save as Template…+
    +Menu > Pages > Preferences > General Preferences > For New Documents > click Use template: > Choose > browse to the template above+
    Peter

  • I have Keynote'09. I started a new Keynote document, closed it, came back to continue on it. I tried to open it and received the drop-down window "need a newer version of Keynote to open this document." ???

    I have Keynote '09 and have used it many times. Today I started another Keynote document, stopped for a while, came back to continue, and received, "You need a newer version of Keynote to open this document."  ?? Stumped.

    IOS Pages 2.0 and 2.1 implement an entirely incompatible document format with Pages ’09 v4.3. It cannot open them, and you are then prompted to update to Pages v5+ which is compatible with your IOS Pages.
    Unfortunately, updating to Pages v5+ is a bad thing, as it is a brand new application that has omitted over 90+ features from Pages ’09 v4.3. When you update to Pages v5+, it will move your old still functional version of the earlier Pages into /Applications/iWork. Aside from all the missing functionality, Pages v5+ will likely damage older documents that depend on specific Pages ’09 v4.3 features (including AppleScript and custom Templates).
    Oh, by the way, the older and new Pages documents have the same filename extension (.pages) making document organization difficult without applying different tag colors to old and new documents.
    We are recommending that users remain on their earlier Pages version. You may have to export documents from IOS Pages as Word .docx to avoid the OS X Pages update notice.

  • Illustrator & Indesign CC (Windows) crashes when trying to open an new/existing document

    I installed Illusrator & Indesign CC when they were released as I had a pre-existing Adobe CC account which I had previously downloaded Photoshop and Indesign CS6 with. When I try to use Indesign & Illustrator CC they both crash when you go to open a new / existing document. I also downloaded Photoshop CC and this works fine. I have phoned Adobe 6 times to try to resolve the issue, each time I wait on hold for an hour and they get told they will call back within 2-5 hours but this never happens.
    Has anyone else had this issue since installing CC and found a way to resolve it? 

    Are Tahoma and Verdana fonts installed on your system?

  • How can I create a new Numbers Document through AppleScript?

    How can I create a new Numbers Document through AppleScript?
    I try this:
    tell application "Numbers"
    make new document with properties {template name:"blank"}
    end tell
    But don't work.
    Where can I find documentation about it?
    Thanks

    If you try to invent your own syntax, you are starting on very wrong basis.
    The required syntax is defined by the Numbers AppleScript's dictionary.
    This one doesn't know what is a template.
    This is why, in the link posted by badunit, I use an other scheme to create a new document.
    I know that it's awful but it's the only one available at this time.
    Yvan KOENIG (VALLAURIS, France) samedi 4 juin 2011 11:25:25
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • After installing Mavericks I can no longer save a new word document or pdf by typing the name of the destination folder in the Finder window.  The save button greys out.  Solutions anyone?

    After installing Mavericks I can no longer save a new word document or pdf by typing the name of the destination folder in the Finder window.  The save button greys out.  Solutions anyone?

    Please follow these directions to delete the Mail "sandbox" folders. In OS X 10.9 there are two sandboxes, while in 10.8 there is only one. If you're running a version older than 10.8, this comment isn't applicable.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder—not just its contents—to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window.
    This action will delete any custom Mail stationery that you have created. If you want to preserve it, ask for instructions.
    If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Repeat with this line:
    ~/Library/Containers/com.apple.MailServiceAgent
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

Maybe you are looking for

  • What is wrong with my MacbookPro?

    My computer is a MacbookPro that I bought in 2010. About a month and a half ago I started to experience my computer randomly flashing white with a click and then the screen turning black. When I would hit the power key to turn it back on, it would ch

  • Mouse disappears when is full screen

    i am on 2 screens, when i put the laptop in full screen while watching a vid, the mouse goes after i click a few time on the other displays?

  • My ipad screen is blue

    My iPad screen is like a dark blue-ish color. the screen will not come on. when I reset it, the apple will show up, but it has think blue lines running across, and when the apple goes off, then screen cuts off again. This is a new iPad, never been us

  • Problem when downloading FaceTime from Appstore in Mac

    I get this message everytime i try to download it: "FaceTime can't be installed on "Macintosh HD" because the version of Mac OS X is too new."

  • New Podcast Episodes won't download

    I subscribe to a lot of NPR podcasts and this week the new episodes won't download. When I hit refresh at the bottom right corner nothing downloads but when I go to the iTunes store there are new episodes. I can get them there by hitting the "get epi