Hey,
ich versuche Vagrant mit Flow zu benutzen.
Mein Vagrant Server laeuft ohne Probleme.
Allerdings bekomme ich im error Log immer diese Meldung wenn ich den Web-Ordner von Flow oeffnen will(wo dann die Applikation laeuft).
Hatte aehnliches vorher schon mit einer Logdatei die angelegt werden sollte dich ich dann einfach manuell anlegte.
Im Host-OS hab ich alles auf 0777 stehen, habe aber trotzdem dieses flow setpermissions ausgefuerht.
Weiss jemand wie ich das behebe?
Vagrantfile
Provision
ich versuche Vagrant mit Flow zu benutzen.
Mein Vagrant Server laeuft ohne Probleme.
Allerdings bekomme ich im error Log immer diese Meldung wenn ich den Web-Ordner von Flow oeffnen will(wo dann die Applikation laeuft).
Code:
[Sun Feb 22 11:40:56.666287 2015] [:error] [pid 27517] [client 192.168.50.1:42886] PHP Fatal error: Uncaught exception 'TYPO3\\Flow\\Error\\Exception' with message 'Warning: mkdir(): Permission denied in /vagrant/src/Quickstart/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Log/Logger.php line 131' in /vagrant/src/Quickstart/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Error/ErrorHandler.php:77\nStack trace:\n#0 [internal function]: TYPO3\\Flow\\Error\\ErrorHandler->handleError(2, 'mkdir(): Permis...', '/vagrant/src/Qu...', 131, Array)\n#1 /vagrant/src/Quickstart/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Log/Logger.php(131): mkdir('/vagrant/src/Qu...')\n#2 /vagrant/src/Quickstart/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Error/AbstractExceptionHandler.php(75): TYPO3\\Flow\\Log\\Logger->logException(Object(TYPO3\\Flow\\Utility\\Exception))\n#3 [internal function]: TYPO3\\Flow\\Error\\AbstractExceptionHandler->handleException(Object(TYPO3\\Flow\\Utility\\Exception))\n#4 {main}\n thrown in /vagrant/src/Quickstart/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Error/ErrorHandler.php on line 77, referer: http://192.168.50.4/Quickstart/
Im Host-OS hab ich alles auf 0777 stehen, habe aber trotzdem dieses flow setpermissions ausgefuerht.
Weiss jemand wie ich das behebe?
Vagrantfile
Code:
# -*- mode: ruby -*- # vi: set ft=ruby : # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/trusty64" # Forward ports to Apache and MySQL #config.vm.network "forwarded_port", guest: 80, host: 8888 #config.vm.network "forwarded_port", guest: 3306, host: 8889 config.vm.network "private_network", ip: "192.168.50.4" config.vm.provision "shell", path: "provision.sh" # config.vm.provider "virtualbox" do |vb| # # Don't boot with headless mode # vb.gui = true # # # Use VBoxManage to customize the VM. For example to change memory: # vb.customize ["modifyvm", :id, "--memory", "1024"] # end end
Code:
#!/bin/bash php_config_file="/etc/php5/apache2/php.ini" xdebug_config_file="/etc/php5/mods-available/xdebug.ini" mysql_config_file="/etc/mysql/my.cnf" # Fix message "stdin: is not a tty"s sed -i 's/^mesg n$/tty -s \&\& mesg n/g' /root/.profile IPADDR=$(/sbin/ifconfig eth0 | awk '/inet / { print $2 }' | sed 's/addr://') sed -i "s/^${IPADDR}.*//" /etc/hosts echo $IPADDR debian.localhost >> /etc/hosts # Just to quiet down some error messages # Update the server apt-get update apt-get -y upgrade # Install basic tools apt-get -y install build-essential binutils-doc git # Install Apache apt-get -y install apache2 apt-get -y install php5 php5-curl php5-mysql php5-sqlite php5-xdebug php-pear sed -i "s/display_startup_errors = Off/display_startup_errors = On/g" ${php_config_file} sed -i "s/display_errors = Off/display_errors = On/g" ${php_1_file} echo "xdebug.remote_enable=On" >> ${xdebug_config_file} echo 'xdebug.remote_connect_back=On' >> ${xdebug_config_file} # Install MySQL echo "mysql-server mysql-server/root_password password root" | sudo debconf-set-selections echo "mysql-server mysql-server/root_password_again password root" | sudo debconf-set-selections apt-get -y install mysql-client mysql-server sed -i "s/bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" ${mysql_config_file} # Allow root access from any host echo "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION" | mysql -u root --password=root echo "GRANT PROXY ON ''@'' TO 'root'@'%' WITH GRANT OPTION" | mysql -u root --password=root # Copy vhost cp /vagrant/vm/resources/vhost.conf /etc/apache2/sites-available/000-default.conf # Loads composer and makes it executable curl -s https://getcomposer.org/installer | php mv /home/vagrant/composer.phar /usr/local/bin/composer chmod +x /usr/local/bin/composer # Creates clean project composer create-project --dev --keep-vcs typo3/flow-base-distribution /vagrant/src/Quickstart # Restart Services service apache2 restart service mysql restart
Kommentar