Moderator
Yui
(@fierevere)
永子
I cannot build a database through a FTP connection.
You should have access to shell commands (to run “mysql create” command or “mysql_setpermission”)
otherwise you can use some of the web tools, such as well-known PHPMyAdmin
or its smaller (1 file, which you can upload via FTP) replacement – adminer
So in case you can upload adminer PHP script via FTP, then FTP is enough for this.
f the administrator, for any reason, is unable to install a database
server administrator needs to install database server (software), which can be MariaDB or MySQL, defaults depend on OS distribution, there shouldnt be any problem or trouble installing, if server hardware specs and disk requirements are sufficient.
They will get “root” access during installation (differs from server “root” access, mysql “root” user has access to MySQL only). They can use
“mysql create” command or “mysql_setpermission” to create database (empty database) and user which has (full) access to this database.
You can install WordPress by using that mysql database credentials given (database name, database user, db password) or perform migration.
Having MySQL server running is mandratory. You cannot use WordPress without database. However it is not necessary to run MySQL server on same server, it can be external server, but mind latency!
-
This reply was modified 4 years ago by Yui.
Thanks a lot Yui,
I am going to try adminer right away.
Hi everyone,
I am still in the process of setting up my worpdress website on the university’s server.
I managed to install the website via ftp and create a database using phpmyadmin.
I am able to delete or create pages, edit their content, set a static page, etc.
But as soon as I want to delete/add a theme or delete/add a plugin the system requests the FTP or SSH credentials to proceed.
——————-
Connection Information
Failed to connect to FTP Server ************
To perform the requested action, WordPress needs to access your web server. Please enter your FTP or SSH credentials to proceed. If you do not remember your credentials, you should contact your web host.
Hostname
example: http://www.wordpress.org
FTP/SSH Username
FTP/SSH Password
This password will not be stored on the server.
Connection Type
FTP
FTPS (SSL)
SSH2
——————————–
I tried several times the same credentials I use to access the server through Filezilla but I didn’t succeeded to confirm the access.
I tried FTP and FTPS (SSL) connection types.
I also changed the wp-config-php and added up define( ‘FS_METHOD’, ‘direct’ ); just before the database parameters but it didn’t solve the problem.
Any clue anyone ?
Thanks in advance
If the FTP port number is anything other than 21 (a blank entry in FileZilla is port 21), you must specify the port number as part of the hostname. For example, if the hostname you use in Filezilla is myserver.edu
and the port is 1234, the FTP hostname in WordPress should be myserver.edu:1234
.
Hi Dion,
Thanks for your answer.
I do not put any port when I connect filezilla to the server (meaning it’s port 21)
In my situation, the hosting is : sftp://yogart@webs.aua.gr
username : ***
password : ***
port : blank
This ftp connection gives me access to only one repository, where I am able to install wordpress, but if I use the same credentials on my wordpress dashboard to install a plugin, the access to the server is denied.
I would have loved your solution to be the one to solve my problem 🙂
SFTP is not the same as FTP. If this is a VPS where you have root-level access, then you can install the SSH2 extension yourself — though a much better solution would be to install and configure PHP-FPM. Otherwise, you must either convince the university to put the SSH2 PHP extension on the server, or you will be forced to manage themes/plugins manually.
Thanks again Dion for the quick answer.
I don’t have a root-level access ad I do not believe the admin will give it to me.
The website is really simple and will not require many plugins to install so the alternative might be to install them manually.
What about building the website locally (my computer) and then expert it using duplicator ?
I don’t use Duplicator, but if it must create directories during an import, then it will not work for you. I suspect your only option is to install the plugins manually.
Hmm. Perhaps you could ask the admin whether FTP is available in addition to SFTP. FTP credentials would work correctly in WordPress.
Hi Dion,
I have started to manually install plugins and the theme. Working fine so far !
Good thing about this soution is that I can keep an eye on what is installed and clean efficiently my repositories.
Bye and thanks a lot for the help.
This topic is resolved