I recently created an ubuntu virtual server(EC2) on Amazon Web Services, then installed wordpress through console apt-get install wordpress , before that I installed, apache, php and mysql. The website is running, but the problem is that I can't install wordpress themes, I get this message:
Downloading install package from https://downloads.wordpress.org/theme/twentysixteen.1.1.zip…
Unpacking the package…
Could not create directory.
I already give the right permissions to these folders :
usr/share/wordpress/wp-content,
usr/share/wordpress/wp-content/themes,
usr/share/wordpress/wp-content/plugins,
usr/share/wordpress/wp-content/languages
And added this line:
define('FS_METHOD','direct');
to usr/share/wordpress/wp-config.php
at the end.
I don't know what else to do.
Thank you.
I recently figure out how to fix it, I edited this file:
/etc/wordpress/config-mydomain.com.php
And found this line:
define('WP-CONTENT-DIR','srv/www/wp-content/localhost');
This must be replaced by:
define('WP-CONTENT-DIR','var/www/html/wordpress/wp-content');
This often happen when you use this file to create your database and setup your files in ubuntu: usr/share/doc/wordpress/examples/setup-mysql
And then you can install themes without problems, but you must give aproppiate permissions to the folders wp-content, themes, etc. after fix this!!
You could try defining the content directory
define('WP_CONTENT_DIR', '/var/www/wordpress/wp-content');
Related
This question is different from: https://stackoverflow.com/questions/36150377/missing-vendor-autoload-php
I want to contribute to phpmyadmin. I cloned the github repo in my machine using Github Desktop software. I copied the downloaded files in xampp so that I can run phpmyadmin. But when I launch the phpmyadmin page, this error occurs:
File ./vendor/autoload.php missing or not readable.
Most likely you did not run Composer to install library files.
Where can I get that file? I saw something that uses composer create-project command but I don't get that where should I type that command?
I also downloaded phpmyadmin from their website and copy pasted in xampp directory and it worked well. It didn't give any such error.
What should I do?
This changed as of v4.7.0
https://www.phpmyadmin.net/files/4.7.0/
Starting with this version, phpMyAdmin uses Composer to manage PHP library dependencies while under development.
Users downloading the official source distribution will not notice a difference, however users of the git repository
should refer to https://docs.phpmyadmin.net/en/latest/setup.html#installing-from-git for details.
Here's the change PR for those interested: github.com/phpmyadmin/phpmyadmin/pull/11976
When you download or clone phpMyadmin it's missing the vendor folder, which is installed by Composer.
Open the phpMyadmin folder and run the composer install command. This will download and install third party dependencies and generate the vendor/autoload.php file.
I am new in TYPO3, I have a running system online and wanted to copy to my localhost, I copied the folder in /var/www/my_production/
I created the database, I can access to the backend without problem but I cant open my site, I get this error :
1323059807: You are not allowed to create directories in the folder "/" (More information)
TYPO3\CMS\Core\Resource\Exception\InsufficientFolderWritePermissionsException
thrown in file
/var/www/my_production/typo3/sysext/core/Classes/Resource/ResourceStorage.php
in line 2021.
Any idea how I can fix that problem?
EDIT ::
After clearing the cache from the Install Tool, I got :
Fatal error: Call to undefined function
TYPO3\CMS\Core\Utility\xml_parser_create() in
/var/www/clevvermail_dev/typo3/sysext/core/Classes/Utility/GeneralUtility.php
on line 2252
One possible cause is that XML is missing.
Try: sudo apt-get install php7.0-xml or sudo apt-get install php5.6-xml
First steps for each new TYPO3 installation: enter Install Tool and reduce all errors possible. (You might stay with some errors, but you need to understand them.)
TYPO3 gives a lot of hints what has to be changed.
typical errors:
missing directories
missing rights in directories
wrong configuration in php.ini
missing php modules
database errors (connection, user, password)
try to solve these errors first.
Since TYPO7 you can check your extensions from the Install Tool.
For earlier versions:
disable all additional extensions (in PackagesState.php) and get the core working, then enable one extension after the other.
Processwire installer does not delete install.php and site/assets/install/. Note that ProcessWire forms warn that the installer will only delete the install files if it can.
System
ubuntu 12.04
vhost pointing to a symlink on the user file structure to source of index
ProcessWire 5.2
apache 2.2.22
php 5.4
I Tried
chmod 777 on the files
chown www-data the files
I expect the installer to delete the file and folder if it says it can, since I am running a generator for the project boot, some setup can be done but not allot. The install of processwire is done manually after the generator, therefore checking deletion and handling it is not highly plausible. I am looking for any suggestions to solve the issue or a full fledged solution.
I don't think it is possible for the ProcessWire Installer to delete itself, so it has to be removed manually.
However, after installing, an additional file is created to secure your installation, even if the install.php file is not deleted.
From the install.php file:
Note that it creates this file once installation is completed:
/site/assets/installed.php
If that file exists, the installer will not run. So if you need to re-run
this installer for any reason, then you'll want to delete that file. This was
implemented just in case someone doesn't delete the installer.
I am facing a redirect 404 issue while installing Magento 2.
here are the steps i followed
1 - git clone this repo
2 - composer install in the root of the project
3 - composer install in the setup folder
4 - Enabled php_intl extension
5 - Created a virtual host magento2dev.com
Now when in browser, i run http://magento2dev.com This redirects me to 404 http://magento2dev.com/setup/en_US/index
Nothing is displayed in log ...
Using version alpha95, and now tried alpha96 But same problem.
any suggestions ???
Please install composer under root/home directory and then copy the composer.phar to user/local/bin directory so that it can be accessible from everywhere (assuming you have Ubuntu or Linux).
Right now, due to the unstable web interface of the installer, it is recommended to use CLI instead.
Here is a described sample installation.
Installing Magento 2 has always been an issue for me too. But it seems like using Docker is one of the best solution in my case. I ran a container which has a pre-built Magento 2 with all its system requirements.
We have lots of different docker images for Magento 2, try it out.
Sample Repo:
https://registry.hub.docker.com/u/ilampirai/docker-magento2/
I use Laravel 4 framework for PHP and have successfully added this module called Zippy for creating archive files but it seems to be bouncing back an error saying
Unable to create archive
Please can you suggest a solution for a different package or how to get around with this error?
PHP Code:
use Alchemy\Zippy\Zippy;
$zip = Zippy::load();
$zip->create('testingit.zip', array(
"assets/img/logo.png"
),$recursive = true);
I recently had this problem in one server and the solution was these two things:
Make sure zip is installed
sudo apt-get install zip or yum install zip unzip
Make sure your enviroment variable PATH is set using phpinfo() or getenv('PATH')
In my case I' using php-fpm, I just had to add this line in /etc/php5/fpm/pool.d/www.conf
env[PATH] = /usr/local/bin:/usr/bin:/bin