Changing root document
Hi There,
I'm using magento 2 installed on apache 2.4. However I'm trying to change root path to /pub instead of /public_html.
I've seen many topics but it doesn't work with me !
When I try to change the root my website entirely down!! and I received the following error :
no input file specified.
Could you please advise what I have to do.
-
Hey there! You'd likely need to change the document root for the cPanel account itself. Details on how to change this in cPanel can be found here: as cPanel handles the Apache configuration completely differently, and those types of changes will not work. Can you try editing the cPanel document root to see if that gets things working how you expect? 0 -
Hey there! You'd likely need to change the document root for the cPanel account itself. Details on how to change this in cPanel can be found here: as cPanel handles the Apache configuration completely differently, and those types of changes will not work. Can you try editing the cPanel document root to see if that gets things working how you expect?
Hi, Unfortunately it doesn't work, same error appear.0 -
Just as a test, can you create a file named testpage.html in your document root and see if you can visit that in a browser without an error? 0 -
Just as a test, can you create a file named testpage.html in your document root and see if you can visit that in a browser without an error?
Yes it's work !! what's the problem.. is it related to Magento ?0 -
Thanks for that information - the issue would either be related to PHP or Magento. Do you see any errors in the main Apache log when you get the "no input file specified" error? 0 -
Thanks for that information - the issue would either be related to PHP or Magento. Do you see any errors in the main Apache log when you get the "no input file specified" error?
Where I can found this log file ?0 -
Do you have root access to the server? If so, this is located at /etc/apache2/logs/error_log 0 -
Hi Dear, I found the following error : [proxy_fcgi:error] [pid 25878] [client 185.93.228.5:52334] AH01071: Got error 'Unable to open primary script: /home/nectarksa/public_html/pub/index.php (No such file or directory)', referer: Google 0 -
I'm glad you were able to get that working!!! 0
Please sign in to leave a comment.
Comments
10 comments