Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter sebacodroipo

    (@sebacodroipo)

    @pcxt8088
    Thank you very much for the detailed walkthrough, there are a lot of interesting informations for my next install. I actually amnaged to get an error log from the second site adding the line ErrorLog /var/www/secondsite/error.log to my virtual host in the 000-default.conf file in apache. In the end I had forgotten an * before define('FS_METHOD','direct');, I cancelled it and now everything’s working fine.

    Thank you @pcxt8088 and @a2hostingrj for taking your time and helping me ??

    • This reply was modified 4 years, 11 months ago by sebacodroipo.
    Thread Starter sebacodroipo

    (@sebacodroipo)

    @a2hostingrj where do I find my PHP error log? No error log gets created in my WP-content folder or are you talking about another error log?

    Thread Starter sebacodroipo

    (@sebacodroipo)

    original issue solved

    Thread Starter sebacodroipo

    (@sebacodroipo)

    Hi @pcxt8088 ,

    thank you for the very interesting message. I was going to reply to that message having solved all of my problems, but of course I incurred in other problems. Maybe you can help me, otherwise I will repost this in a new thread. I am running Mint Cinnamon 19.1. I managed to install the second wp site in another folder, the structure looks like this:

    /var/www/
    ├── html
    └── firstsite
    └── secondsite

    so after installing secondsite, I couldn’t install nor update any plugin because I always got a request to go through FTP. This was happening on both sites. I looked around on various forums and found a solution adding the

    *define(‘FS_METHOD’,’direct’);

    line in the config. file and modifying the Permissions for both html and secondsite folder. After some trial and error yesterday, I found out that I had to set the permission as

    Owner: www-data
    Folder Access: Create and delete files
    File Access: –

    Group: www-data
    Folder Acces: Access files
    File Access:

    Folder Access: Create and delete files
    File Access: –

    This morning I logged in on secondsite. I tried installing a theme but got again the FTP problem, I went back to the config file and permission and set them up again. I don’t know what went wrong, but I now can’t connect to neither secondsite/ nor to secondsite/wp-login.php. I always get error 500. I activated in the config file the debugging options

    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_LOG’, true );

    but no error log gets created when I try to load the page.
    I had only installed Jetpack yesterday night, I tried deactivate the plugins by renaming the folder (as suggested in numerous forum threads regarding this issue) but to no result.

    As for firstsite/, everything is working perfectly, I can log in and download/update plugins and themes.

    Any suggestion?

    Thread Starter sebacodroipo

    (@sebacodroipo)

    I am not sorry if I look like an ignorant (which I am): I meant I was going to buy a domain and some webhosting and upload it there.

    Thread Starter sebacodroipo

    (@sebacodroipo)

    Hi @pcxt8088 ,

    I was trying to set up my development environment on localhost, when I am done making my experiments I will publish it.

    Thread Starter sebacodroipo

    (@sebacodroipo)

    @flerevere

    again thank you very much for the response.

    So I can assign to different names to the same IP address (127.0.0.1, adding it on the same line of the host file) so that when I load the IP in my browser i get to select the two websites, right?

    You even can override existing domain name in /etc/hosts, to develop a site that will be moved to real host later.

    meaning I can name them whatever I want taking in consideration the name I’d choose for the website when I decide to publish it online.

    thanks again and have a nice day ??

    Thread Starter sebacodroipo

    (@sebacodroipo)

    First of all thank you for the super quick response.

    So, I’ll rephrase to see if I got it right. I leave the first website in /var/www/html, create a new domain in the hosts file (let’s say 127.0.0.2) and then, via the VirtualHost in apache, link the new IP to another folder (anywhere on my computer?). After completing this passage then in my browser I could reach this other website accessing 127.0.0.2 instead of localhost, right?

    I wouldn’t say using subfolders it’s imperative, having both sites in two folders in the same main folder would be nicer from an “order” point of view.

Viewing 8 replies - 1 through 8 (of 8 total)