[SOLVED] can't start apache ¿because owncloud logfile doesn't exist?

I've just installed MariaDB, PHP, mysql and owncloud, but since I installed this last one I can't run httpd. This is the error:
$ systemctl status -l httpd
● httpd.service - Apache Web Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
   Active: failed (Result: exit-code) since jue 2014-05-22 10:43:38 ART; 6min ago
  Process: 5166 ExecStart=/usr/bin/apachectl start (code=exited, status=1/FAILURE)
may 22 10:43:37 archserv systemd[1]: Starting Apache Web Server...
may 22 10:43:38 archserv apachectl[5166]: (2)No such file or directory: AH02291: Cannot access directory '/etc/httpd/logs/' for error log of vhost defined at /etc/httpd/conf/extra/owncloud.conf:11
may 22 10:43:38 archserv apachectl[5166]: AH00014: Configuration check failed
may 22 10:43:38 archserv systemd[1]: httpd.service: control process exited, code=exited status=1
may 22 10:43:38 archserv systemd[1]: Failed to start Apache Web Server.
may 22 10:43:38 archserv systemd[1]: Unit httpd.service entered failed state.
And
$ nano /etc/httpd/conf/extra/owncloud.conf
<IfModule mod_alias.c>
Alias /owncloud /usr/share/webapps/owncloud/
</IfModule>
<Directory /usr/share/webapps/owncloud/>
   Options FollowSymlinks
   Order allow,deny
   AllowOverride all
   allow from all
   php_admin_value open_basedir "/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/owncloud/:/etc/webapps/owncloud"
</Directory>
<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /usr/share/webapps/owncloud
    ServerName owncloud.foo.com
    ErrorLog logs/owncloud.foo.info-error_log
    CustomLog logs/owncloud.foo.info-access_log common
</VirtualHost>
It seems simple, but I can't understand it. What am I missing?
Thank you all.
Last edited by persio (2014-05-22 14:19:14)

Instead I suggest to change Log directories to  /var/log/httpd/
    ErrorLog /var/log/httpd/owncloud.foo.info-error_log
    CustomLog /var/log/httpd/owncloud.foo.info-access_log common

Similar Messages

  • My mac book air can't start installation, because i use windows installation in DOS to make partion, now no mac os on it. How to get back the mac os? i have a window based iso image from a friend, because in my country there is no Apple service.

    my mac book air can't start installation, because i use windows installation in DOS to make partion, now no mac os on it. How to get back the mac os? i have a window based iso image from a friend, because in my country there is no Apple service.

    It sounds like you destroyed your boot partition and the recovery partition.  Depending on it's age, your MacBook Air might be able to do a net boot.  Plug and ethernet connection into it and attempt to boot.  If it has the right firmware, it will find a net boot configuration on the net and boot that.  Then it will give you a Recovery Partition like display and allow you to reinstall the OS X version that came with it.... assuming that it was Lion or ML.  If your computer came with Snow Leopard, then even the net boot won't work. 
    At that point you need a bootable USB Key, or an external DVD drive AND a Snow Leopard installation DVD. 
    An Apple Store, if there is one nearby, MAY be able to get you going again.  However, whatever is on the SSD now will be toast too.

  • Can't start itunes because it gives me a message thta MSVCR80.dll is missing in my computer

    I can't start iTunes because it gives me a message that MSVCR80.dll is missing in my computer

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99437)

  • Can't start computer because of coloured wheel

    Can't start computer because of coloured wheel

    We need more details. What were you doing before the colored wheel? You can always press the off/on button on the top right and hold it down to force the computer to turn off and then restart using the same button.

  • How do I know if my update didn't work because the record doesn't exist

    I am updating a row in a table and I want to know if the update didn't work because the record doesn't exist. Is there any way of knowing this? I want to avoid doing a select first if at all possible. I am using sqlj with Oracle 9i on Linux and JDK 1.3.1.

    I got it. So if anybody else needs to know this here it is.
    import sqlj.runtime.ExecutionContext;
    ExecutionContext ec = new ExecutionContext();
    #sql [ec] {update statement};
    if (ec.getUpdateCount() == 0){
    throw new SQLException("No rows for update");

  • How do I know if an update failed because the record doesn't exist

    I am updating a row in a table and I want to know if the update didn't work because the record doesn't exist. Is there any way of knowing this? I want to avoid doing a select if at all possible. I am using sqlj with Oracle 9i on Linux and JDK 1.3.1.

    ...and I want to know if the update didn't work because the record doesn't exist. It is possible that you are looking at the problem wrong. An update doesn't 'fail' if there is nothing to update. So it works whether anything was updated or not. And so it might simply not be possible to see whether zero or more rows were updated. (Returning how many rows were updated might represent an enhancement rather than a necessity.)
    I didn't find anything specifically that said this was or wasn't supported by briefly looking at the Oracle docs and searching google.
    If nothing else you could always do a select first with the same where clause and then do the update if the select returns a non-empty set.

  • Can't start IASPT because ApacheCore.dll is missing

    I installed SOA 10g on Windows 7 64-bit (supports 32 bit) and got this error while starting up the opmn either ApacheCore.dll is existing in
    $ORACLE_HOME/Apache/Apache directory.
    iaspt.exe - System Error
    The program can't start because ApacheCore.dll is missing from your computer. Try reinstalling the program to fix this problem.
    OK
    Can anyone help to troubleshoot this issue?
    Thanks in advance-
    ntdp
    Edited by: user13103787 on Sep 13, 2010 10:00 AM
    Edited by: user13103787 on Sep 13, 2010 10:10 AM

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • [solved]can't start gnome as user

    I can't start gnome as user  only as root.
    error message: failed to create file /tmp/gconf-test-locking-file-kx6h6t:Permission denied (error=13)
    I think this is an pacman error (permissions)
    I made an clean install  because   last pacman -Syu  crash my os.
    And i  get the error as above so i can't get it to work.
    I also tried to run enlightment but several applications don't start.
    How to solve this?
    Solution was i wiki :chmod 1777 /tmp
    Last edited by fernux (2008-02-11 20:39:41)

    error message: failed to create file /tmp/gconf-test-locking-file-kx6h6t:Permission denied (error=13)
    this is the problem, it states that it can't create a file because of a lack of permissions to do so. Its trying to create the file in /tmp, so that tells us that /tmp directory has permissions that aren't correct or gnome would work. What u need to do is
    ls -ld /tmp
    and post the results here so someone can tell u how to put the correct permissions up.
    edit: I see u found the answer yourself.
    Last edited by jacko (2008-02-11 20:42:30)

  • I can't start apache since upgrading to Mountain Lion

    Why Apple remove the web sharing feature I'll never understand. I have tried everything I've found on the web to get apache started but nothing seems to work. Apache started for a brief period of time but now it won't start at all. sudo apachectl start/tsop/restart all seem to work with no errors but when I go to localhost I get the "Safari can't find the server" error page. I've rebuilt my user.conf file, I've tries forcing org.apache.plist to start (took me a while bu tI think I've finally undone this bad idea). I've even tried OSX Server but even that was causing problems and to recreate my multisite setup I was using under apache in Lion would be like using an atomic bomb to take care of an ant hill in my back yard. I'm no apache server admin so while I can read the aache logs in console I'm not entirely sure what I should be looking for to see if an error is occuring. A cursory glance seems to show nothing more then the obvious things like "File does not exist". Thanks, of course you don't think the file exists beacuse the server isn't running. Any suggestions on how I could nuke apache and return it to its default state in either Lion or Mountain Lion?

    I see what you mean now that I look. I also installed Server.app and myWeb Sharing option is gone from the Sharing prefpanel. I wonder if it still appears for those who never installed Server.app?
    The previous Apache setup is still there in the old location at /private/etc/apache2/ and serves files from /Library/WebServer/Documents/ The problem is that Server.app overrides the launching system for the old setup. You may need to go to the file at /Library/LaunchDaemons/com.apple.serverd.plist and rename it by appending an "X" to the end which will prevent it from launching. When you reboot you won't be able to log into the Server.app. You should then be able to run launchctl and start Apach from the file at /System/Library/LaunchDaemons/org.apache.httpd.plist . If that file is missing report back here and we'll figure out what's wrong.

  • Problem installing iTunes update: "Can't start" iTunes "because MSVCR80.dll is missing" from my computer. Please help!

    Please help! I tried to update my iTunes as prompted, but it did not install correctly, and now I am getting the following message and do not know how to fix the problem: 
    "The program can't start because MSVCR80.dll is missing from your computer. Try reinstalling this program to fix the problem."
    Another window gives me this message:
    "iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 126)"
    BUT I AM AFRAID  TO REINSTALL iTUNES and lose my library! Would greatly appreciate learning how to resolve this porblem without losing my music!
    Cheers!

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Non-root user can't start Apache on port 443

    Today I've been attempting to get SSL working for my Oracle Applications 11i (11.5.10.2) installation and I just hit a small problem. I've followed all of the Oracle literature I've come across, which instructed me to create a new (non-root) user to own the database tier and the applications tier. I've also followed the instructions for configuring SSL ([Doc 123718.1|https://metalink2.oracle.com/metalink/plsql/f?p=130:14:6976756808231635106::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,123718.1,1,1,1,helvetica]) and the SSL wizard in OAM defaults to the standard HTTPS port (443). However, because 443 is a privileged port, a non-root user cannot bind to it. In other words, the Oracle literature itself has led me to an impossible situation. This is what I see in the Apache error log:
    [Fri May 15 15:05:03 2009] [crit] (13)Permission denied: make_sock: could not bind to port 443
    At this point, I see two choices:
    1. Run the application tier services as root.
    2. Change the SSL port to something greater than 1024 (i.e. 4443).
    I'm leaning towards option #2, since option #1 negates the advantage of using a non-root user to begin with. Does anyone have any other suggestions? Does Oracle have any recommendations for this scenario?

    Hi,
    You just need to start Apache as root (not all the application services). For Option 1, the application tier files should be owned by applmgr/oracle user (not root), and for Option 2, you do not need to change the port (though it is valid option). Just follow the steps in the following document.
    Note: 356080.1 - How to run Apache on Port 80 in Apps 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=356080.1
    BTW, this is mentioned in the document "if you have chosen port 443 (or any port under 1024) for your SSL port, you will have to start Apache as root".
    Regards,
    Hussein

  • Can't start apache after linking mod_wl_20.so in the https.conf

    I get a segementation fault when trying to start apache after i have linked the apache plug-in.
    Anyone ever run into this?
    I fails whether the <IfModule> statement is there or not.

    Appreciate your response. This is all I have done.
    Installed IHS 2.0.47, copied mod_wl_20.so file to modules directory and made one entry in httpd.conf:
    LoadModule weblogic_module modules/mod_wl_20.so
    IHS core dumps on when tried to startup. This is all that is documented in the "Using Web Server Plug-Ins with WebLogic Server" document. Please let me know if I am missing any additional information. Thanks! i would appreciate if you can email me your httpd.conf file for my reference. Thanks!
    [email protected] or [email protected]
    Suresh,

  • [Solved] Unable to start Apache

    Hi All,
    I install Apache with "sudo pacman -S apache"but "sudo systemctl start httpd.service" failed and "sudo systemctl status httpd.service" showed:
    httpd.service - Apache Web Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
    Active: failed (Result: exit-code) since Sun, 2012-12-16 03:36:39 EST; 7s ago
    Process: 4844 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
    CGroup: name=systemd:/system/httpd.service
    Dec 16 03:36:39 ArchCustom apachectl[4844]: httpd: apr_sockaddr_info_get() failed for ArchCustom
    Dec 16 03:36:39 ArchCustom apachectl[4844]: httpd: Could not reliably determine the server's fully qualified domain name, u...erName
    Dec 16 03:36:39 ArchCustom systemd[1]: Failed to start Apache Web Server.
    Dec 16 03:36:39 ArchCustom systemd[1]: Unit httpd.service entered failed state
    Warning: Unit file changed on disk, 'systemctl --system daemon-reload' recommended.
    Then I went to /etc/httpd/conf/httpd.conf and changed "#ServerName www.example.com:80" to "ServerName 192.168.4.19:80" (later I changed to "ServerName localhost:80", but it didn't work either). Now the systemctl status showed:
    httpd.service - Apache Web Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
    Active: failed (Result: exit-code) since Sun, 2012-12-16 03:39:50 EST; 3s ago
    Process: 4863 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
    CGroup: name=systemd:/system/httpd.service
    Dec 16 03:39:50 ArchCustom systemd[1]: Failed to start Apache Web Server.
    Dec 16 03:39:50 ArchCustom systemd[1]: Unit httpd.service entered failed state
    What should I do next?
    Thanks.
    Last edited by dxxvi (2012-12-20 11:48:20)

    zenlord wrote:Read the wiki: https://wiki.archlinux.org/index.php/Apache
    This is the easiest answer to give for my question "What should I do next?" Yes, I already read the wiki. Apache run successfully without any modification 3 - 4 times for me in the past. Now I install a new machine and it doesn't work this time.
    kaipee wrote:@dxxvi I have also been having issues with apache since I moved to systemd at the weekend.
    Fortunately for me I installed my machine when systemd was already there. This is my /usr/lib/systemd/system/httpd.service
    [Unit]
    Description=Apache Web Server
    After=network.target remote-fs.target nss-lookup.target
    [Service]
    Type=forking
    PIDFile=/run/httpd/httpd.pid
    ExecStart=/usr/sbin/apachectl start
    ExecStop=/usr/sbin/apachectl graceful-stop
    ExecReload=/usr/sbin/apachectl graceful
    PrivateTmp=true
    LimitNOFILE=infinity
    [Install]
    WantedBy=multi-user.target
    and in my system /var/run is sym-linked to /run. And by the way, why is the location for the pid file important? I think we can put the pid file anywhere, right?
    /usr/sbin/apachectl configtest says my httpd.conf is fine. However /usr/sbin/apachectl start exits with the status of 1.

  • [SOLVED] Can't Start MySQL after upgrading to 5.1.41-3

    I can't start mysqld with 'mysqld start'.Here is my mysqld output:
    [ahao@sky ~]$ mysqld start
    091125 18:33:48 [Note] Plugin 'FEDERATED' is disabled.
    091125 18:33:48 [Note] Plugin 'ndbcluster' is disabled.
    091125 18:33:48  InnoDB: Started; log sequence number 0 44233
    mysqld: Too many arguments (first extra is 'start').
    Use --verbose --help to get a list of available options
    091125 18:33:48 [ERROR] Aborting
    091125 18:33:48  InnoDB: Starting shutdown...
    091125 18:33:49  InnoDB: Shutdown completed; log sequence number 0 44233
    091125 18:33:49 [Note] mysqld: Shutdown complete
    This is my /var/lib/ complete with permission settings:
    [ahao@sky ~]$ cd /var/lib ; ls -al
    total 84
    drwxr-xr-x 20 root      root      4096 2009-11-25 18:08 .
    drwxr-xr-x 13 root      root      4096 2009-11-25 13:51 ..
    drwxrwx---  2 root      policykit 4096 2009-05-10 09:10 PolicyKit
    drwxr-xr-x  2 policykit root      4096 2009-05-10 09:10 PolicyKit-public
    drwxr-xr-x  3 root      root      4096 2009-09-19 12:19 bluetooth
    drwxr-xr-x  2 root      root      4096 2009-09-16 22:09 dbus
    drwxr-xr-x  2 root      root      4096 2009-11-23 17:38 dhcpcd
    drwxrwxrwt  2 root      root      4096 2009-07-19 18:17 ex
    drwxr-xr-x  2 root      root      4096 2009-09-16 22:38 hwclock
    drwxr-x---  2 root      locate    4096 2009-10-22 06:55 locate
    -rw-r--r--  1 root      root       462 2009-09-20 00:02 logrotate.status
    drwxr-xr-x  2 root      root      4096 2009-09-17 09:14 misc
    drwxr-x---  2 root      locate    4096 2009-11-25 18:09 mlocate
    drwxrwxrwx  4 mysql     mysql     4096 2009-11-25 18:33 mysql
    drwxr-xr-x  6 root      root      4096 2009-09-07 08:54 nfs
    drwxr-xr-x  4 root      root      4096 2009-11-25 18:08 pacman
    drwx------  3 root      root      4096 2009-11-21 03:30 polkit-1
    drwxr-xr-x  2 root      root      4096 2008-09-06 14:33 rarian
    drwxr-xr-x  2 root      root      4096 2009-09-17 09:14 syslog-ng
    drwxr-xr-x  3 root      root      4096 2009-10-19 20:10 wicd
    drwxr-xr-x  2 root      root      4096 2009-11-21 02:35 xkb
    /etc/mysql/my.cnf is out-of-the-box
    What seems to be the problem here? Please shed some light...thank you
    Last edited by akiglobal (2009-11-26 07:41:00)

    How silly of me.....first of all...I entered 'mysqld start', I should have just entered 'mysqld', second of all, I didn't change the file permission on /var/run/mysqld. I change /var/run/mysqld file permission into 'chmod 777 /var/run/mysqld -R', after that mysql works!

  • [Solved] Can't start GParted from XFCE menu

    Hi,
    I have polkit installed but I can't start GParted from the XFCE menu. Do I need to edit any configuration files to make this work? The wiki isn't very clear about what to do after installing polkit. Thanks.
    Last edited by kaixi (2012-11-02 15:09:12)

    In my Xfce4 installation, it's /usr/share/applications/GParted, which I copied over to ~/.local/share/applications/, as kaixi suggested, and it appeared there as gparted.desktop.  Right-click for Properties > Launcher > Command, and in that field (not wanting to install gksu) I put sudo gparted, which works, thanks.

Maybe you are looking for