Search the Community
Showing results for tags 'ubuntu'.
Found 3 results
I have use apache server with PHP installed on it,i created one directory through php coding it get created but it has permission ( drwxr-sr-x 3 www-data www-data 4096 Feb 26 04:54 Merchantid_30) my other directories has ubuntu:ubuntu permission, I want to write on my directory but www-data wont allow me to write on it,giving 777 permission through chmod is risky, can i create directory through php but its default permission is set to be ubuntu:ubuntu instead of www-data ? what changes i need to do in coding?
Hi all, My project folder on my ubuntu server lies at this location (a) : /home/vagrant/website I had copied my project at /var/www/public/ ( I created the public folder under /var/www/. The other folder by default is html which contains the default index.php displaying the phpinfo) I now wished to create a symlink to my project folder at (a). SO i deleted my project folder and files under the public folder and instead created the symlinks. This is what the public folder looks like now: vagrant@vagrant:/var/www/public$ ls -l total 0 lrwxrwxrwx 1 vagrant www-data 28 Jun 19 10:21 project -> /home/vagrant/website/project lrwxrwxrwx 1 vagrant www-data 27 Jun 19 10:21 proj_inn -> /home/vagrant/website/proj_inn lrwxrwxrwx 1 vagrant www-data 27 Jun 19 10:21 mylibs -> /home/vagrant/website/mylibs vagrant@vagrant:/var/www/public$ However when I try and access my project page on the browser, it does not show up. Instead the phpinfo page from the default index.php is displayed. Am I making a mistake or can't symlinks be used as I am trying to use them?? Thanks all !
I have Set Up a Remote Database to Optimize wordpress Site Performance with MySQL on Ubuntu 16.04. I downloaded the wordpress onto my web server. When I Navigate to the public IP address associated with my web server, i get "Error establishing a database connection". With wordpressdebug mode set to true, the details of the error is: Warning: mysqli_real_connect(): (HY000/3159): Connections using insecure transport are prohibited while --require_secure_transport=ON. in /var/www /html/wp-includes/wp-db.php on line 1538 I have tested remote connection using the remote user and I am able to connect. This means my database server is running and my remote user credentials are also correct. What may be causing this and how can I resolve this?