[Apache2 | PHP] serving local files

Hi there,
A recent hardware update and reinstall of my primary office server had broken the following functionality of my webbased dossier program:
With the use of glob() I can list all the files in the directory belonging to a dossier - this is still working. All the files in the list are served as a <a href="file://location/name">name</a> -url.
But when I click on the links, firefox or epiphany do nothing: it doesn't fail to open it, it doesn't even try to open it and no error is given.
Since all the files are on the a file- and webserver, and the directories with the files are also served by nfs to the clients, this should work and I suspect that something in apache or PHP is breaking this functionality. However, I don't recall that I used to change the default config to use this site, other than the alias- and directory-directive in /etc/apache2/conf.d/*name*...
Zl.
PS: the code makes a difference for those connecting from the outside: the files are then served through http, and this functionality still works (but the docs are opened read-only, as is to be expected).
Last edited by zenlord (2010-05-31 18:23:50)

OK, this is *weird*: if I right-click on the link and copy the link over to the address-bar of a new tab, the file opens immediately.
Seems like it is a client-problem? Or could it be a server-side problem?

Similar Messages

  • I can NOT open php local file

    Hi every body,
    when i try to open a Local php file from safari or any other browser, i get the following message :
    Forbidden
    You don't have permission to access /~user/Forkan.org/index.html on this server.
    Please note that i already enable apache and php server as in the Photo..
    Thanks for any clear and useful help...
    (i am running OS 10.8.2)

    thanks,
    in the attached photo, the file index.html is one of many files Unreadable with the ext .html and .php also...
    in fact, after i update to 10.8.2 i read the following article :
    http://coolestguyplanettech.com/downtown/install-and-configure-apache-mysql-php- and-phpmyadmin-osx-108-mountain-lion
    and i did all the instructions inside...
    Please note that when i put : localhost
    in my browser, i really get :
    It works!
    But each time i put :
    http://localhost/~user/Forkan.org/index.html
    http://localhost/~user/Forkan.org/Movies.php
    http://localhost/~user/Sample.php
    and also :
    http://localhost/~user/phpinfo.php     (like the file in the article after i made that file and put it correctly of course)
    each time i put that i get :
    Forbidden
    You don't have permission to access /~user/phpinfo.php on this server.
    Many thanks for any Help...

  • How do I stop Dreamweaver from updating the Test server copy of a file when I open the local file?

    The subject says it all. Every time I open a file, Dreamweaver connects to the testing server and uploads the local file to the test server.
    I want to stop this behaviour.  It's annoying!

    My testing server is IIS running on my local machine.
    The "local" copy of the file is actually on a remote share.  I have the test server copy open in Notepad++.  The two files are identical save for on extra line in the copy on the testing server.  When I open the "local" copy in Dreamweaver, it shows me that some file activity is being done, and then Notepad++ tells me the file has changed and do I want to reload it.  If I do, that extra line vanishes.
    When I check the file activity log, it shows that the file activity is complete.
    I haven't mentioned the production server because it doesn't seem to be affected, but we do have one.

  • How to delete a local file in the presentation server.

    Hi All,
    How to delete a local file in the presentation server. As we do using 'delete dataset dsn' in application server. How can i achieve this. My requirement is after uploading file using gui_upload, i want to delete that source file. Please let me know, how can i achieve this.
    Thanks in advance.
    Regards,
    Vishal

    data: l_rc type i.
      data: f_name type string.
        move 'c:\YourFile.txt' to f_name.
        CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
          EXPORTING
            FILENAME             = f_name
          CHANGING
            RC                   = l_rc
         EXCEPTIONS
           FILE_DELETE_FAILED   = 1
           CNTL_ERROR           = 2
           ERROR_NO_GUI         = 3
           FILE_NOT_FOUND       = 4
           ACCESS_DENIED        = 5
           UNKNOWN_ERROR        = 6
           NOT_SUPPORTED_BY_GUI = 7
           WRONG_PARAMETER      = 8
           others               = 9
        IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

  • Connecting to a local SQL server .mdf file

    Hi all,
    In doing some prototyping of my database I started working with a local copy of an SQL Server database since it so conveniently integrated with the Visual Studio .NET tools I use. Now that I have spent far too much time working on a local prototype, I would very much like to migrate it to our in-house database rather than rewrite the whole thing (it is quite large in terms of tables and constraints and none of our in-house tools generate code from ER diagrams).
    Seeing that SQL Developer had a migration utility I pounced at a chance to use it. I installed it as well as the recommended JDBC driver; however, it occurs to me that I have no idea how to connect to a local database file using the host name and port fields given to me. Is there some convenient way to configure SQL Server 2005 to forward this file to some kind of local host? Or is there any other driver for use with a local .mdf file? Help would be greatly appreciated.

    While it does come with a copy of SQL Server with it, visual studio suspiciously just asks for a file name, so I would assume it reads directly from the .mdf
    I have a copy of SQL Server 05 on the machine, but I haven't done anything in the way of server side configuration before, so I can't even guess how to direct it to serve the file.
    All software packages involved are:
    Windows XP
    SQL Server 2005
    Visual Studio .NET 2005
    SQL Developer 1.5.1
    Oracle client 10g connecting to an Oracle 9i release 2 server
    Any pointers to the right direction or alternate migration solutions would be great.
    Edit: I am highly suspicious that Visual Studio was connecting to this file through SQL Server Express and not my standard edition copy, and it is therefore not attached to the database, the solution is not looking entirely easy, so an alternate migration may be a better choice. Thanks in advance for any help.
    Edit: Well my suspicions were confirmed. I attempted several solutions. First of which being the MS SQL Express publishing wizard so that I could publish to SQL and run the script via Toad or SQL Plus; however, it only targets MS SQL Server 2000 or 2005 which would result in a lot of hand editing in terms of migration. Attempting to find a script converter did not help as they all either failed outright or demanded a connection to the datbase via ODBC or JDBC (which doesn't support SQL Express' less than clever attach on connection ideas). This led me to the alternate solution of trying to attach the file to my main database and connect to it; however, the SQL Server command prompt has some sort of permissions issue with my office security setting (though I can edit files fine) and results in failure.
    I think it is about time to throw in the towel and just work it out by hand. This would be greatly expedited by any visual database tools that generate code from ER diagrams if you happen to know of a freeware solution. We lack an internal copy of Oracle Designer and the free license only permits a single prototype. So any suggestions on the front of freebie visual object relational tools and alternate migration ideas would be of great help. Until then I'll be grinding through it with moderate dissatisfaction.
    Thanks again.

  • Backing up Local File Server to a remote File Server - Best way?

    Hi all,
    I am building a project for my University Dissertation which is based on the implementation of an ISO 27000 compliant virtualised environment.
    I have three sites ( offices ) each with their own local file server, that i would like to back up every 24 hours to remote primary data centre.
    The primary data centre will be based in office 1, and the secondary data centre will be based in office 3.
    As this is only a project, and not a real life implementation, all the machines sit on the same network, running on the same physical host, but i need to show the process of backing up the 'local' file servers to the 'remote' ones. Each site will have its
    own file server in the data centre.
    every 24 hours, the primary data centre will backup the data to the secondary data centre ( this is so i can introduce the idea of business continuity into the project). 
    Is anybody able to direct me in the right direction for backing up my local servers to a remote server?
    Below is my high level diagram, that illustrates what i am doing. 
    Many thanks in advance
    Aaron

    One way that I have seen many organizations implement is to simply install Microsoft Distributed File System.  You can set up a hub and spoke configuration where the 'master' copies are in the hub location from which you want to backup.  Then any
    place the needs copies is a spoke off the hub.
    Another possibility would be to use Microsoft's BranchCache capability.
    Either one is part of the operating system.  I can't say specifically which would work better for your situation without getting more detail.
    .:|:.:|:. tim

  • Deliver a report in XML format and save it to local file system on the server

    We have OBIEE 10.1.3.4 on Redhat linux. We want to have generate a report in XML format and saved it to the server's file system. Did not realize this is s difficult task. Basically
    1) How to create a XML report? It is not listed in the output items of a layout template.
    2) How to deliver XML the report  to local file system. Look into the Delivery section of Admin page. FTP should be the best choice, but does that means that one need to install and run ftp server on the BI server box?
    Thanks

    Hi,
    Since I still have problems on this subject, I would like to share on how it progresses.
    Currently I have a problem of timeout in step "Truncate XML Schema" with the URL that I mentioned above.
    The exact error is the following : 7000 : null : com.sunopsis.sql.l: Oracle Data Integrator TimeOut : connection with URL [...]
    The connection test is still OK.
    I tried to increase the value in the user's pref but there's no change.

  • There was a problem connecting to the server "my server.local" this file is available on your computer. Access the files and volumes locally.

    Hi,
    I have a strange problem connecting one of the office laptops (Macbook Pro 10.7) to the disk in the Apple Time Capsule.  It's just one laptop that has this problem and the other 3 no problems at all and they all run OS X 10.7 Lion, I can access the Time Capsule disk over WAN on all machines but locally on the problem machine i get this message "There was a problem connecting to the server "myserver.local" this file is available on your computer. Access the files and volumes locally."   Now from this message it sounds like the problem laptop thinks the network drive (Time Capsule) is the same as it's self in the way of name or address however they clearly have different IP addresses locally.   
    Any ideas on this would be apreciated as I can only think a clean install but don't want to do this if not necessary.
    Thanks
    Jarrah

    I think I gave you some bad info in the above, where i enterered the text "myserver.local" & "example.local" this was the host name of the server (Time Capsule) so not local on the computer.
    No i didn't try your method, I'll give it a go - I thought the folder option was for local files and not on a server ?

  • Is it possible to connect a local file server to 365 onedrive via sharepoint?

    We have our local 2012 file server with everyones document directories and common shares. We use AD and have all user accounts defined. As part of our K12 licensing we have Office 365 E1 for all staff, so I set up the Azure AD Sync and we now have all the
    staff accounts set up in 365 and people can work on Office from home.
    The problem is that everyone wants their files from home as well, ideally in their OneDrive. OneDrive for Business doesn't seem to have a mechanism to sync all the files from our file server to each persons OneDrive automatically. I read somewhere that I
    can do it by using SharePoint as a intermediary - that is I can set up a local sharepoint that syncs the fileserver to sharepoint, then I can set up the 365 sharepoint to sync between the onprem sharepoint and the 365 OneDrives.
    This seems like a massive pain but is it doable? is there a better way or is it not possible and sharepoint/local files will always be separate from Onedrive?  it seems like such a common and obvious request for people who can't dump local file servers.
    Mark

    not all to each, just duplicating our current system. Each user has a few hundred mb of files (on average) and there is a common drive with a few hundred gb.
    Right now the assumption by Microsoft is that each user will individually install the local Onedrive app and sync their C: drive documents folder to their Onedrive. In our case we have the documents stored centrally and the onedrive app will not sync a network
    folder. I am looking for some method of making it happen.

  • If i have deleted my local files, how can i download all my files at once from the creative cloud server?

    Hi,
    My creative cloud files have all been deleted on my machine, all put in the trash (not by me!) I've recovered some but I want to download everything from the creative cloud server before I sync again.  is there anyway to do this? or do I have to download every single file individually, which would take hours......
    I can see all my files on the cloud server but can't figure out why it has dumped all my local files in the trash.
    Thanks!

    Just to add that, I had exactly the same issue this morning, so it is certainly a more widespread problem rather than an isolated case.
    For Adobe's benefit, here's a summary of what happened for me:
    All cloud files automatically moved to trash on turning my computer on and auto syncing. All folders remained, but empty.
    Files still existed online through the browser, in the Files section and had not been put into Archive.
    When I got home to my personal Mac, the exact same situation happened as above. Though I made sure to do a backup before connecting to wifi and allowing it to sync!
    Tried signing out and deleting the Creative Cloud files folder, then signing in again, hoping it would re-sync and create all my files again to match what was online, but it just created the directory of empty folders again.
    Was on a call with support for an hour which was painful, with them taking control of my screen but having no idea what to do to fix it.
    As with you guys, I'd like to download all my files again (not including Archive), but as a batch and not one by one online! Hopefully the sync will fix and download the lot again automatically.
    Have you worked out what's wrong yet Adobe?
    Thanks

  • Transfered Local files disappear when put in a different folder on remote server

    Hello everybody,
    I know this question is kinda asked a lot, but I cant seem to find the right answer that relates to my problem.
    I am trying to "put" my local files on my remote server. I managed to get two files in the right folder on my remote server.
    But now every single time I put one of the other local files on the remote server, it comes in the main folder (that works fine). I then have to drag it to the right sub-folder in
    order for my website to work. When I drag these files into this sub-folder, they disappear on the remote server.
    I keep putting the local files in the remote server and this works, but putting them in the sub-folder of the remote server doesnt work.
    Does anybody know what the problem could be?
    I try uploading from the hosting website, but my website doesnt work, I checked all the files, the links everything works. Therefore I am now trying it through dreamweaver.
    Also I check the remote server online and the two files that did work, showed up there, so its all connected fine.. :s
    Im using Dreamweaver CS5.5
    Any help would be great, I need to get this website uploaded tomorrow for my uni assignment, also if somebody knows a good WORKING freehosting website, please let me know
    Thanks,
    Maartje

    Yeah the folder on the remote server is htdocs , I am putting all the files in the htdocs folders, otherwise it says my website doesnt work.
    Your remote site is not properly defined.  Put "htdocs" into the Root Directory: field of the Remote server's definition.  Now your files will always upload to the correct location.
    Does the order of the files need to be the same too?
    No.  They are ordered in DW in the way that you have specified by clicking on the associated column headers.

  • OVMRU_002030E Cannot create OCFS2 file system with local file server: Local FS OVMSRVR. Its server is not in a cluster. [Thu Dec 04 01:33:10 EST 2014]

    Hi Guys,
    Im trying to create a repository .I have a single node OVM server and have presented two LUN's (Hitachi  HUS110 direct attached (via FC))
    I've created a server pool and unchecked the clustered server pool. I see the LUN's (physical disk from Oracle Virtual manager) .But when creating the repository i'm having this error
    "OVMRU_002030E Cannot create OCFS2 file system with local file server: Local FS OVMSRVR. Its server is not in a cluster. [Thu Dec 04 01:33:10 EST 2014]"
    Any steps i missed?Appreciate anyone's input
    Regards,
    Robert

    Hi Robert,
    did you actually add the OVS to the server pool, that you created?

  • How do you connect Flash Builder to a NON-LOCAL PHP Server?

    Is it possible to connect Flash Builder 4 to a non-local PHP Server?  In my case, I want to connect to a PHP server on my web-host (similar to GoDaddy).
    This seems like a really stupid question, but every single tutorial or forum post I've Googled in the past 2 hours talk about how easy this is but all of them use "...localhost..." in the Root URL and I can't find anywhere in Flash Builder to enter FTP style credientals!
    I do not want to turn my PC into a PHP/SQL/IIS server.  I want to be able to do all of my work remotely as I do with Dreamweaver. 
    I've been trying to do this one simple thing for the better part of 2 days and can't believe how under-documented this feature is.
    Please please please help!
    Thanks
    Charles

    Upload your services to a directory on your host, upload your remoting app (Zend AMF etc) and configure it, then change the end point in your code to the gateway.php on your server:
    yourService.endpoint = "http://www.yoururl.com/pathway-to-your/gateway.php";
    For instance, one of mine are:
    protected function updateButton_Click(event:MouseEvent):void
                    // TODO Auto-generated method stub
                    support_Requests.ticket_id = supportGrid.selectedItem.ticket_id;
                    support_Requests.hub = supportGrid.selectedItem.hub;
                    support_Requests.username = supportGrid.selectedItem.username;
                    support_Requests.contactNumber = supportGrid.selectedItem.contactNumber;
                    support_Requests.email = supportGrid.selectedItem.email;
                    support_Requests.request = supportGrid.selectedItem.request;
                    support_Requests.status = statusButtons.selectedValue.toString();
                    support_Requests.note = noteUpdate.text;
                    supportRequestsService.endpoint = "http://www.not-telling-you-my-url/app-resources/gateway.php";
                    updateSupport_RequestsResult.token = supportRequestsService.updateSupport_Requests(support_Requests);
                    currentState='Home';

  • Am I required to save files to the Creative Cloud, or may I use a local file server?

    Am I required to save files to the Creative Cloud, or may I use a local file server for in-office sharing?

    You are not required to save files to the Creative Cloud.
    The online file storage is merely and an additional service, but there are several benefits:
    You file is backed up online in case the file is accidently deleted locally or your hard drive crashes.
    Image previews of InDesign, Illustrator and Photoshop files in the web browser for someone who does not have these programs and would otherwise be unable to view the file.
    Share the file with someone else allowing them to comment and download.

  • WWI Generation server installation file for local workstation.

    Hi Experts,
    Can you please provide me the name and path of WWI generation server installation file at SAP marketplace.
    Thanks and Regards
    Kapil

    Dear Kapil
    there is an OSS note to check to get in any case the current WWI version. E.g., check: WWI for Experts
    EHS WWI Installation - Activities in Local SystemWWI for Experts
    and
    OSS notes in Global Label management
    C.B.

Maybe you are looking for

  • Windows Vista Update Error 80072EFD

    got Vista Home Premium 32bit and updates were running smooth till January. In Feb- March updates just stopped to work due error code 80072EFD. Have tried with Fixit ( doesn't work as well ) got an error 8004FE2C, and Win Defender got  the same error

  • Problem calling Oracle's procedure in Chain

    Hi In chain I call Oracle's procedure using ABAP code: ====================================== REPORT  ZETL_MAIN. DATA: p_err_code TYPE i,       p_msg(1000) TYPE c. EXEC SQL.   EXECUTE PROCEDURE ETL.MAIN (OUT :p_err_code, OUT :p_msg) ENDEXEC. IF p_err

  • Does oracle has 32 bit client version for Solaris 10

    please suggest

  • How to Chinese enable the current Eng. SAP R/3  for our China subsidiary

    Hi There, I am to plan for an implementation to Chinese enable the English-only SAP R/3 ERP and SAP BW3.5 for our China subsidiary.  Requirement : we want to keep one single SAP system used by the whole group (China and the rest of the world), but we

  • Can't open graphic attachments to thunderbird

    Thunderbird 24.5.0 on Win7.// Emails with graphics attachments (.jpg etc) cannot be opened directly from Thunderbird. When clicked to open, anti-virus scans them, but no further action takes place. In order to open graphics attachments, I must save t