You are not logged in.
I gave up on manually configuring lamp stack and installed xampp from AUR
Hi,
I have setup lamp server following instructions on wiki, everything is working fine. PHP, MySQL, Apache, phpMyAdmin etc...
I want to have all my public_html files in ~/Documents/www folder so that they are easily accessible. At first I had 403 error and I fixed it by changing directory (755) and file (644) permissions and setting up document directory in apache config.
After that I have set up my previously existing project for localhost usage (imported sql, copied files, changed config files etc...) and I can access joomla administration, but front page is blank and I'm getting 2 strict standard errors and a blank page.
Production site is working normally on php 5.4 so I have removed latest php from official arch repo and downloaded and set up aur php54. Everything is in working order, but I'm still getting a blank page.
When I looked in error logs I saw that php can't write files in my www folder.
Here's the output:
[Wed Feb 11 13:41:45.661821 2015] [proxy_fcgi:error] [pid 651] [client ::1:57507] AH01071: Got error 'PHP message: PHP Warning: file_put_contents(/home/reygoch/Documents/www/dolina/administrator/cache/com_coalawebsociallinks.updates.ini): failed to open stream: Permission denied in /home/reygoch/Documents/www/dolina/libraries/joomla/filesystem/file.php on line 431
PHP message: PHP Warning: file_put_contents(/home/reygoch/Documents/www/dolina/administrator/cache/com_coalawebsociallinks.updates.ini): failed to open stream: Permission denied in /home/reygoch/Documents/www/dolina/libraries/joomla/filesystem/file.php on line 431
PHP message: PHP Warning: file_put_contents(/home/reygoch/Documents/www/dolina/administrator/cache/com_coalawebsociallinks.updates.ini): failed to open stream: Permission denied in /home/reygoch/Documents/www/dolina/libraries/joomla/filesystem/file.php on line 431
PHP message: PHP Warning: file_put_contents(/home/reygoch/Documents/www/dolina/administrator/cache/com_coalawebsociallinks.updates.ini): failed to open stream: Permission denied in /home/reygoch/Documents/www/dolina/libraries/joomla/filesystem/file.php on line 431
PHP message: PHP Warning: file_put_contents(/home/reygoch/Documents/www/dolina/administrator/cache/com_coalawebsociallinks.updates.ini): failed to open stream: Permission denied in /home/reygoch/Documents/www/dolina/libraries/joomla/filesystem/file.php on line 431
PHP message: PHP Warning: file_put_contents(/home/reygoch/Documents/www/dolina/administrator/cache/com_coalawebsociallinks.updates.ini): failed to open stream: Permission denied in /home/reygoch/Documents/www/dolina/libraries/joomla/filesystem/file.php on line 431',
referer: http://localhost/dolina/administrator/
I guess I have to change owner of www dirs but I'm not sure to what since I'm not really an expert on sysadmin stuff. I still want to be able to edit files with my regular account, but I want php to be able to write files and stuff.
I have used these commands to set permissions for my www dirs:
find /home/reygoch/Documents/www -type d -exec chmod 755 {} +
find /home/reygoch/Documents/www -type f -exec chmod 644 {} +
Thanks in advance!
Last edited by reygoch (2015-02-11 21:44:26)
Offline