WebSite X5Help Center

 
Bernard P.
Bernard P.
User

How to set the php in my server  en

Autor: Bernard P.
Visitado 1718, Followers 1, Compartido 0  

I have completed my website and now when trying to upload to my server (this is hosted by byself, with my own servers) I keep getting the window open

I have tried everthing I can think of and searched the internet, from what I see I have correctly set the PHP and mysql (also tried MariaDB)

if I select "ignore" button the files are sent up no problem

when I use my NAS drive to host the website I get the same upload error, but with the exception that the emails are sent from the information request form. this works better than my servers but still not complete and I dont want to use this due to security issues as it is also used as a file depository.

On the server I have tried Ubuntu, Fedora server & centos, all have similar setup.

I installed PHP 8.0 as I found the latest 8.1 will not work at all.

MySQL & mariaDB both don't seem to work I tried setting them with a new database and set the owner to have all rights to the database. I dont think this should be so difficult, but I am scratching my head for the past week...

I know setting the servers is not your area but hope you might point me in the right direction to get this working, if I dont get it working I will have to drop the user information request form.

Publicado en
10 RESPUESTAS
Aleksej H.
Aleksej H.
Moderator

Hello.
1) Recheck these settings:

2) Make sure the folder exists and is writable.
3) Temporarily disable your antivirus and firewall.
4) Do not use VPN or proxy.

P.S.Black Friday and Cyber Monday coming soon enough.And then the New Year.Many, if not all, hosting providers will offer discounts.Sometimes the discount can be 70%.

Having your own hosting has various advantages.But hosting companies have good specialists, professional equipment, special premises and good software.All together, this makes them a better option.It's my opinion.

Leer más
Publicado en de Aleksej H.
Bernard P.
Bernard P.
User
Autor

Hi Aleksej

Thank you for your feedback. I have checked the settings and they seem OK. but I have been told the spare server is not in use now so I will do clean install from bare metal, and only install only applications required to set a webserver and start the test again.

I also understand the concern about antivirus and filewall, I will switch these off on the workstation I use to test.

Will feedback with the results

Leer más
Publicado en de Bernard P.
Bernard P.
Bernard P.
User
Autor

Now I installed a new Fedora server from clean hard disk so there is nothing intefere.

I am able to upload the website to the server but have 2 items remaining.

1. the database is still not accepted, I have created the database and given myself all rights, but still x5 will not accept it.

Do i need to add anything into the database such as table, if so what format does it need.

2. I can not send emails from the form when the site is running form the new server, however it works when installed on the NAS drive. on the server I tried all settings PHP Mailer, SMTP, standard Script, low level and low quality scripts. still nothing will send out.

The server is Fedora 36 server, PHP 8.0.1, (MYSQL)MariaDB 10.5. Apache 2.2, 

Is there any other information I need to give to help find a solution

Leer más
Publicado en de Bernard P.
Aleksej H.
Aleksej H.
Moderator

"Do i need to add anything into the database such as table, if so what format does it need."- No.You don't need to create tables.The program will do it itself.

"Is there any other information I need to give to help find a solution" - unfortunately I can't help you. For myself, I decided a long time ago that I would use paid hosting. Server administration is a separate and very large topic.

Leer más
Publicado en de Aleksej H.
Bernard P.
Bernard P.
User
Autor

Hi Aleksej

Thanks for the feedback, unfortunately hosting is not an option here.

All is working with the exception of the email, So I have to workout this remaining issue of the email sending myself, I have plenty of time so is only wasting my excess time at hand on it.

Leer más
Publicado en de Bernard P.
Aleksej H.
Aleksej H.
Moderator

Good luck to you.

Leer más
Publicado en de Aleksej H.
Bernard P.
Bernard P.
User
Autor

After a lot of reading I find that the server does not have PHPMAILER

I installed  COMPOSER and when installing PHPMAILER I need to be in a location where website X5 is expecting phpmailer/phpmailer is looking for.

Tried reading through the script files and see it mention a lot but dont see where it is expecting it to be.

Where do I need to install phpmailer

Leer más
Publicado en de Bernard P.
Aleksej H.
Aleksej H.
Moderator

Unfortunately, I cannot help you in this matter. frown

Leer más
Publicado en de Aleksej H.
Incomedia
Stefano G.
Incomedia

Hello Bernard

Unfortunately, the official Staff cannot be of help in this matter specifically

The configuration of the server is entirely up to the hosting company, or like in this case, to the user handling the server.

We cannot provide assistance for a proper configuration of the server and I can only advise attempting to workaround this with the help of an external professional that can give you a hand with it

I apologize for not being able to help further with this issue, but I remain available here in case you have other questions

Stefano

Leer más
Publicado en de Stefano G.
Bernard P.
Bernard P.
User
Autor

Hello Stefano

Thank you for your reply.

I will continue to learn about this and get it working

regards Bernard

Leer más
Publicado en de Bernard P.