WordPress Installation not working

Hello there,

I am trying to install wordpress for one of the sites on my web-server. I am a novice in linux and the whole world of web-servers. But I have had a pretty good experience setting up my linode so far. I have followed the tutorials closely and I have been able to set up the whole LAMP stack. I had a bit of an issue installing php. Basically the tutorial (https://www.linode.com/docs/websites/hosting-a-website) had said to run "sudo apt-get install php5 php-pear" which yielded :

Package php5 is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

I subsequently tired "sudo apt-get install php7.0 php-pear" which worked with the last line reading "Processing triggers for php7.0-fpm (7.0.15-0ubuntu0.16.04.4) …" I then ran "sudo apt-get install php-mysql" which also seemed to work with the last few lines showing "Setting up php-mysql (1:7.0+35ubuntu6) …

Processing triggers for php7.0-fpm (7.0.15-0ubuntu0.16.04.4) …"

So i felt that my php installs where good. So i tried to go ahead an install word press. I currently have 6 websites in my public html folder. From what I understand about wordpress is that I can load and use wordpress as a CMS for any one of my websites. So I tried installing it following the linode tutorial

(https://www.linode.com/docs/websites/cm … -wordpress">https://www.linode.com/docs/websites/cms/how-to-install-and-configure-wordpress). I followed the tutorial to a tee. And I placed the src folder inside the folder of the specific website i wanted wordpress to control. The installation seemed to work. I logged on through cyber duck to see if the files had been placed and I say the zip wordprress package in the /src folder , and the multiple wordpress files in the public html file of the same website. I assumed that if I went to the website (ssstack.net), I would be prompted to set up wordpress. But it only showed me the index.html file i had put on there before. I also noticed that when I went to http://ssstack.net/wp-admin/ it would show the raw code for the wordpress log in page.

So thats my problem. I do not know where I went wrong. I have a hunch, especially after my incorrect php install command, that the linode tutorial is about of date or in correct or something. Also since I followed the Linode Wordpress tutorial, I haven't been able to edit any files in any of websites in my var/www file. I also have a hunch that the permissions i had set have been changed. If any one can help it would be great

1 Reply

The webserver chooses which index file to load based on your webserver settings. In your case, it first tries to load the "index.html", "index.htm" and then the "index.php" file. First, you would have to rename your index.html to something different, so the webserver will use your WordPress PHP file.

The other problem you have is that PHP is not configured correctly on your server! You need to login via SSH / terminal and try to run PHP (assuming Debian / Ubuntu):

$(which php) -v

"which PHP" outputs the path to PHP interpreter.

"$(which php)" runs the PHP interpreter wherever it is installed

"$(which php) -v" outputs the version of the PHP interpreter

If this command works, you can use PHP on the command line but not in your webserver. Please provide feedback for further help.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct